Viewing 15 posts - 10,621 through 10,635 (of 49,566 total)
vignesh.ms (12/18/2013)
If I parse the above query using ctrl+f5 it wont give any error. Then how we say it is a parse time error?
Because it occurs before execution starts. The...
December 18, 2013 at 3:15 am
Make the index on column2 (which you haven't shown) covering. Whether that's a good idea overall depends on how expensive that key lookup is and how expensive the additional modifications...
December 18, 2013 at 12:43 am
Probably stale statistics. Try an UPDATE STATISTICS <table name> WITH FULLSCAN. If it works, schedule a job that runs the update stats on a regular basis against that table.
December 17, 2013 at 11:57 pm
No, there isn't. SQL 2000 doesn't keep track of any of that, even 2005 onwards only tracks usage since the last restart.
December 17, 2013 at 11:55 pm
What was the code that you tried?
December 17, 2013 at 12:37 pm
By the way, you might want to do some reading on SQL Injection and why your code is a security vulnerability as written.
December 17, 2013 at 9:56 am
You need a representative workload for DTA to be even remotely accurate, so that's a trace file (or table, makes no difference) that recorded as much of a business cycle...
December 17, 2013 at 9:50 am
Just to give you an idea of the work involved in your request...
When I was still consulting I got a request to quote for consolidation of three SQL Servers into...
December 17, 2013 at 9:43 am
Yup, scoping means that the temp table will be dropped automatically as soon as the dynamic SQL finishes. Way around that is to create the temp table outside the dynamic...
December 17, 2013 at 8:07 am
Daily transaction log backups? That means that up to 24 hours data loss is acceptable, so restoring to 1PM should be fine.
If it's not fine, then that log backup...
December 17, 2013 at 8:02 am
Neeraj Dwivedi (12/17/2013)
SELECT
B.name AS TableName
, C.name AS IndexName
, C.fill_factor AS IndexFillFactor
, D.rows AS RowsCount
, A.avg_fragmentation_in_percent
, A.page_count
FROM sys.dm_db_index_physical_stats(null,NULL,NULL,NULL,NULL) A
INNER JOIN sys.objects B
ON A.object_id = B.object_id
INNER JOIN sys.indexes C
ON B.object_id =...
December 17, 2013 at 7:53 am
David Knapp (12/17/2013)
December 17, 2013 at 7:51 am
thunderousity (12/17/2013)
Does this depend upon how I do the restore. i.e. Restore and create the new database during restoration / Create the database and then do the restore separately
The latter...
December 17, 2013 at 7:50 am
You can change compatibility level up and down as much as you like. It's just a switch controlling how the query execution engine interprets some T-SQL constructs.
December 17, 2013 at 4:34 am
Sounds like a NOT EXISTS, but it's not going to be measurable difference in performance just from changing that.
December 17, 2013 at 2:59 am
Viewing 15 posts - 10,621 through 10,635 (of 49,566 total)