Answer Posted / hcl
Its linked in so many ways..To generate the output in xml
format to load the XML data into SQL Server tables.
To generate the XML data using select statement can have ,
"for XML {RAW/AUTO/EXPLICIT)" option added in the last of
sql server >=2000 (not possible in <2000).
example is
use Northwind
select * from orders where orderID in (10248, 10249) for
xml auto
Result:
<orders OrderID="10248" CustomerID="VINET" EmployeeID="5"
OrderDate="1996-07-04T00:00:00"
RequiredDate="1996-08-01T00:00:00"
ShippedDate="1996-07-16T00:00:00" ShipVia="3"
Freight="32.3800" ShipName="Vins et alcools Chevalier"
ShipAddress="59 rue de l'
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain rdbms?
What are audit control procedures?
What are the different types of indexes?
What do we need queues in sql service broker?
What is the difference between a function and a stored procedure?
Can you pass expressions to stored procedure parameters?
What are the operating modes in which database mirroring runs?
What is difference between rownum and rowid?
What is a file group?
Give main differences between "Truncate" and "Delete".
What are types of subqueries?
How do I run sql server 2014?
How to remove duplicate rows from table?
Explain query editor regions
How can we rewrite sub-queries into simple select statements or with joins?