C
C#17mo ago
Heaven01

❔ Link text files to SQL database using C#

Hi! I'm trying to find the codes for linking text file data to SQL database in table but Idk where to start since C# is new for me. I should able to read the data of the text file in SQL Server Management Studio. I would like to get some help.
7 Replies
Jimmacle
Jimmacle17mo ago
when you say linking text file data, do you mean store the text in the database?
Heaven01
Heaven01OP17mo ago
yes in a table form
Jimmacle
Jimmacle17mo ago
do you know how to add text to a table in SQL outside of C#?
Heaven01
Heaven01OP17mo ago
actually I'm doing this for my internship project. So I have to use C# since they are using it here
Angius
Angius17mo ago
EF Core, then?
Anu6is
Anu6is17mo ago
Start with parsing the text file. You should be able to read each line and split it up into the columns needed for the db table. Have you done that much at least? You've asked this before so what code do you have so far?
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server