Viewing 15 posts - 47,926 through 47,940 (of 49,571 total)
EXEC sp_MSForEachTable 'UPDATE STATISTICS ? with fullscan; print ''?'' '
December 28, 2007 at 8:40 am
DBAhawk (12/28/2007)
December 28, 2007 at 8:35 am
Setting the DB to Truncate Log on Checkpoint means you've switched the recovery mode to Simple.
In Simple recovery mode, the inactive portions of the log are discarded once the data...
December 28, 2007 at 8:21 am
In 2005 only
SELECT TOP (@Variable) Columns FROM Table
December 28, 2007 at 8:13 am
select * from sys.procedures where modify_date > @Date
select * from sys.triggers where modify_date > @date
Or, if you want to check all objects
select * from sys.objects where modify_date > @date
December 28, 2007 at 8:11 am
p.s. Please post questions related to SQL 2005 in one of the SQL 2005 forums. Questions in the wrong place may get you inaccurate answers as we're assuming a different...
December 28, 2007 at 8:08 am
If you rebuild the index, you don't need to update the statistics. It's done as part of the index rebuild.
The ? is a place holder for the table name.
December 28, 2007 at 8:06 am
x-portal (12/28/2007)
Getting this error on the error log. Could someone help me to fix it?<snip>
CHECKDB found 0 allocation errors and 0 consistency errors in database 'Budget'. [SQLSTATE 01000]
What error?...
December 28, 2007 at 8:05 am
mobasha (12/28/2007)
three hours?its along time, then it must be alot of questions.
is it more than 50 question or what.
Don't remember. I wasn't counting.
They do give you a fair amount...
December 28, 2007 at 7:59 am
Rather don't use the index tuning wizard. It's prone to giving rather sub-optimal suggestions. Learning to tune indexes yourself will get you much better results most of the time.
If you're...
December 28, 2007 at 6:13 am
Narendra (12/28/2007)
SELECT * from sys.procedures where modify_date >'12/20/2007'
sys.procedures doesn't exist in SQL 2000, and SQL 2000 doesn't have a modification date in sysobjects.
Both those are 2005 and higher features.
December 28, 2007 at 1:52 am
Try enclosing the DB name in square brackets
dump transaction [Rose-25-APR07] with no_log
December 28, 2007 at 12:25 am
Madhivanan (12/28/2007)
You need to use IS NULL or IS NOT NULL to check againt NULL
Yes. My point exactly. Do you know why?
December 28, 2007 at 12:17 am
What's the compatability mode of the databases i works in and the ones it doesn't?
Dump transaction is deprecated in SQL 2005. You should use Backup Log with truncate_only, or, even...
December 27, 2007 at 10:54 pm
Any form of function on a column in the where clause prevents index seeks, even something like UPPER, LEFT or the like.
December 27, 2007 at 12:44 pm
Viewing 15 posts - 47,926 through 47,940 (of 49,571 total)