Viewing 15 posts - 4,306 through 4,320 (of 5,504 total)
Please post more detailed information (including execution plan) as described in the second link in my signature.
February 8, 2010 at 2:14 pm
Please don't cross post. Same question (to be used for further assitance) asked here .
February 8, 2010 at 2:07 pm
hs103 (2/8/2010)
...Why does cursor get all 3 records at the same time and gives error????
Please Help!
Please see my previous post:
You're doing a SELECT FROM MyTable. This will result in...
February 8, 2010 at 1:26 pm
Assuming you have your xml data stored in an xml variable named @xml, I'd use the following code:
;WITH cte AS
(
SELECT
c.value('@id[1]', 'varchar(10)') +'-'+
y.value('LabelType[1]/@id[1]', 'varchar(10)')+'-'+
y.value('Label[1]/@id[1]', 'varchar(10)') a
FROM @xml.nodes('strinfo/choices/choice') t(c)
CROSS APPLY
t.c.nodes('Labels/Label') x(y)
)
SELECT...
February 8, 2010 at 1:15 pm
It seems like the service you provide doesn't meet the requirements of some users.
Sounds like there are some people out there looking for a way to get lists rather than...
February 8, 2010 at 12:28 pm
The problem is that your statement
SET @fName = (select [something] from MyTable)
will return one value for every row in MyTable, which cannot be assigned to a variable of the data...
February 8, 2010 at 12:07 pm
I don't know if there's an easier way to do it but here's what I came up with (using UNPIVOT and PIVOT):
DECLARE @tbl TABLE
(id INT,
c1 CHAR(1), c2 CHAR(1), c3...
February 8, 2010 at 11:35 am
nigel. (2/8/2010)
My hamster just fell through a distortion in the space-time continuum. Is it possible to get him back using DBCC TIMEWARP. Please help, he was my best friend.
Ooops!
Could you...
February 8, 2010 at 10:29 am
I would not use two different strategies.
What I would recommend to do:
Take the insert without any value for parentid. Set this column to a default value that will identify parentids...
February 7, 2010 at 11:40 am
Is the insert statement the only statement in your proc?
Or are you using a cursor by any chance?
Would you mind sharing the overall concept of your procedure as well as...
February 7, 2010 at 5:23 am
never mind. Didn't read the whole story before answering. Sorry.
February 7, 2010 at 4:38 am
T-SQL_NewBie (2/6/2010)
ABC00000000001 ABC Shipping Inc ...
February 7, 2010 at 2:27 am
Matt Miller (#4) (2/6/2010)
Careful about the usage folks. If you happen to read these messages backwards... DBCC TimeWarp also performs a DBCC MindWarp on the person at the keyboard...
February 7, 2010 at 2:13 am
Ok, here's what I came up with:
;WITH Repeats AS
(
SELECT 1 AS parent, 6 AS Cnt UNION ALL
SELECT 2,10 AS Cnt UNION ALL
SELECT 3,14 AS Cnt
),
cte AS
(
SELECT
ROW_NUMBER() OVER(ORDER BY CompanyName,parent...
February 6, 2010 at 3:43 pm
CirquedeSQLeil (2/6/2010)
The Dixie Flatline (2/6/2010)
I'll just get my answer off Twitter.
I wave my subatomic particles at all of your...
February 6, 2010 at 2:50 pm
Viewing 15 posts - 4,306 through 4,320 (of 5,504 total)