Viewing 15 posts - 91 through 105 (of 184 total)
This may help you
DECLARE @session_id int
Declare @command varchar (max)
DECLARE DATABASES_CURSOR CURSOR FOR
select session_id FROM sys.dm_tran_active_snapshot_database_transactions
where elapsed_time_seconds>30
OPEN DATABASES_CURSOR
FETCH NEXT FROM DATABASES_CURSOR INTO @session_id
WHILE @@FETCH_STATUS = 0
BEGIN
SET @command='KILL '+convert( varchar(2),@session_id)
exec (@command)
FETCH...
Ryan
//All our dreams can come true, if we have the courage to pursue them//
June 23, 2011 at 2:58 am
Thanks steveb
Ryan
//All our dreams can come true, if we have the courage to pursue them//
June 22, 2011 at 8:38 am
I got the point. I ran index rebuild job and update statistics without checking whether indexes are there or not. Actually keys,indexes are not copied when copied using import export...
Ryan
//All our dreams can come true, if we have the courage to pursue them//
June 22, 2011 at 8:19 am
It was copied using Import and export wizard. There is no fragmentation of indexes and statistics were updated.
The application is connecting to the database through ODBC and default database is...
Ryan
//All our dreams can come true, if we have the courage to pursue them//
June 22, 2011 at 8:03 am
Hi grant,
As you said ANSI 89 outer joins are no longer supported in 2008, I have one doubt. If we change the database compatiblity level to SQL server 2000, will...
Ryan
//All our dreams can come true, if we have the courage to pursue them//
June 21, 2011 at 5:25 am
http://www.mssqltips.com/tip.asp?tip=1240
Ryan
//All our dreams can come true, if we have the courage to pursue them//
June 17, 2011 at 2:45 am
You can pass single value at a time using a single variable.
Ryan
//All our dreams can come true, if we have the courage to pursue them//
June 16, 2011 at 6:04 am
@suresh Nice example
Ryan
//All our dreams can come true, if we have the courage to pursue them//
June 16, 2011 at 5:58 am
select name, code, status, COUNT(*) "rowcount" from tablename group by Name,code,status
Ryan
//All our dreams can come true, if we have the courage to pursue them//
June 15, 2011 at 1:14 am
Is it a domain account that you have created on your server?
Ryan
//All our dreams can come true, if we have the courage to pursue them//
June 14, 2011 at 5:57 am
So apart from that, there are no other option like adding my account to a group which is having sysadmin access like that?
Ryan
//All our dreams can come true, if we have the courage to pursue them//
June 13, 2011 at 3:02 am
SP2 is redownloaded and server is restarted but it does not start after extracting the files. Can it be somthing is missing in server?
Ryan
//All our dreams can come true, if we have the courage to pursue them//
June 8, 2011 at 6:13 am
I checked system log and it has two information log during that time- "The TPM Base Services service entered the stopped state." and "A compatible Trusted Platform Module (TPM) Security...
Ryan
//All our dreams can come true, if we have the courage to pursue them//
June 7, 2011 at 3:17 am
Hi,
It is SQL server 2008 with SP1. I checked the logs here in C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log. But there is no logs with todays date. Actually once I run...
Ryan
//All our dreams can come true, if we have the courage to pursue them//
June 7, 2011 at 2:27 am
you have to run it from cmd prompt.
Ryan
//All our dreams can come true, if we have the courage to pursue them//
May 27, 2011 at 3:34 am
Viewing 15 posts - 91 through 105 (of 184 total)