Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ahmad Jalil Qarshi
 
Posts: n/a
Default How to Transfer data from Excel to SQL SERVER 2000

hi!

i want to transfer data from MS Excel Sheets to SQL Server. is there any
way.


Thanks

Ahmad Jalil Qarshi


  #2   Report Post  
Tom Moreau
 
Posts: n/a
Default

The simplest way is to use the DTS Import Wizard.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
..
"Ahmad Jalil Qarshi" wrote in message
...
hi!

i want to transfer data from MS Excel Sheets to SQL Server. is there any
way.


Thanks

Ahmad Jalil Qarshi


  #3   Report Post  
Jens Süßmeyer
 
Posts: n/a
Default

YOu can import that from SQL Server using

-DTS
-Linked Servers
-OPENROWSET
-OPENDATASOURCE

--
HTH, Jens Suessmeyer.

---
http://www.sqlserver2005.de
---
"Ahmad Jalil Qarshi" schrieb im Newsbeitrag
...
hi!

i want to transfer data from MS Excel Sheets to SQL Server. is there any
way.


Thanks

Ahmad Jalil Qarshi



  #4   Report Post  
JosephPruiett
 
Posts: n/a
Default

Make sure you have header records in your excel file. Then click in first
column first row and hit ctrl+shift+end which should highlight everything.
Then go to file save as then for the type choose csv. Then in Enterprise
Manager click on database you want it to go into then right click and choose
import data. For Source choose text which is the last option, then browse
for file you made .csv then on destination choose db its going into if not
alreay specificed and then when you get to the import format screen click
first row has column names and then click next. You should see all data with
proper column names. Then next and run and you should have all data.

You might have to go back and change fields size specifications because it
makes all columns 255 which is not a good practice for final table. Also
when you save the file as type csv it will give you errors and ask you if you
want to save over file. Just say yes it will also do the same thing when you
go to close out of file just click save again and over right otherwise the
file might get messed up if you hit cancel or no to saving file.

Hope this helps.

"Ahmad Jalil Qarshi" wrote:

hi!

i want to transfer data from MS Excel Sheets to SQL Server. is there any
way.


Thanks

Ahmad Jalil Qarshi



  #5   Report Post  
huseyin_akturk
 
Posts: n/a
Default

If you don't choose .csv format, you can use .xls. In .csv format all column
will be interpreted as varchar. But if you transfer from excel, it can be
different respect to the column types in excel. But, there is an important
point.

"Ahmad Jalil Qarshi" wrote:

hi!

i want to transfer data from MS Excel Sheets to SQL Server. is there any
way.


Thanks

Ahmad Jalil Qarshi





  #6   Report Post  
huseyin_akturk
 
Posts: n/a
Default

Excuse, my message is ongoing.
....But, there is an important point. Look your .xls file. Sometimes a colons
can be different types such as half of one column date and remaining is
string. In this position sql will interpret this column as DateTime. But
there can be error in string part. So, string part can be null.


"huseyin_akturk" wrote:

If you don't choose .csv format, you can use .xls. In .csv format all column
will be interpreted as varchar. But if you transfer from excel, it can be
different respect to the column types in excel. But, there is an important
point.

"Ahmad Jalil Qarshi" wrote:

hi!

i want to transfer data from MS Excel Sheets to SQL Server. is there any
way.


Thanks

Ahmad Jalil Qarshi



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel 2000 - corrupted data john pilcher Excel Discussion (Misc queries) 0 March 14th 05 01:14 PM
Office 97 to 2003: Excel: enter data w/fixed 2 decimal. 2000. be. terrier New Users to Excel 1 January 29th 05 10:59 AM
Office 97 to 2003: Excel: enter data w/fixed 2 decimal. 2000. be. terrier New Users to Excel 0 January 29th 05 06:11 AM
Help with data not getting plotted Scott Ehrlich Excel Discussion (Misc queries) 2 January 25th 05 05:17 AM
how do i transfer data from excel to another program ann New Users to Excel 2 January 21st 05 09:50 PM


All times are GMT +1. The time now is 07:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"