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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Import data from flat file
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

6 Posts

Posted - 11/28/2012 :  03:48:50  Show Profile  Reply with Quote
Hi I have data in flat file like in below format
100purus01 naidu2505 amt01
101XXXX02 naidu2505 amt01 eeeee rrrrr yyyy

How can i insert this data into table using SQL server.
very urgent.


Flowing Fount of Yak Knowledge

2242 Posts

Posted - 11/28/2012 :  04:17:21  Show Profile  Reply with Quote
You can import data in 3 ways.

2) By using Import/Export Wizard
3) By using SSIS packages ---------->Follow this link:
Select Flat File Source from Data flow Sources

Go to Top of Page

Posting Yak Master

160 Posts

Posted - 11/28/2012 :  06:22:10  Show Profile  Reply with Quote
Just to add one additional point to the above. By default, whenever you use Bulk Insert or Import/Export the datatypes will be of varchar. Make sure you use conversion factor or insert the data to another table with desired datatypes once loading is done from flat file.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000