Viewing 15 posts - 901 through 915 (of 2,462 total)
Anyone want to take a stab at this. Essentially the OP needs a csv splitter that handles text qualifiers; Eirikur Eiriksson's RFC-4180 compliant splitter from this article: This article[/url] would...
-- Itzik Ben-Gan 2001
March 25, 2016 at 10:31 am
Are you really on SQL Server 2008? If you were using SQL 2012 this article would get you 90% there:
http://www.sqlservercentral.com/articles/SQL+Server+2012/106903/%5B/url%5D
I'm going to play around with a couple ideas and...
-- Itzik Ben-Gan 2001
March 25, 2016 at 9:25 am
John Mitchell-245523 (3/24/2016)
Those somewhat contrived requirements make this sound like a homework assignment. Why can't you create any temp tables or new procedures?John
This is actually a common business requirement....
-- Itzik Ben-Gan 2001
March 24, 2016 at 9:50 am
Provided that the rank_pos is sequential and there are no gaps you use LEAD like this:
SELECT t.Score, Rank_pos = ISNULL(t.Rank_pos,X.Rank_pos+1)
FROM
(
SELECT score, Rank_pos, xx = LEAD(Score,1,1) OVER...
-- Itzik Ben-Gan 2001
March 24, 2016 at 9:37 am
Brandie Tarvin (3/24/2016)
One of my coworkers just came up with the worst joke ever.
Three DBAs walk into a NoSQL bar. Soon after, they leave - they couldn't join a table!
Will...
-- Itzik Ben-Gan 2001
March 24, 2016 at 8:38 am
I was curious and looked at the thread.
ChrisM@home (10/22/2012)
yuvipoy (10/22/2012)
Ok, thanks. Can you give an example of how the data from this output table would be used please?
ChrisM as...
-- Itzik Ben-Gan 2001
March 24, 2016 at 8:28 am
db8 (3/23/2016)
they told me we can sort by using ,with index clause.
don't know what exactly use of this with index clause I will confirm on this...
-- Itzik Ben-Gan 2001
March 23, 2016 at 10:43 pm
ringovski (3/23/2016)
Thanks Orlando and Alan for the replies.Is dbo.splitcsv a reserved table or function somewhere as i am unable to find it within the DB?
It's a custom, user-created function which...
-- Itzik Ben-Gan 2001
March 23, 2016 at 8:42 pm
Let's reformat the code to make it more readable:
SUBSTRING
(
(
SELECT ', ' + gen_Firstname + ' ' + gen_Lastname
FROM...
-- Itzik Ben-Gan 2001
March 23, 2016 at 7:35 pm
Ray K (3/23/2016)
Steve Jones - SSC Editor (3/23/2016)
Who believes it?http://espn.go.com/mlb/story/_/id/15051882/alex-rodriguez-new-york-yankees-retire-2017-season
Interesting.
I won't say whether or not I believe it, but whether or not he actually does, that's his prerogative. ...
-- Itzik Ben-Gan 2001
March 23, 2016 at 6:08 pm
ChrisM@Work (3/23/2016)
The idea of presenting...
-- Itzik Ben-Gan 2001
March 23, 2016 at 1:56 pm
This is my "get numbers" or "fntally" function which has served me well.
I started with what I've learned from Jeff Moden including the 0 or 1 start functionality. Then added...
-- Itzik Ben-Gan 2001
March 23, 2016 at 12:20 pm
Stephanie Giovannini (3/23/2016)
David McKinney (3/23/2016)
CONSTRAINT ck_xxx CHECK ('' not in (c1,c2,c3,c4,c5))
Would you kindly check and let me...
-- Itzik Ben-Gan 2001
March 23, 2016 at 11:26 am
Grant Fritchey (3/23/2016)
Happy to help out. I'm rewriting the execution plans book. It should be done soon I hope.
I finished your execution plan book while I was on vacation last...
-- Itzik Ben-Gan 2001
March 23, 2016 at 11:18 am
There's a bunch of ways. Easiest would be:
In SQL Server Management Studio right-click the table then navigate to "export" and walk through use the wizard. The most common format/output is...
-- Itzik Ben-Gan 2001
March 22, 2016 at 11:07 pm
Viewing 15 posts - 901 through 915 (of 2,462 total)