Load table in SQL 2005 Express ed.
From: fewgoodpeople (fewgoodpeople_at_hotmail.com)
Date: 07/16/04
- Next message: Andrew J. Kelly: "Re: Restoring sql server database from one server to another from a ba"
- Previous message: Jack: "Re: Restoring sql server database from one server to another from"
- Messages sorted by: [ date ] [ thread ]
Date: 16 Jul 2004 16:00:25 -0700
Problems: 1. Connection
2. Insert statements 3500 lines, on 70 columns takes forever
I need to generate a xml data file based on a XSD provided from the
database. I ran into SQL Hell problems because the XSD is rather huge
(30+ leaf). Therefore, I need to use the new FOR XML query shown
below, to achive that:
(From Michael Rys)
select CustomerID as "@ID",
(select OrderID as "data()"
from Orders
where Customers.CustomerID=Orders.CustomerID
FOR XML PATH('')
) as "@OrderIDs",
CompanyName,
ContactTitle as "ContactName/@ContactTitle",
ContactName as "ContactName/text()",
PostalCode as "Address/@ZIP",
Address as "Address/Street",
City as "Address/City"
FROM Customers
FOR XML PATH('Customer')
But without the data in the table (in the newly created SQL Server
2005 Express ed), I can impossibly generate XML data. I can't use DTS
to connect this server, nor can I run insert statements of 3500 rows,
70 columns. Is there anything I can do in the weekend?
Thanks.
- Next message: Andrew J. Kelly: "Re: Restoring sql server database from one server to another from a ba"
- Previous message: Jack: "Re: Restoring sql server database from one server to another from"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|