Home
Manage Your Code
Snippets for Ben Ramey
Showing 1-7 of 7
TitleDescriptionLanguageViewsDate Added
Kill MSSQL DB connections This script will kill all current connections to a database in MSSQL. This is useful for detaching the database, restoring it or performing other tasks that require all connections dropped from the database.SQL1689/13/2011
Split a pascal-case string This little method (in C#) splits a pascal-cased string along the word boundaries to put spaces between the words. A pascal-cased string is a string where each word boundary begins with a capital letter.C#7266/25/2010
Sharepoint File Upload limit fix Increases the size of the request length so allow larger file uploads in Sharepoint.XML3576/3/2010
Reattach SQL server database user to SQL server login Reattaches a database user to an existing SQL server login. This is useful after a database restore from a backup when the logins are detached from the users. See more information: http://technet.microsoft.com/en-us/library/ms174378.aspxSQL8432/25/2010
System.Diagnostics XML config for a TextWriterTraceListener Simple web.config xml to set up a trace file listener.ASP.NET45211/19/2009
Namespace registration Simulates namespaces in Javascript by taking and dividing up a dot-separated string and creating empty objects for each namespace depth.JavaScript24811/16/2009
Extend prototype method One way of extending prototypes in javascript to simulate class inheritance.JavaScript21511/16/2009