Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import Excel file into SQL

Status
Not open for further replies.

Rjconrep

Technical User
Oct 24, 2000
66
US
I am totally new to using SQL Server so please be patient. I have ten Excel files that need to be imported into SQL server and saved out as XML files. Can anyone help me with this or at least give me direction?
Thanks
 
Seeing that you are new to SQL server I wouldn't go into the more advance topics. The best way to start with importing data is the DTS import\export wizard. You can find this in Enterprise Manager... under the server you would like to use right click on Data Transformation Services -> All Tasks -> Import Data. Then just follow the directions.

I suggest you save the package and take a look at it to see what it's doing in the background.

You can also look at BULK INSERT in T-SQL

As for the XML part of it, you can look at the 'FOR XML AUTO' clause.
example:
Code:
select * from YOUR_TABLE_NAME [COLOR=blue]for XML auto[/color]


Well Done is better than well said
- Ben Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top