Musings of a technophile

Just another blog from a computer nerd
  • Home
  • About Me
  • Funny things my kids say

Deploying External and Unsafe SQL CLR Functions

ElementZero | January 6, 2010

If you ever have to deploy a SQL CLR Function that is not using Safe Permissions, then you may run into a roadblock where you get the error

CREATE ASSEMBLY for assembly ‘MyProject’ failed because assembly ‘MyProject’ is not authorized for PERMISSION_SET = EXTERNAL_ACCESS.
The assembly is authorized when either of the following is true:
the database owner (DBO) has EXTERNAL ACCESS ASSEMBLY permission and the database has… Continue reading

Comments
No Comments »
Categories
Computer Troubleshooting
Tags
coding, SQL
Comments rss Comments rss
Trackback Trackback

Hacking SQL replication to avoid the snapshot

ElementZero | November 23, 2009

I have a table at my company that is replicated from a live database server to a server that is used for reporting. The live server is in one location while the reporting server is located in the building where I work, and they are connected via a point-to-point T1 line. The problem is that the table that is replicated is now over 60GB, so if replication breaks and I… Continue reading

Comments
1 Comment »
Categories
Computer Troubleshooting
Tags
SQL
Comments rss Comments rss
Trackback Trackback

Preventing replication snapshots from locking your tables

ElementZero | January 21, 2009

If you’ve dealt with SQL replication, you might have come across the problem of queries getting blocked while you attempt to create a snapshot for your replication publication. The reason why is almost self explanatory – a snapshot is record of how the table was when replication began. This being said, it requires that the table be locked so that the data doesn’t change while the snapshot is reading the… Continue reading

Comments
No Comments »
Categories
Computer Troubleshooting
Tags
SQL
Comments rss Comments rss
Trackback Trackback

Script all indexes in a database

ElementZero | December 4, 2008

I have some replicated tables on a server we use for reporting at work. We had put some indexes on the replicated tables, but these were not indexes we needed on our master database. Well sure enough one day we needed to redo replication, and of course when you redo replication, you wind up setting the tables back to their original states as on the master – meaning all our… Continue reading

Comments
No Comments »
Categories
Computer Troubleshooting
Tags
SQL
Comments rss Comments rss
Trackback Trackback

Categories

  • Anime
    (8)
  • Computer Troubleshooting
    (24)
  • Games
    (17)
  • Family and Everyday Life
    (25)
  • Misc Thoughts
    (13)

Search

Archives

  • June 2010 (2)
  • May 2010 (7)
  • April 2010 (1)
  • January 2010 (1)
  • November 2009 (1)
  • July 2009 (1)
  • May 2009 (1)
  • April 2009 (3)
  • March 2009 (5)
  • February 2009 (8)
  • January 2009 (11)
  • December 2008 (12)
  • November 2008 (12)
  • October 2008 (11)
  • September 2008 (8)

Tags

Apple ASP.NET Blizzard Cisco coding computer repair Disney ecchi Ethan Exchange firewall Food Fort Myers FPS furniture hacking iis 7 jokes Kaden linux Logan Madelyn movies networking Racing RTS SEO Server Administration Shonen SQL SSRS 2005 StarCraft II Warcraft III Windows Server 2008 WordPress Zoo
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox Admin Login