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)
 Data from Text File

Author  Topic 

kwikwisi
Constraint Violating Yak Guru

283 Posts

Posted - 2009-01-11 : 21:51:16
hello

Is it possible to import data to database table from text file ?
So how?

Thanks.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-11 : 21:53:31
Yes, you have several options:

1. bcp.exe
2. DTS/SSIS
3. import/export wizard
4. T-SQL with xp_cmdshell

I prefer bcp, but I'm very comfortable with command line utilities. If this isn't in your skill set, I'd recommend options 2 or 3.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -