How to import an Excel Sheet/File into SQL Server 2005 (to different tables in sql)
how import excel sheet/file sql server 2005 using ssis, dts or other tool while have different column names in excel sheet. these different column names suppose uploaded matching columns in different tables in sql database. how achieve this? i have tried dts takes 1 table @ time? appreciate suggestion. thank you
hi
if using dts import can select 1 table only. best method build ssis package can use multiple import method.
you can use bcp utility also.
another 1 method openrowset
insert yourtable select * openrowset('microsoft.jet.oledb.4.0',
'excel 8.0;database=d:\test.xls;hdr=yes',
'select * [sheetname$]')
ramesh s
www.sequalserver.com
SQL Server > SQL Server Tools
Comments
Post a Comment