Viewing 15 posts - 3,691 through 3,705 (of 5,504 total)
Tom.Thomson (4/23/2010)
lmu92 (4/23/2010)
This OP "really appreciates" help
I looked at the thread Lutz, and to me it looks as if it's not lack of appreciatiuon it's standard American misuse...
April 23, 2010 at 1:27 pm
I'm not sure if this will help performance... but it's worth a try 😉
DECLARE @var INT
SET @var = 100;
WITH XMLNAMESPACES ('http://schemas.somedomain.com/infopath/2003/appname' AS my)
SELECTc.value('../my:PECode[1]','varchar(20)') AS PECode
FROM@tbl tbl
CROSS APPLY
tbl.DocumentXML.nodes('/my:myFields/my:SelectedProductID[text()=sql:variable("@var")]') T(c)
WHERE
...
April 23, 2010 at 1:11 pm
This OP "really appreciates" help
April 23, 2010 at 12:49 pm
ramirez.sebastian (4/23/2010)
thank you all,you could be more helpful
appreciate it,
What help did you expect? You posted a vague question. So you got vague answers. And you haven't even answered my...
April 23, 2010 at 12:46 pm
Koncentrix (4/23/2010)
Another thing is ...DELETE #temp
OUTPUT DELETED.*;
in the following DELETE statement returns all columns deleted from the #temp table
Please note that this is an 2000...
April 23, 2010 at 12:28 pm
Just asking for clarification: are you running SQL2000? (that's the forum you posted in).
If yes I think one of the few ways in 2K to do it is to have...
April 23, 2010 at 12:02 pm
What have you tried so far?
We're here to help you, not to substitute you...
Also, please read and follow the first link in my signature on how to ask for help...
April 23, 2010 at 11:51 am
Would you mind providing a short example of one of your xml file so we have something to test our solution against? Would help (at least me...)
April 23, 2010 at 11:47 am
Please provide table def and (fake) sample data together with your expected result in a ready to use format to show what you're struggling with.
If you need assistance please have...
April 23, 2010 at 11:40 am
What is the reason behind the requirement to loop through the XML?
You could get a table based on the xml:
SELECT
Z.Itemnmbr,
Z.Node.value('PromotionCode[1]','varchar(30)') AS PromotionCode
FROM
(SELECT
w.value('Itemnmbr[1]','varchar(100)') AS Itemnmbr,
X.Y.query('.') AS Node
FROM...
April 23, 2010 at 10:45 am
You could start search BOL (BooksOnLine, the SQL Server help system) for "Service Broker, catalog views". The result will be a list of system views related to SB. One of...
April 22, 2010 at 4:11 pm
quayludious (4/22/2010)
I had attached a source file example... its the <magic happens here> part of getting the external mess to the internal hotness that eludes me...
Unfortunately, your source file is...
April 22, 2010 at 4:05 pm
Hmmm, now we have the SQL for the result set. But how about the source data? 😉
April 22, 2010 at 3:43 pm
Glad I could help 😀
One more thing to notice:
you shouldn't use that code within a WHERE clause.
Instead, convert the parameter you query against using something like
WHERE mycol > = DATEDIFF(ss,'19700101',@MinDate)
to...
April 22, 2010 at 3:31 pm
Ok, here's a sample that might get you started:
DECLARE @tbl TABLE
(
val CHAR(1)
)
INSERT INTO @tbl
SELECT 'a' UNION ALL
SELECT 'a' UNION ALL
SELECT 'a' UNION ALL
SELECT 'a' UNION ALL
SELECT...
April 22, 2010 at 3:25 pm
Viewing 15 posts - 3,691 through 3,705 (of 5,504 total)