Viewing 15 posts - 2,386 through 2,400 (of 19,564 total)
texpic (8/4/2014)
I'm getting an error, incorrect syntax near 1 (the 3:07 solution)
What version of SQL Server are you on?
August 5, 2014 at 6:50 am
One more version. A little more dynamic. Also returns the results in the same order you listed.
CREATE TABLE #Test
(MyName varchar(10), MyCommaData varchar(50));
INSERT INTO #Test
SELECT 'Tom', '10,20,30,40' UNION ALL
SELECT...
August 4, 2014 at 8:07 pm
Try this one. It is more of a kluge especially if there are a bunch of values in the delimited list.
CREATE TABLE #Test
(MyName varchar(10), MyCommaData varchar(50));
INSERT INTO #Test
SELECT 'Tom',...
August 4, 2014 at 7:38 pm
I am with Lynn on this. Why must it be done without a function?
It can be done without a function but takes a bit more code. The use...
August 4, 2014 at 6:59 pm
Lynn Pettis (8/4/2014)
August 4, 2014 at 6:55 pm
djj (8/4/2014)
"Here's the rule: if my 14-yr old smart daughter could find the answer on Google from your question, you'd shouldn't ask or...
August 4, 2014 at 10:56 am
Andrew Kernodle (8/4/2014)
But eh, frustrating though it may be, I'll just have to get some climbing gear out and...
August 4, 2014 at 9:20 am
Andrew Kernodle (8/4/2014)
The sysadmin here decided a few weeks back that the CPU usage of the...
August 4, 2014 at 9:02 am
irvidesai (8/4/2014)
August 4, 2014 at 8:56 am
Gary Varga (8/4/2014)
There is no reason for computing to be any different to anything else. I cannot remember the number...
August 4, 2014 at 8:47 am
anthony.green (8/4/2014)
SELECT
*
FROM
Property
WHERE
Beds = 2
AND
Location = 'XYZ'
ORDER BY
Baths DESC, -- more baths the better
Price ASC, -- less price the...
August 4, 2014 at 8:04 am
Phil Factor (8/4/2014)
August 4, 2014 at 7:38 am
Gazareth (8/4/2014)
I just thought the easy Q & high points was an attempt to improve everyone's Monday morning 🙂Can we do this every week?!
+1
August 4, 2014 at 7:37 am
Tune the insert, get the insert to finish.
Wait until an outage window when nobody will be connecting to the database and do your index then
August 4, 2014 at 7:32 am
Ok, that tells a tale of a much smaller table than what you were showing before.
I bet there was blocking, or memory thrashing, or slow io, or any number of...
August 3, 2014 at 10:01 pm
Viewing 15 posts - 2,386 through 2,400 (of 19,564 total)