Viewing 15 posts - 5,776 through 5,790 (of 10,144 total)
dwain.c (8/30/2012)
SQLHeap (8/30/2012)
Pretty clever dwain, thanks for your input!
Hey! Almost missed your thanks there! 😛 You're very welcome.
And don't listen to ChrisM@Work - he's just a grumpy...
August 30, 2012 at 6:43 am
Thanks for the feedback. The original table had an unnecessary join which the new query eliminates, and if you can remove the DISTINCT now, then you remove a memory-hogging SORT...
August 30, 2012 at 6:14 am
dwain.c (8/29/2012)
RBarryYoung (8/29/2012)
If the queries...
August 30, 2012 at 6:03 am
Pick a chunk of the query at the bottom of your stored procedure, run it in a query window with a couple of sensible parameters, and have a look at...
August 30, 2012 at 3:38 am
Numeric datatypes are inappropriate because telephone numbers may have embedded spaces, non-numeric characters and leading zero's. Length isn't constant either, so most folks use VARCHAR.
August 29, 2012 at 9:44 am
jdbrown239 (8/29/2012)
Chris..That worked great, thanks and thank all you guys for the input.
You're welcome jd, thanks for the feedback.
August 29, 2012 at 9:07 am
Try putting the FOR XML PATH stringinator into a CROSS APPLY, where it can crunch up the rows of PSFDOC separately from the rest of the query. You might not...
August 29, 2012 at 9:01 am
Larry Kruse (8/29/2012)
The query (see below) performs a select of some fields on one server WHERE...
August 29, 2012 at 6:54 am
The stored procedure returns the result set you want - why complicate it (and double the execution time)?
You may have simplified things a little to help - in which case,...
August 29, 2012 at 6:49 am
dwain.c (8/29/2012)
Yep. That's the same error I got.Whatever it is saying, it's odd.
It refers to "fields" too - and took me ages to call them "columns" when I moved...
August 29, 2012 at 6:22 am
dwain.c (8/29/2012)
ChrisM@Work (8/29/2012)
dwain.c (8/29/2012)
Had to make a slight correction to my prior post and add a question.
-- casting GETDATE as INT gives different results before and after midday ...
August 29, 2012 at 6:18 am
dwain.c (8/29/2012)
Had to make a slight correction to my prior post and add a question.
-- casting GETDATE as INT gives different results before and after midday
SELECT...
August 29, 2012 at 6:04 am
walidkilani (8/29/2012)
select session_id from USESSION where delete_session_id is NULL and user_id = (select user_id from users where...
August 29, 2012 at 5:58 am
dwain.c (8/29/2012)
Mark-101232 (8/29/2012)
CREATE TABLE ABC (Id INT NOT NULL , Name VARCHAR(10), Tab...
August 29, 2012 at 5:56 am
Viewing 15 posts - 5,776 through 5,790 (of 10,144 total)