Viewing 15 posts - 1 through 15 (of 59 total)
indinfo2011 (12/20/2011)
How do I do this in xp_cmdshell? Can anyone give me a example or sample code?
Here is sample code .
DECLARE @cmd nvarchar(500),@folderName varchar(100)
Declare @firstday int
Set @firstday =DATEPART(day, GETDATE())
If...
December 21, 2011 at 12:15 pm
This query will give the last windows restart time.
SELECT
DATEADD(s,((-1)*([ms_ticks]/1000)),GETDATE()) AS last_restart
FROM sys.[dm_os_sys_info];
December 21, 2011 at 11:16 am
Here is a query to find.
Select STATS_DATE(object_id, stats_id) LastUpdate , * From sys.stats
November 27, 2011 at 6:38 am
Do you have proper indexes are there on table if yes then Analyze all your indexes to identify non-performing indexes and missing indexes that can improve performance. also...
November 27, 2011 at 5:32 am
Have you killed the session 158 ? after that only you can fire kill 158 with statusonly to get the roll back status.
November 27, 2011 at 3:29 am
Try query hint with nolock on your search query. so that no shared locks are issued against the table that would prohibit other transactions from modifying the data in...
November 27, 2011 at 3:16 am
EXEC xp_cmdshell 'copy c:\sqldumps\pubs.dmp \\server2\backups\sqldumps',
NO_OUTPUT
http://msdn.microsoft.com/en-us/library/aa260689(v=sql.80).aspx
November 26, 2011 at 11:34 am
Article for Concurrency enhancements for the tempdb database
November 25, 2011 at 6:29 am
November 25, 2011 at 5:48 am
I did SP4 installation on services stopped. it went fine without any issue.
November 24, 2011 at 12:02 pm
Here is updated query ..
select a.FILEID,
[FILE_SIZE_MB] =
convert(decimal(12,2),round(a.size/128.000,2)),
...
November 24, 2011 at 10:47 am
Viewing 15 posts - 1 through 15 (of 59 total)