select 'use ' + ltrim(rtrim(db_name(sd.dbid))) + char(13) + 'dbcc shrinkfile (' + quotename(ltrim(rtrim(sf.name)),'''') + ' ,truncateonly)' from sysaltfiles sf
inner join sysdatabases sd on sf.dbid = sd.dbid
where sd.dbid > 4
Wednesday, April 14, 2010
Shrink SQL Server 2000 Database
Query to generate DBCC shrinkfile script for all the user databases in SQL Server 2000
Monday, April 12, 2010
How to check authentication scheme in SQL 2005/SQL 2008?
You can use below query to check authentication scheme whether it is Kerberos or NTLM.
select auth_scheme from sys.dm_exec_connections where session_id=@@spid
select auth_scheme from sys.dm_exec_connections where session_id=@@spid
Thursday, April 1, 2010
MVP Award
Dear Readers,
With your support and comments, I am announced as MVP
http://blogs.technet.com/southasiamvp/archive/2010/04/01/new-mvps-announced-april-2010.aspx
Thank You,
Jugal Shah
With your support and comments, I am announced as MVP
http://blogs.technet.com/southasiamvp/archive/2010/04/01/new-mvps-announced-april-2010.aspx
Thank You,
Jugal Shah
Subscribe to:
Posts (Atom)