Viewing 15 posts - 361 through 375 (of 422 total)
Eugene Elutin (11/13/2012)
edward_hall76 (11/13/2012)
November 14, 2012 at 11:57 am
This is a cursor-based "RBAR" function so if this is going to be a task that runs often it may be necessary to rewrite it using a Tally Table for...
November 14, 2012 at 11:47 am
Just guessing a bit here since I don't know what data is in those 100 columns...
But wouldn't it make more sense to have a set of normalized tables with...
November 14, 2012 at 9:50 am
The DelimitedSplit8k option has been shown to be among the most efficient methods for splitting strings. Another less-complicated but les efficient option is below. Whatever method you choose, I'd recommend...
November 9, 2012 at 9:44 am
If anyone still cares...
I used Jeff's test data (#PostalArea and #CsvTest) and did the split (output = 1,000,000 rows) using the DelimitedSplit8K function and an XML splitter function. The XML...
November 2, 2012 at 2:16 pm
I can't give specifics since you gave none. However, if I'm reading your post correctly, the problem you have is running multiple stored procedures, saving the results somewhere, and then...
October 31, 2012 at 3:48 pm
Here's how to make your query using Jeff Moden's splitter function (of which a slightly modified version is shown below):
IF OBJECT_ID('tempdb..#TempTable') IS NOT NULL
DROP TABLE #TempTable
CREATE TABLE #TempTable (
...
October 24, 2012 at 6:42 pm
opc.three (10/23/2012)
Steven Willis (10/23/2012)
opc.three (10/22/2012)
This is just a pared-down example of a method used by one of the largest open-source development platforms in existence.
And that platform would be...care to...
October 23, 2012 at 3:53 pm
opc.three (10/22/2012)
This is just a pared-down example of a method used by one of the largest open-source development platforms in existence.
And that platform would be...care to share?
...and...
October 23, 2012 at 11:05 am
matak (10/17/2012)
Ive finally been allowed to redesign some tables which are "wide" (Think Field1, Field2, Field3 ... Fieldn). There are multiple fields that do this and columns get added when...
October 22, 2012 at 6:19 pm
Timothy Graffham (9/19/2012)
October 22, 2012 at 4:18 pm
DECLARE
@s-2 VARCHAR(MAX)
,@Split1 CHAR(1)
,@Split2 CHAR(1)
,@Split3 CHAR(1)
,@X XML
/* User input */
SELECT
...
October 19, 2012 at 12:49 pm
Jeff seems to have beat me to it, but here's a similar XML parsing procedure I've used extensively.
CREATE PROCEDURE dbo.ParseXML
@strXML AS XML
...
October 19, 2012 at 10:27 am
Then you are probably stuck with using a CTE. Perhaps you can compare the code I offered with the CTE example above to see how you can do a recursive...
October 15, 2012 at 3:08 pm
Here's a stored procedure that you can use to parse XML. The first example inside the procedure is the XML posted by the original OP. I've included a more comprehensive...
October 15, 2012 at 2:49 pm
Viewing 15 posts - 361 through 375 (of 422 total)