Viewing 7 posts - 1 through 7 (of 7 total)
Hi,
I came across undocumented system stored procedure sp_MSForEachTable.
Try this to delete all data from all tables in a given database.
Please Test it.
EXEC sp_MSForEachTable ‘ALTER TABLE ? NOCHECK CONSTRAINT ALL’
EXEC...
May 6, 2009 at 1:18 pm
Hi,
Along with the permissions, please check if you have any filter settings and remove them.
Right Click Tables -> Filter -> Remove Filter.
Thanks
Prem
April 13, 2009 at 5:19 pm
Hi ,
Please check if you are opening an explicit transaction (i.e Begin Tran ) from the application.
If for some reason before committing the transaction if there are errors encountered, how...
April 13, 2009 at 5:10 pm
Hi
Please try this for scripting out the object permissions in a database.
SELECT
CASE WHEN perm.state != 'W' THEN perm.state_desc ELSE 'GRANT' END + SPACE(1) +
perm.permission_name + SPACE(1) + 'ON...
April 13, 2009 at 4:44 pm
Hi,
You can change the execution context of Stored Procedure using EXECUTE AS clause while creating Stored Procedures.
Different options available are { CALLER | SELF | OWNER | 'user_name'...
April 13, 2009 at 4:27 pm
Mike,
Thanks for your Wonderful article on SQL Server Encryption.
Please give me your inputs for the following scenario.
We have log shipping set up between server A and Server B. Server...
April 10, 2009 at 4:44 pm
Check this out.
--Role Memberships'
SELECT --rm.role_principal_id,
'EXEC sp_addrolemember @rolename ='
+ SPACE(1) + QUOTENAME(USER_NAME(rm.role_principal_id), '''')
+ ', @membername =' + SPACE(1) + QUOTENAME(USER_NAME(rm.member_principal_id), '''') AS '--Role Memberships'
FROMsys.database_role_members AS rm
ORDER BY rm.role_principal_id
--Object...
April 10, 2009 at 4:01 pm
Viewing 7 posts - 1 through 7 (of 7 total)