Viewing 15 posts - 301 through 315 (of 518 total)
CirquedeSQLeil (9/27/2010)
Use master
GO
SELECT sp.permission_name, p.name
FROM sys.server_permissions sp
Inner Join sys.server_principals p
On p.principal_id = sp.grantee_principal_id
Where sp.permission_name =...
September 27, 2010 at 4:02 pm
homebrew01 (9/27/2010)
Is there a way to see after the fact what was done ?
I'll have to test...
September 27, 2010 at 3:56 pm
Yes, functionally it is the same.
September 27, 2010 at 3:42 pm
CirquedeSQLeil (9/27/2010)
I also just ran back through this and tested for myself. The behavior exhibited definitely does not follow the article.
The article is worded poorly..it says VIEW DEFINITION was...
September 27, 2010 at 3:34 pm
You probably won't see it at the database level because it's a server-level permission. Also, I believe that was new in 2005, so it won't show up there. You'd have...
September 27, 2010 at 3:22 pm
He/she did say it was a clustered PK back on page 2 or so..but just in case it wasn't, thats why I was suggesting deleting with a table lock. SQL...
September 27, 2010 at 3:00 pm
Try deleting with (tablock) also, when you get a chance.
Or better yet, drop the indexes so the table is a heap, then delete with tablock, then recreate the clustered index.
September 27, 2010 at 2:43 pm
Just for kicks, try this:
Delete from tablename ( with tablock )
see if it changes the data size, which should be 0.
edit: I doubt we'd find anything out of the ordinary,...
September 27, 2010 at 2:23 pm
The filestream pointers are pointing to the filegroup, rather than the actual path on the drive. The filegroup, like any other, can be pointed wherever you want when you restore...
September 27, 2010 at 2:11 pm
Ok, I think there's a misunderstanding here.
Pretty much every spid will have a lock of some kind on something and will show up in sp_lock. Notice the DBID in yours...
September 27, 2010 at 1:55 pm
I've never seen a table that stubborn before. Was hoping that would return different results than sp_spaceused, and it would have just been an issue with sizes not updating.
Have you...
September 27, 2010 at 1:50 pm
Ignoring sp_lock for a second..
Run this:
SELECT SPID, login_time, loginame FROM Master.dbo.sysprocesses
where loginame = 'your username here'
Kill the spid that has the login time from last week.
September 27, 2010 at 1:44 pm
Run this and see if there's an index using more space than the others (significantly, anyway). Replace the tablename_here with your table name
select
'['+DB_NAME(database_id)+'].['+c.name+'].['+d.name+']' as [DB.Table]
,b.name as [Index Name]
,page_count /...
September 27, 2010 at 1:40 pm
Are you sure you're trying to kill the right spid? You only get that error when you try to kill the spid that you're currently executing from..
September 27, 2010 at 1:30 pm
Log in using a different login that has access to kill processes? If you're using your domain account, log in as SA or vice versa.
September 27, 2010 at 1:24 pm
Viewing 15 posts - 301 through 315 (of 518 total)