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 2005 Forums
 Transact-SQL (2005)
 Importing Data

Author  Topic 

vmurali
Yak Posting Veteran

88 Posts

Posted - 2007-05-28 : 06:48:08
How to import data from a excel file into SQL database using a SQL Query.

mahesh_bote
Constraint Violating Yak Guru

298 Posts

Posted - 2007-05-28 : 07:06:58
Use OpenRowSet


OPENROWSET ( 'provider_name'
, { 'datasource' ; 'user_id' ; 'password'
| 'provider_string' }
, { [ catalog. ] [ schema. ] object
| 'query' }
)

as per BOL

Mahesh
Go to Top of Page

vmurali
Yak Posting Veteran

88 Posts

Posted - 2007-05-29 : 05:56:55
Can u explain me with an example. Please send some link which will of help to me.
Go to Top of Page

mahesh_bote
Constraint Violating Yak Guru

298 Posts

Posted - 2007-05-29 : 06:09:31
plz refer below link:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=83663

thnks,

Mahesh
Go to Top of Page

mahesh_bote
Constraint Violating Yak Guru

298 Posts

Posted - 2007-05-29 : 06:12:27
one more link to refer

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=74568

Mahesh
Go to Top of Page
   

- Advertisement -