Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Importing data from Excel

Author  Topic 

bogus
Starting Member

41 Posts

Posted - 2008-12-22 : 13:44:27
This is really beginning to make me very angry...

I am trying to import an excel spreadsheet, Excel 2003, into a SQL Server 2000 database. The table is being created and I am using the import wizard.

I have also tried this with an existing table.

The problem: I have a part number from our catalog. Some are numeric (99999) and others are alpha (100-200-ABC). The 2nd type are not being imported, even though the column is defined as text and the table is defined as varchar.

I am so frustrated with something that should only take 5 minutes... argh.

bogus
Starting Member

41 Posts

Posted - 2008-12-22 : 14:24:09
I got the garbage in... I had to save as CSV then import. $#@!$#@ bastage.

Go to Top of Page

petek
Posting Yak Master

192 Posts

Posted - 2009-01-02 : 09:15:46
the import should create the destination columns.....

Kind Regards

Pete.
Go to Top of Page

petek
Posting Yak Master

192 Posts

Posted - 2009-01-02 : 09:19:23
Bogus,

Change the excel file to csv and import using BCP there is a good description of how to use it in Books Online

Kind Regards

Pete.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-02 : 09:21:12
or you can even try with OPENROWSET
Go to Top of Page

bogus
Starting Member

41 Posts

Posted - 2009-01-06 : 20:28:21
I will investigate BCP!

Thanks!
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-01-08 : 02:16:29
Also
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

ramvprasath
Starting Member

1 Post

Posted - 2009-03-02 : 07:51:32
HI Everyone,

I Want to import an excel spreadsheet to sql server database. I want the excel sheet to be imported to the database from VB in a click of a button.

Pls guide me

Thanks
Ram
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-03-02 : 08:01:55
quote:
Originally posted by ramvprasath

HI Everyone,

I Want to import an excel spreadsheet to sql server database. I want the excel sheet to be imported to the database from VB in a click of a button.

Pls guide me

Thanks
Ram


See this link
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -