Viewing 15 posts - 45,916 through 45,930 (of 49,571 total)
Use the sys.master_files view to get a list of all the files of all the databases known to SQL. It does contain the sizes of the files.
Is that what you're...
July 7, 2008 at 7:27 am
Is there anything useful in the SQL Error log?
Do you have a backup from before this started?
July 7, 2008 at 7:16 am
ngarg (7/7/2008)
Expect_date of found table row.
Which row?
What I'm looking for is the required output so that if I write a query for you, I can test it and tell if...
July 7, 2008 at 4:06 am
Is there any blocking? If you check in sysprocesses while the query of the second table is running, do you see anything listed for LastWaitType? If so, what?
how long does...
July 7, 2008 at 4:03 am
Sorry, my mistake. The exec line should have been.
EXEC (@sSQL)
Note the brackets.
The reasons table is dynamic (we add reasons once in a while) and I'm making a summary of this...
July 7, 2008 at 4:01 am
mahesh.kumar (7/7/2008)
Won't this composite non clustered index give a problem while inserting?.
Shouldn't. It'll slow the insert a little, but unless you have lots and lots of indexes you should...
July 7, 2008 at 3:54 am
Could be fragmentation, could be out of date statistics. There are reasons for SQL not to use an index that looks perfect.
Edit: Sounds like it could also be parameter sniffing.
Could...
July 7, 2008 at 3:47 am
Please could you post your table definition, sample data (as insert statements) and desired output
see - http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 7, 2008 at 1:11 am
You can't use variables within an alter table statement. You're going to need dynamic SQL for this.
DECLARE @Reason nvarchar(10), @sSQL NVARCHAR(500)
DECLARE cr cursor local FAST_FORWARD for
SELECT DISTINCT [Reason]
FROM Reason_T
open cr
fetch...
July 7, 2008 at 1:11 am
Ah. In that case, please could you post the schema for the table you have the DB names in, a couple of rows from that table and the result you...
July 7, 2008 at 12:57 am
DamienB (7/7/2008)
July 7, 2008 at 12:49 am
In that case, you need to cover that query for the index to be remotely useful. It's not selective enough otherwise.
CREATE NONCLUSTERED INDEX idx_gpsdatahistory1April_RegistrationNoGpsDate
ON gpsdata_history1_April (Registrationno, gps_datetime)
INCLUDE...
July 7, 2008 at 12:41 am
Jeff Moden (7/7/2008)
July 7, 2008 at 12:38 am
Viewing 15 posts - 45,916 through 45,930 (of 49,571 total)