Viewing 15 posts - 241 through 255 (of 2,007 total)
I really don't have time to dig into this, work is a bet hectic. When I've got some spare time, I'll try to remember to revisit it. I'm fairly...
May 13, 2013 at 10:36 am
Sorry, I'd have replied sooner but things have been going on at work that take priority.
What you need is a recursive check through the list. So, I've knocked up...
May 13, 2013 at 3:19 am
You've been around long enough to know to provide consumable sample data.
May 10, 2013 at 5:39 am
nick.welham (5/9/2013)
I'm looking for some help clarifying what effect NOLOCK will have on the SPROCS we run on our SQL 2008 server please.
Most of the answers to your questions are...
May 10, 2013 at 2:53 am
There's no question here 😉
However, I note that you're attempting an inefficient T-SQL splitter. Have a read through this article (http://www.sqlservercentral.com/articles/Tally+Table/72993/) by Jeff Moden[/url], for a better one.
May 7, 2013 at 3:52 am
Drove up to Nottingham for SQLBits this morning, checked in to hotel and then with nothing better to do went and registered. It's 7.30am and I've noticed that registration is...
May 3, 2013 at 12:31 am
BenWard (5/2/2013)
May 2, 2013 at 6:44 am
leostrut (5/1/2013)
Name Time1 Time2 Time3
leo 06:03 0615...
May 2, 2013 at 5:44 am
BenWard (5/2/2013)
May 2, 2013 at 5:16 am
So, using this sample data: -
SELECT ID, Val
INTO MyInputdata
FROM (SELECT 1,'John Smith' UNION ALL
SELECT 2,'9/13/1961' UNION ALL
SELECT 3,'Phony...
May 2, 2013 at 5:10 am
Would you consider '2011-01-01 17:15:55' as YYYY-MM-DD HH:MM:SS or YYYY-DD-MM HH:MM:SS ?
Would you consider '01/01/1995 12:52' as DD/MM/YYYY HH:MM or MM/DD/YYYY HH:MM ?
May 2, 2013 at 4:43 am
SELECT c.id, c.brand, oa.color
FROM Cars c
OUTER APPLY (SELECT TOP 1 co.color
FROM colors co
...
May 2, 2013 at 2:49 am
SELECT a.id,a.brand,oa.color
FROM (SELECT c.id, c.brand, (ABS(CHECKSUM(NEWID())) % 3) + 1
FROM Cars c
)a(id,brand,colorid)
OUTER APPLY (SELECT color
...
May 2, 2013 at 2:30 am
Very interesting. I've been playing around a bit, here's my test script so far: -
USE tempdb;
SET NOCOUNT ON;
-- CONDITIONALLY DROP TABLES
IF object_id('test_Details') IS NOT NULL
BEGIN
DROP...
April 26, 2013 at 7:11 am
Is there any reason you can't just test it?
USE tempdb;
SET NOCOUNT ON;
IF object_id('#temp1') IS NOT NULL
BEGIN
DROP TABLE #temp1;
END;
--500,000 Random rows of data
SELECT TOP 1000000...
April 26, 2013 at 5:54 am
Viewing 15 posts - 241 through 255 (of 2,007 total)