Viewing 10 posts - 31 through 40 (of 40 total)
Here is the query
DECLARE @Tbl AS TABLE (Details VARCHAR(MAX))
DECLARE @FilePath AS VARCHAR(100) = '\\NWDrive\FolderName\'
DECLARE @Cmd AS VARCHAR(100) = 'DIR ' + @FilePath
INSERT INTO @Tbl
exec master..xp_cmdshell @Cmd
SELECT ...
January 25, 2012 at 12:02 am
this might be like services are in middle of restart. check application event log if you can see any error message.
January 24, 2012 at 11:47 pm
You can insert the resultset of below query to any table.
SELECT ps.database_id, ps.OBJECT_ID,
ps.index_id, b.name,
ps.avg_fragmentation_in_percent
FROM sys.dm_db_index_physical_stats (DB_ID(), NULL, NULL, NULL, NULL) AS ps
INNER JOIN sys.indexes AS b ON ps.OBJECT_ID = b.OBJECT_ID
AND...
January 24, 2012 at 11:44 pm
January 24, 2012 at 10:47 pm
Check this example
http://www.mssqltips.com/sqlservertip/2011/export-sql-server-data-to-oracle-using-ssis/
January 24, 2012 at 10:44 pm
January 24, 2012 at 12:05 pm
Check this article 🙂
http://www.sqlservercentral.com/scripts/Maintenance+and+Management/31790/
January 23, 2012 at 10:20 pm
How differential backup works.
http://msdn.microsoft.com/en-us/library/ms345448(v=sql.90).aspx
January 23, 2012 at 10:13 pm
any transaction might be using the database. that's why your transaction got blocked.
You can try with killing that transaction or use this query to rollback that particular transaction.
Alter database...
January 23, 2012 at 11:11 am
Viewing 10 posts - 31 through 40 (of 40 total)