Knowledge Base

Snippets

Entries for 'SQL'

08
Try running . . . . exec sp_updatestats; SQL, DNN
16
Select ISNULL(NULLIF(GIBS_FBLineItems.ReportType, ''), '--Undefined--') as ReportType from GIBS_FBLineItems SQL
05
ALTER TABLE MyTableName ADD CONSTRAINT DF_MyTableName DEFAULT GETDATE() FOR MyColumnName SQL, Alter Table
Posted in: SQL Scripts
07
http://support.microsoft.com/kb/839279

[Read the rest of this article...]

SQL, Network DTC Access
12
To format a short date like MM/DD/YY try the following: select CONVERT(VARCHAR(8), GETDATE(), 1) as MyShortDate For a complete guide to&nb...

[Read the rest of this article...]

SQL, Date, Convert
Posted in: SQL Scripts
30
Add the helper SPLIT function to your database CREATE FUNCTION dbo.Split ( @List nvarchar(2000), @SplitOn nvarchar(5) )  RETURNS @RtnVal...

[Read the rest of this article...]

SQL, FUNCTION