Update Center for Microsoft SQL Server

topic: 

All updates to all supported versions of SQL Server in one place https://technet.microsoft.com/en-us/library/ff803383.aspx

Birthday Query in MS SQL Server

It's a common request to get a list of people whose birthday (or an anniversary date) falls in the specified date range w/o regard to the year.

AT and RAT UDFs - Search a character expression for the occurrence of another character expression

topic: 

T-SQL has CHARINDEX and PATINDEX functions that return the position of one character expression in another. The ufn_AT and ufn_RAT functions add the ability to search for specified occurrences and to search from right to left.

Week number in a Month

topic: 

Mline UDF - Return specific line

topic: 

The ufn_Mlines() UDF for SQL Server is similar to the VFP Mline() function but w/o third parameter.
It's more an example than finished UDF. I didn't do much testing on it.

IsNumericEx UDF - Data type aware

topic: 

The built-in SQL Server ISNUMERIC() function determines if character expression can be converted to one of the numeric types. The ufn_IsNumericEx() function accepts the second parameter - the data type to convert to and checks also for characters illegal for that data type. It doesn't check if the numeric value is in the range for specified data type though.

How does SQL Server Management Studio move columns?

topic: 

SSMS (SQL Server Management Studio) does not use any kind of wizardry as one might think. It creates a new table, moves the data, drops the original table and renames the new table to the original name.

View log usage in SQL2005 using Dynamic Management objects

topic: 

SQL Server 2005 introduces a number of Dynamic Management objects. One of these is dm_os_performance_counters which gives you access to SQL Server Performance Counters that were only available through Performance Monitor. Several of the counters are related to the log so we can see the log usage for databases from within SQL Server.

Strextract UDF - Retrieves String Between Two Delimiters

topic: 

The ufn_StrExtract() UDF for SQL Server is similar to the VFP StrExtract() function.

Pages