View Single Post

   
  #4 (permalink)  
Old 02-29-2008, 05:54 AM
Simon Hayes
 
Posts: n/a
Default Re: From excel file into MS SQL server


"no one" <noone@yahoo.com> wrote in message
news:41FF763D.6BFF199A@yahoo.com...
> Thanks for the link, but this is not what I want to do. I want to put the
> data from the file into a table, not the file itself.
>
> "Steve C. Orr [MVP, MCSD]" wrote:
>


<snip>

Have a look at DTS - it can load directly from Excel (or most other things)
to MSSQL, and you can change the source and destination connections at
runtime. This link discusses executing a package from ASP:

http://www.sqldts.com/default.aspx?207

Otherwise, you can parse the file and generate your own INSERT statements
(slow), or convert it to a flat text file and then use bcp.exe or BULK
INSERT to load the data.

Simon



Reply With Quote