| Subject: | Re: Updating multiple records |
|---|---|
| From: | "The ScareCrow" <info@xxxxxxxxxxxxxxxxxxxxxxxxx> |
| Date: | Fri, 28 Mar 2008 01:57:39 +0000 (UTC) |
| Newsgroups: | macromedia.coldfusion.cfml_general_discussion |
It does sound insteresting and tempting doesn't it !!
The sql server BOL have some examples, here is just one
Enjoy
Ken
The example also shows a SELECT statement with OPENXML that retrieves
CustomerID and OrderDate from the XML document.
DECLARE @hDoc int
EXEC sp_xml_preparedocument @hDoc OUTPUT,
N'<ROOT>
<Customers CustomerID="XYZAA" ContactName="Joe"
CompanyName="Company1">
<Orders CustomerID="XYZAA"
OrderDate="2000-08-25T00:00:00"/>
<Orders CustomerID="XYZAA"
OrderDate="2000-10-03T00:00:00"/>
</Customers>
<Customers CustomerID="XYZBB" ContactName="Steve"
CompanyName="Company2">No Orders yet!
</Customers>
</ROOT>'
-- Use OPENXML to provide rowset consisting of customer data.
INSERT Customers
SELECT *
FROM OPENXML(@hDoc, N'/ROOT/Customers')
WITH Customers
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: SQL Problem, The ScareCrow |
|---|---|
| Next by Date: | Re: Updating multiple records, -==cfSearching==- |
| Previous by Thread: | Re: Updating multiple records, -==cfSearching==- |
| Next by Thread: | Re: Updating multiple records, -==cfSearching==- |
| Indexes: | [Date] [Thread] [Top] [All Lists] |