Viewing 15 posts - 39,481 through 39,495 (of 49,571 total)
Also, why a cursor? Unless I've missed something, the entire thing, cursor and all can be replaces by this:
UPDATE t1 SET
t1.Sat = CASE WHEN t2.Day_To_Receive = 'Saturday' THEN 1 ELSE...
April 27, 2009 at 10:55 am
You need some brackets in the exec statement.
Change
EXEC @CMD
to
EXEC (@CMD)
April 27, 2009 at 10:50 am
No.
If you have no backup at all, even the transaction log won't have that information in it as it auto-truncates regularly. Hence no log reader tool will work. There's no...
April 27, 2009 at 10:30 am
Mohit (4/27/2009)
So question, when the plan gets creating using table variables? How long do the plans stay in cache?
Exactly the same as for any other query.
Plan gets created when...
April 27, 2009 at 10:20 am
For what it's worth, there is virtually nothing you can do in SQL to stop an administrator from doing what he wants with the database.
April 27, 2009 at 10:09 am
If, after you've got the checkDB results, you're not 100% sure what they mean or what you need to do, post the full output of checkDB and someone will help...
April 27, 2009 at 10:08 am
My guess is that someone altered the starting size of tempDB. If I recall, such changes only happen when SQL restarts.
You should be able to start SQL if you use...
April 27, 2009 at 9:41 am
Mohit (4/27/2009)
April 27, 2009 at 9:36 am
April 27, 2009 at 9:34 am
Please don't cross post. It just wastes peoples time and fragments replies.
No replies to this thread please. Direct replies to: http://www.sqlservercentral.com/Forums/Topic705013-359-1.aspx
April 27, 2009 at 9:33 am
This query, when run in the context of the DB in question, will show you where all the files associated with that database are.
select name, filename from sysfiles
April 27, 2009 at 4:10 am
Alberto De Rossi (4/24/2009)
Microsoft SQL Server 2000 - 8.00.2039 (Intel X86)
Major and minor version of SQL as well as the CPU architecture. The 8.00.2039 indicates SQL 2000...
April 27, 2009 at 2:03 am
Tables, views, functions and procedures are all stored within the database file, hence there's no path to them. Or are you looking for the location of the SQL database files...
April 27, 2009 at 1:56 am
Mohit (4/26/2009)
April 27, 2009 at 1:50 am
johny (4/26/2009)
It should take a same time for all the records when using NVARCHAR.
But now the records ending with '9' take much more time than the non-9 records.
This is...
April 27, 2009 at 1:35 am
Viewing 15 posts - 39,481 through 39,495 (of 49,571 total)