Viewing 15 posts - 1 through 15 (of 39 total)
Even if you execute it like this?
exec RetrievePermissions 'myUser', '',0
July 8, 2009 at 8:54 am
Thanks a lot! This makes perfect sense.
June 25, 2009 at 6:26 am
OOPS 🙂
Sorry wrong syntax
SET IDENTITY_INSERT manu ON
February 5, 2009 at 9:35 am
Yes,
Use SET INSERT_IDENTITY manu ON
You have to specify the column names on your insert statement.
Use SET INSERT_IDENTITY manu ON
Insert into manu (col1, col2)
Values (1, 999)
February 5, 2009 at 9:34 am
Hi Phil
Why do you need to find the full domain name in order to grant permissions?
If the DBA compiles your script, will he not be on a session...
February 3, 2009 at 11:37 pm
Of course it will not work. You are not updating the table, you care updating a variable
UPDATE CSTerms
SET @stringval=inserted.AmdRead
...
February 1, 2009 at 11:40 pm
Or you can create a table in tempdb. The table will be dropped when the instance is restarted.
January 30, 2009 at 6:44 am
CREATE TABLE Amendment (idcol int identity, descript varchar(30), value varchar(30))
go
CREATE TABLE CSTerms (idcol int identity, col1 varchar(30), col2 varchar(30), col3 varchar(30))
go
INSERT INTO CSTerms values ('', '','')
go
CREATE TRIGGER t_Amendment
ON...
January 30, 2009 at 5:13 am
Hi Oleg
Thanks for the response. I did not take offline dbs into account. I have added that now and you can test it on your databases as soon...
November 17, 2008 at 3:15 am
Hi David
I dont think your suggestion will work though, since the 'use database' will not actually switch the database, you need to put 'go' after the use part and...
September 12, 2008 at 1:01 pm
You can always just select out from sysobjects. It will display all the objects in the db you are currently in. The xtype indicates whether it is a...
September 12, 2008 at 8:50 am
Not much detail, but this might help.
sp_msforeachdb 'select ''?'',name from ?.dbo.sysobjects where name like ''storeprocname'' and xtype = ''P'''
September 12, 2008 at 8:41 am
Thanks everyone for your replies. I managed to solve my problem.
BTW. What would your preference be - xp_cmdshell BCP or BULK INSERT? With BULK INSERT...
August 8, 2008 at 4:40 am
thanks. Yeah - although it is not guaranteed, at least it gives me a rough list of some tables I might be looking at. Do you think I...
July 30, 2008 at 1:50 am
Thanks Sergiy
Do you know when exactly when the object will be inserted into sysdepends? The following select gives me more or less what i want for the usertables, but...
July 30, 2008 at 1:20 am
Viewing 15 posts - 1 through 15 (of 39 total)