Viewing 15 posts - 586 through 600 (of 1,065 total)
nidhisharma01 (7/3/2009)
Hope this query may help youDELETE TOP (SELECT COUNT(*)-1 FROM temp WHERE path='C:\my\' ) FROM temp
No... that will just delete the first n rows, regardless of the path.
DELETE TOP...
July 3, 2009 at 6:39 am
... or if it's homework, you need to do a bit more studying.:-D
July 3, 2009 at 3:30 am
There are so many things wrong with this approach, a lot of which you've already recognized.
You've completely blown away any transactional integrity. How can you guarantee that the job succeeds...
July 3, 2009 at 3:27 am
Brandie Tarvin (7/2/2009)
It wouldn't hurt to create database backups and transaction log backups through the native SQL client if you've got the space.
I appreciate the difficulty here, but I wouldn't...
July 3, 2009 at 1:02 am
I would say yes, because in the first query you are only reading one table, but in the second you are reading 2 tables.
Err, Jack, isn't
SELECT A.*
FROM A INNER...
July 2, 2009 at 11:45 am
Lynn Pettis (7/1/2009)
July 2, 2009 at 7:52 am
Restoring with "STANDBY" is always going to be slower than "NORECOVERY" because SQL Server has to leave the database transactionally consistent in between restores (hence the .tuf file which contains...
July 2, 2009 at 6:57 am
Before you think about performance, those are logically different queries anyway.
If you have 2 rows in B for the same ID, the first query will return 2 rows, but the...
July 2, 2009 at 6:36 am
Distribution 5856.4297 91.332291 0
At least thats smaller than the 86839MB you originally had.;-)
You said this in the original post
Is it Possible to Shrink destination database log file?
Are we...
July 2, 2009 at 1:39 am
Is the log still growing?
I was suggesting that the log had PREVIOUSLY been in Full recovery (which caused it to grow).
Although it is now in Simple, that in itself will...
July 1, 2009 at 10:36 am
DNA (6/30/2009)
July 1, 2009 at 2:29 am
I suspect that you had the database in "Full" recovery mode at some point, without a maintenance plan to back up the transaction log, so it will have continued to...
July 1, 2009 at 1:54 am
Probably a long shot, but the only time I've seen anything like this before was when a heavily used stored procedure was rewritten to use temporary tables.
The stored procedure was...
June 30, 2009 at 2:18 am
JohnDBA (6/29/2009)
That worked! Thank you so much! 😛
You're welcome:-)
June 29, 2009 at 2:48 pm
If the FK column isn't the first column of the composite index, then SQL Server will revert to clustered index or table scans, which is what you are getting.
I wouldn't...
June 29, 2009 at 9:21 am
Viewing 15 posts - 586 through 600 (of 1,065 total)