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


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




plz urgent


Posted Date: 25 Feb 2007      Total Responses: 2

Posted By: sumaa       Member Level: Gold     Points: 2


How to insert data from text file into SQL 2005.

This is data inside the text file :-

12345ty

I want to insert the data into field in the database like this :-

12345 -> field name Number
ty -> field name Name

Help me pls. How to read the data from text file to front end(c# with asp.net) and from frontend to sqlserver




Responses

Author: kumar    26 Feb 2007Member Level: DiamondRating:     Points: 2
Hi,

first you read the data from the text file using filestream and put into a string and then split the string into 12345 and ty and then insert into database

thanks and regards,
kumar



Author: Arun Thomas    26 Feb 2007Member Level: GoldRating:     Points: 2
Hi Suma,

Plz check the foll url. I have implemented the code for reading a text file and taking it into dataset using VB.NET

http://codekeep.net/snippets/fb00e829-5137-47d4-97f3-074a95f80d84.aspx


Post Reply
You must Sign In to post a response.
Next : Could u any one suggest me some articles for WebCustom Controls? I want to write the custom grid
Previous : CAS
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

silicone halloween mask

Contact Us    Privacy Policy    Terms Of Use