Solved

VB.net Import text file into Database as new table

Posted on 2014-10-16
6
278 Views
Last Modified: 2014-10-19
Hi

What VB.net (SQL Client) code would I use to import a text file as a new table into a SQL database that
I interact with using a connection string
0
Comment
Question by:murbro
  • 2
  • 2
  • 2
6 Comments
 
LVL 21

Expert Comment

by:Randy Poole
ID: 40383968
Are you talking about a comma separated text file?
0
 
LVL 45

Accepted Solution

by:
Vitor Montalvão earned 500 total points
ID: 40383988
You can Import text file directly in SQL Server. In Management Studio, right-click on database name then Tasks / Import Data... and follow the wizard. If you need to do it in a regular basis just save at the end of the wizard so you can reschedule it.
0
 
LVL 21

Expert Comment

by:Randy Poole
ID: 40384310
He is looking for the functionality to do this operation via a VB.NET client.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 45

Expert Comment

by:Vitor Montalvão
ID: 40384330
Yes, Randy. I understood that but wanted to give him an alternative. He can do this with a wizard instead of coding.
Why reinvent the wheel, right?
0
 

Author Comment

by:murbro
ID: 40387981
Hi Vitor. I appreciate the info but I really need the VB.net code to build this into an app that I am working on.
0
 

Author Closing Comment

by:murbro
ID: 40389970
Thanks Vitor. I appreciate the help. This will work for me at the moment
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now