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 XML when extension is XLS

Status
Not open for further replies.

CptTom

Programmer
Jul 16, 2001
117
0
0
US
I have a spreadsheet that after much consternation turns out to actually be an XML, not an XLS which the current extension is. There are over 25 fields, what is the best way to bulk insert it?
 
I would just do a xp_cmdshell and rename the file to an xls extension.

Live to Throw
Throw to Live
 
XML Spreadsheet files have a lot of formatting stuff in them that you would probably need to parse out. If you are using SSIS, I know that in .net you can open the xml spreadsheet and save it as a standard xls.

I imagine you can somehow do this in vbScript as well, but it is probably not nearly as easy.

I don't think you will be able to bulk insert this, unless you convert it to a standard xls file. I rarely So you'll either need to use DTS/SSIS to change the file, then import or just open it and do a good old 'save as' before doing a normal bulk insert.

Hope this helps,

Alex

Ignorance of certain subjects is a great part of wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top