Viewing 3 posts - 1 through 3 (of 3 total)
You can also generate a similar output in SQL 2000 with this statement:
DECLARE @mystring VARCHAR(8000)
SELECT @mystring = ''
SELECT @mystring = @mystring + CAST(MyId AS VARCHAR) + ';'
FROM MyTable
SELECT...
October 12, 2004 at 5:53 pm
#526438
Of course you could save some time by executing the following:
EXEC sp_msforeachtable 'GRANT ALL ON ? TO { user_or_role_name }'
June 18, 2004 at 6:33 pm
#511130
One of the easiest ways to use strings which contain single quotes is to replace all instances of the single quote with two single quotes. SQL Server handles two single...
March 30, 2004 at 7:57 am
#501075