Viewing 15 posts - 4,141 through 4,155 (of 7,185 total)
I agree with Jason. But don't take our word for it. Try them both, and compare the execution plans.
John
January 11, 2013 at 4:02 am
You're right - you can't do it like that. Here's what I would do. It's from memory, so forgive me if the details aren't 100% accurate.
(1) Create a...
January 11, 2013 at 2:07 am
If Column1 is bit, it won't be an empty string. It'll either be 1 or 0 or NULL.
John
January 11, 2013 at 1:56 am
One alternative is to use the Execute SQL task instead to run sp_send_dbmail, which allows multiple attachments.
John
January 10, 2013 at 2:05 am
Having two nested WHILE loops is likely to be a performance killer. See if you can rewrite them into a set-based operation. As Bhuvnesh mentions, please post table...
January 10, 2013 at 1:43 am
The your first statement should start IF NOT EXISTS, should it not? In any case, please post the results of the following query:
SELECT * FROM tempdb.INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME LIKE '#temp%'
John
January 9, 2013 at 3:23 am
The error is occurring in the stored procedure itself. Do you get the same error if you run just the EXEC line?
John
January 9, 2013 at 2:29 am
What application are you using to do the inserts? What happens if you run the same insert statements from Management Studio?
John
January 8, 2013 at 8:56 am
Brilliant - learned something else! Perhaps I should have used the word "gracefully"? Anyway, I've edited my first post by striking out the word "cleanly".
John
January 8, 2013 at 4:31 am
GilaMonster (1/8/2013)
January 8, 2013 at 4:18 am
GilaMonster (1/8/2013)
John Mitchell-245523 (1/8/2013)
It will depend on whether the database was cleanly shut down - it's possible that the files will be corrupt otherwise.
That's attaching without the log...
January 8, 2013 at 3:40 am
There shouldn't be a problem with the version difference. Have you tried it, though? That's the best way of finding out. It will depend on whether the...
January 8, 2013 at 2:54 am
Have you tried Full Text Indexing?
John
January 8, 2013 at 2:03 am
If this is an ad hoc query you wish to run against multiple servers, you might consider setting up a Central Management Server.
John
January 7, 2013 at 4:36 am
Viewing 15 posts - 4,141 through 4,155 (of 7,185 total)