Viewing 15 posts - 5,296 through 5,310 (of 8,416 total)
vax750,
If you are going to use CASE, Michael's solution is more efficient:
DECLARE @Sample
TABLE (
account INTEGER NOT NULL,
...
March 16, 2010 at 6:48 am
Isn't Bob's/Dixie's article an excellent read today?
Shame about some of the layout, but hopefully that will be fixed soon.
Most enjoyable.
March 16, 2010 at 6:29 am
The Dixie Flatline (3/16/2010)
March 16, 2010 at 6:27 am
The XML PATH solution is a good solution, I just want to add a couple of things, and neaten things up a bit:
DECLARE @Jobs
TABLE (
...
March 16, 2010 at 6:21 am
The usual solution is to use one of the bulk import methods, in minimally-logged mode.
The section of Books Online that deals with this is Importing and Exporting Bulk Data.
March 16, 2010 at 6:06 am
sp_change_users_login is on the deprecation list - it will be removed from a future version of SQL Server.
You should use ALTER USER...WITH LOGIN instead.
March 16, 2010 at 5:55 am
There is another way, less common than that suggested by Lowell, which suits some circumstances.
It has the advantage of being able to use any useful index that might exist.
Sample data:
DECLARE...
March 16, 2010 at 5:45 am
Wylbur (3/15/2010)
I am trying to load the "pubs" sample database to MS SQL 2005 using the osql utility
Just out of interest...why the old samples, and why the deprecated osql utility?...
March 16, 2010 at 5:18 am
GilaMonster (3/16/2010)
I feel another blog rant coming.
See if you can include that http://en.wikipedia.org/wiki/Argument_from_authority link. Very cool.
Other thing that frustrates me, along the same lines, is people insisting that a...
March 16, 2010 at 4:23 am
Sure thing. If I remember, I will send you a PM too.
March 16, 2010 at 3:46 am
Excellent stuff Bob. The first article on SSC I have really enjoyed reading for quite some time. Well done!
It is a shame about some of the code formatting...
March 16, 2010 at 3:33 am
GilaMonster (3/16/2010)
Paul White (3/15/2010)
GilaMonster (3/15/2010)
March 16, 2010 at 3:19 am
mister.magoo,
There really was no need for that, for my part, but thanks for your kind words anyway 🙂
You do raise an interesting point regarding the potential for incorrect results if...
March 16, 2010 at 3:09 am
Dehqon D. (3/15/2010)
Reposting 3rd time, after waiting after half hour[/size]
Why post the same thing three times?
If Jeff chooses to assist you again, it will be at his convenience.
March 16, 2010 at 2:57 am
Roust_m (3/15/2010)
So it looks like the plan does not always show the "memory_grant" unless it is a straight-forward "select" from a table.
No, that is not the case. Your statement...
March 16, 2010 at 2:45 am
Viewing 15 posts - 5,296 through 5,310 (of 8,416 total)