Solved

VB.net Import text file into Database as new table

Posted on 2014-10-16
6
285 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 46

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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 46

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

863 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

20 Experts available now in Live!

Get 1:1 Help Now