?
Solved

VB.net Import text file into Database as new table

Posted on 2014-10-16
6
Medium Priority
?
322 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:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 51

Accepted Solution

by:
Vitor Montalvão earned 2000 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 51

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:Murray Brown
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:Murray Brown
ID: 40389970
Thanks Vitor. I appreciate the help. This will work for me at the moment
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

765 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