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
What is a join in sql? What are the types of joins?
Explain what is the function of sql server agent windows service?
What is a subquery in a select query statement in ms sql server?
what is an extended stored procedure? : Sql server database administration
What is use of except clause? How does it differ from not in clause?
What is #temp and @table variable in SQL server?
Why do we use stored procedures in sql server?
How to get a list all databases on the sql server?
What are the new features in sql server 2016?
Explain trigger classes i.e. Instead of and after trigger?
What is the contrast amongst drop and truncate?
What is Dependency Injection and provide example?
What is full outer join in sql server joins?
What is an example of a primary key?
Explain primary key, foreign key and unique key?