Viewing 15 posts - 3,466 through 3,480 (of 3,957 total)
If you're trying to mimic the results of your SP, i.e., the range appears in two columns, I think this is a pretty simple approach.
DECLARE @INT INT = 225
;WITH Tally...
June 4, 2012 at 7:36 pm
I appreciate all the responses to my question, especially the Attunity connector which I will need to investigate.
June 4, 2012 at 6:12 pm
jeffem (6/4/2012)
dwain.c (6/1/2012)
jeffem (6/1/2012)
Just a note about the performance: I did a comparison, and using a table variable will give a...
June 4, 2012 at 6:10 pm
jeffem (6/1/2012)
Just a note about the performance: I did a comparison, and using a table variable will give a bit of...
June 1, 2012 at 9:18 pm
Koen Verbeeck (6/1/2012)
dwain.c (6/1/2012)
I have posted an SSIS question in the SQL 2008 General forum and I'm...
June 1, 2012 at 1:23 am
Koen Verbeeck (6/1/2012)
dwain.c (6/1/2012)
Do you...
June 1, 2012 at 1:22 am
Koen Verbeeck (6/1/2012)
Every time you open a package or when you run it, the connection managers will...
June 1, 2012 at 12:58 am
Calling all SSIS experts that may come to the water cooler for a drink!
I have posted an SSIS question in the SQL 2008 General forum and I'm not sure that's...
June 1, 2012 at 12:56 am
Lynn Pettis (5/31/2012)
Testing out your new crystal ball I see. Hope it works! 😀
DBCC TIMEWARP (SELECT Timestamp FROM riya_dave WHERE DDL IS NOT NULL)
DBCC TIMEWARP GETDATE()
June 1, 2012 at 12:25 am
I do deplore dynamic SQL unless you really need it. Try this:
DECLARE @basetable TABLE
(caseid INT, formname VARCHAR(255), name VARCHAR(255), value VARCHAR(255))
INSERT @basetable(caseid,formname,name,value)
VALUES
(1, 'Highways', 'roadname', 'darlington...
June 1, 2012 at 12:17 am
You can also do it with a subquery like this:
DECLARE @Tab TABLE
( ID INT , ColValue INT)
;
INSERT INTO @Tab (ID, ColValue)
...
June 1, 2012 at 12:02 am
Thanks Jeff, Paul and Chris for stopping by again.
I'm amazed this discussion thread is still active!
May 31, 2012 at 9:20 pm
Lynn Pettis (5/31/2012)
Based on your requirements, one of the records you return is incorrect. It happens to be the one that Paul found with his solution.
That record was bugging...
May 31, 2012 at 8:01 am
I still want to believe that there must be a method to do this with less JOINs. But you're correct, that without them the ROW_NUMBERs just don't seem to...
May 30, 2012 at 7:16 pm
Como on guys, you ain't tasted nothin' until you've tasted this one.
May 30, 2012 at 6:51 pm
Viewing 15 posts - 3,466 through 3,480 (of 3,957 total)