views:

37

answers:

5

i have a very simple excel file that i need to import into a table in sql server 2008.

one of the fields is a bit complex and i dont think it can be saved effectively to a csv, since it sometimes has comas and single quotes in it. it screwed up the formatting when i save to a csv. so i would like to try to import directly from the xls file.

does anyone know how to import from xls to sql server ?

+1  A: 

SQL Server has an import wizard that works with .xls files.

Beth
A: 

SQL Server Integration Services for the win. Check this out!

Serkan Hekimoglu
+1  A: 

The import wizard generates an SSIS package for you. If you want more control, you can create the SSIS package yourself in Visual Studio.

littlegreen
+1  A: 

try using the sql server management studio

right click in your database -> Tasks -> Import Data..

alt text

check this link for more info

How to: Run the SQL Server Import and Export Wizard

RRUZ
@rruz is it possible with express?
i am a girl
Check this link http://www.sqlis.com/post/SQL-Server-Editions-and-Integration-Services.aspx
RRUZ
@jenny: For Express, see [my answer](http://stackoverflow.com/questions/3894345/sql-server-2008-importing-data-from-excel-2003-file/3894453#3894453).
Joe Stefanelli
+2  A: 

For Express, run C:\Program Files\Microsoft SQL Server\100\DTS\Binn\DTSWizard.exe

Joe Stefanelli