Solved

VB.net Import text file into Database as new table

Posted on 2014-10-16
6
290 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 47

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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 47

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

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…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
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.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

810 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