Viewing 15 posts - 3,196 through 3,210 (of 5,504 total)
Why not simply using the "old-fashioned" method?
SELECT
xmlFileName,
c.value('SSN[1]', 'varchar(30)') AS ssn,
c.value('TaxableWages[1]' , 'varchar(30)') AS TaxableWages
FROM XmlImportTest
CROSS APPLY
xml_data.nodes('ROOT/Employee') T(c)
If this solution doesn't give you the desired result you might want to...
July 6, 2010 at 3:02 pm
Please provide ready to use table def and sample data as described in the first link in my signature. It'll help us help you.
July 6, 2010 at 2:37 pm
@ Ken
Please provide ready to use table def and sample data together with expected result as described in the first link in my signature.
@mrpolecat
What exactly is the difference of the...
July 6, 2010 at 1:55 pm
And I say shame shame shame shame shame, SHAME ON ME! 😉
I should have spotted it right away...
Regarding your questions:
1 Can you reproduce this?
2 If yes, why would this happen?
3...
July 6, 2010 at 1:49 pm
grevesz (7/6/2010)
I was talking about the SELECT statement in this thread posted yesterday at 4:12:48 PM:
...
This statement, when I run it, returns case when ts_order.trans_type BUY_SELL, as the...
July 6, 2010 at 12:32 pm
grevesz (7/6/2010)
the string value is not re-interpreted as a SQL statement.
No, it isn't. The problem is that it isn't returned as a string correctly.
Regards,
Gabor
I don't quite understand.
What section or character...
July 6, 2010 at 12:03 pm
grevesz (7/5/2010)
Thanks a lot for the explanations and ideas. This is a lot for me to digest, so please bare with me for a day (or two). I am...
July 5, 2010 at 3:13 pm
bryan.duchesne (7/5/2010)
July 5, 2010 at 2:53 pm
Something like this?
INSERT target (field1, field2, field3,.....)
SELECT field1, field2, field3
FROM Source
WHERE NOT EXISTS (SELECT 1 FROM target t2 WHERE t2.field1 = Source.field1)
July 5, 2010 at 2:16 pm
Lowell (7/5/2010)
this statemnts...
July 5, 2010 at 2:12 pm
First of all: Thank your for providing ready to use sample data!! 🙂
Made it really easy to focus on the subject!
Here are a few items I run across while...
July 5, 2010 at 2:06 pm
Regarding question #4: Did you try to right click on the function in question and select "Modify"? 😉
July 5, 2010 at 1:14 pm
As a side note: It seems like all you want to do is get a comma separated list columns ofr a table specified by @an_export_id.
If so, there are concepts available...
July 5, 2010 at 12:52 pm
rajendra prasad-377679 (7/3/2010)
now i am working in one organisation they ask me to write the program for that scenario using cursor..
that s y i ask help to the experts..like u...
July 3, 2010 at 11:22 am
Viewing 15 posts - 3,196 through 3,210 (of 5,504 total)