Viewing 3 posts - 1 through 3 (of 3 total)
Surprised this is the first time I have seen this question because I have always had this problem in SQL Server even from earlier releases. It was never fixed...
January 6, 2013 at 9:56 pm
#1574163
Just change the lines that read:
declare @DBName varchar (20) = PARSENAME (@TableName, 3)
to
declare @DBName varchar (20)
set @DBName = PARSENAME (@TableName, 3)
SQLServer 2005 just requires 2 rows instead of 1...
March 23, 2009 at 12:20 pm
#964662
But surprisingly, not triggers.
March 23, 2009 at 12:18 pm
#964659