C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...







how to insert the text file into the database


Posted Date: 03 Oct 2006      Total Responses: 2

Posted By: nagendra       Member Level: Silver     Points: 2


haiii...

how to insert the text file example...
ram,17,hyd
ravi,12,hyd

into table with columns
empname|| empage||emplocation]


with out using the data transfermation services




Responses

Author: Vadivel Mohanakrishnan    03 Oct 2006Member Level: DiamondRating:     Points: 2
Make use of "Bulk Insert" command in SQL Server.

If at all you are looking for a working sample chk this out: http://www.sqlteam.com/item.asp?ItemID=3207

Best Regards
Vadivel

MVP SQL Server
http://vadivel.blogspot.com


Author: Immanuel    03 Oct 2006Member Level: BronzeRating:     Points: 2
Hi Nagandra,

Your issue can be solved by using bulk Insert,A feature of SQL Server. Have this sample code

BULK INSERT Northwind.dbo.[Order Details]
FROM 'f:\orders\lineitem.tbl'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = ':\n'
)



Post Reply
You must Sign In to post a response.
Next : sql server dts package
Previous : NAME SPACE
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

conference calls

Contact Us    Privacy Policy    Terms Of Use