Viewing 4 posts - 1 through 5 (of 5 total)
Gary, Mike,
Thanks for your input. Have declared the cursor as local now - adding "@" prefix as other local variables - and it does give better overview. Moreover - doing...
May 18, 2004 at 12:52 am
Found problem !
Declare cursor as LOCAL
DECLARE C1 CURSOR LOCAL FOR
!!! Better to write it out rather than trust default settings I guess 🙂
May 13, 2004 at 5:16 am
Found solution.........
DECLARE @xx AS nvarChar(128)
SET @xx = (SELECT DB_NAME()) --Pick up current dbname
exec ('ALTER DATABASE "'+@xx+'" SET RECURSIVE_TRIGGERS ON')
GO
The databasename contains blanks - so added " to the string,
Thanks...
May 13, 2004 at 3:13 am
Tried it.....
DECLARE @xx AS nvarChar(128)
SET @xx = (SELECT DB_NAME()) --Pick up current dbname
exec ('ALTER DATABASE '+@xx+'SET RECURSIVE_TRIGGERS ON')
GO
Gives
Server: Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the...
May 13, 2004 at 3:04 am
Viewing 4 posts - 1 through 5 (of 5 total)