Viewing 8 posts - 1 through 8 (of 8 total)
zhazhuzhao (6/17/2013)
select 'select * from ['+s.name+'].['+o.name+'] where ['+c.name +']=User_ID(''LoginName'')'
FROM sys.all_columns c
JOIN sys.all_objects o ON o.object_id =...
June 17, 2013 at 8:14 pm
I use this script to find which object the user have:
select 'select * from ['+s.name+'].['+o.name+'] where ['+c.name +']=User_ID(''LoginName'')'
FROM sys.all_columns c
JOIN sys.all_objects o ON o.object_id = c.object_id
join...
June 17, 2013 at 8:12 pm
Hi, I got this error:
Msg 15183, Level 16, State 1, Line 1
The database principal owns objects in the database and cannot be dropped.
katukuri.sqldba (5/6/2013)
Did you note the error number,...
May 7, 2013 at 2:40 am
Hi, I have run this script! I didn't find it has relation with that user I want to drop!
It's only a database user from windows domain login! The login has...
May 7, 2013 at 2:26 am
Sure, I run it in the correct database!
SQLSACT (5/5/2013)
zhazhuzhao (5/5/2013)
SQLSACT (5/3/2013)
;with objects_cte as
(
...
May 7, 2013 at 2:21 am
Lowell (5/3/2013)
this blog has a good explanation and the scripts to track down the offending schema:
Hi, also I tried this way, and the sql didn't return data! I check that...
May 5, 2013 at 8:09 pm
SQLSACT (5/3/2013)
;with objects_cte as
(
select
...
May 5, 2013 at 8:01 pm
Anyone can help is very appreciate!
Thanks!
May 3, 2013 at 1:45 am
Viewing 8 posts - 1 through 8 (of 8 total)