Solved

VB.net Import text file into Database as new table

Posted on 2014-10-16
6
293 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 48

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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 48

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
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…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

828 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