Viewing 15 posts - 331 through 345 (of 423 total)
I've done some extensive testing using a modified version of the test harness from Jeff Moden's Tally Oh! article to test the various split methods in this thread. My test...
December 28, 2012 at 6:07 pm
Sean Lange (12/28/2012)
telcogod (12/28/2012)
what about xml?
Did you read the whole article and look at the performance comparisons? This style of xml splitter was on the list and it was not...
December 28, 2012 at 1:52 pm
Jeff Moden (12/21/2012)
Steven Willis (12/21/2012)
December 22, 2012 at 10:55 am
[EDIT FOR CLARIFICATION: When using the DelimitedSplit8K function it makes no sense to use it on strings longer than 8K and it will not perform as well as other methods...
December 21, 2012 at 6:46 pm
I know Jeff Moden's splitter function has already been discussed. But this is how I would do it with no aggregates or case statements:
DECLARE
@InputString VARCHAR(8000)
...
December 18, 2012 at 10:29 am
This is very long and convoluted but it works using the built-in SQL XML Schema Collection object and methods. I'm sure the experts will pick it apart--that's fine. If it...
December 17, 2012 at 11:18 pm
OK, sorry. I only read the first few posts and made some faulty assumptions. After considering the last few comments I can see that it really is more complicated than...
November 30, 2012 at 8:51 pm
Try this...
IF OBJECT_ID('TempDB..#mytable') IS NOT NULL
DROP TABLE #mytable
CREATE TABLE #mytable
(
ID INT IDENTITY(1,1) NOT NULL
...
November 30, 2012 at 4:42 pm
No loops, no cursors, no cte
IF OBJECT_ID('tempdb..#TempTable') IS NOT NULL
DROP TABLE #TempTable
CREATE TABLE #TempTable
(
InvoiceId INT NOT NULL
...
November 30, 2012 at 3:32 pm
oradbguru (11/28/2012)
November 30, 2012 at 2:33 pm
I just posted a parser procedure and full-text search procedure in another thread that may be relevant:
http://www.sqlservercentral.com/Forums/Topic1389626-391-1.aspx#bm1391439
November 30, 2012 at 10:13 am
Here's some code I've used. I can't take full credit for the code and apologies to whoever wrote it originally. I've had it in my "toolbox" a long time.
First the...
November 30, 2012 at 10:06 am
Eugene Elutin (11/29/2012)
Google for "Fizz Buzz T-SQL"
🙂
BTW, a carpenter doesn't work without a toolbox and neither do I. If I was looking for a serious candidate I'd expect that he...
November 29, 2012 at 12:39 pm
Here's an example of a procedure that takes an email address as input and outputs 0/1 if the user is expired. Of course, you can update the user's IsExpired column...
November 26, 2012 at 7:11 pm
dj1202 (11/8/2012)
Field 1: varchar in the format of '20121108'.
Field 2 and 3: varchar string...
November 25, 2012 at 11:54 pm
Viewing 15 posts - 331 through 345 (of 423 total)