Solved

VB.net Create SQL Table from .csv file

Posted on 2015-01-15
4
266 Views
Last Modified: 2015-01-21
Hi

What VB.net code would I use to automatically create a SQL table from a .csv file?
Is it possible to create a blank table in this way?
0
Comment
Question by:murbro
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
Imran Javed Zia earned 334 total points
Comment Utility
Hi,

You may read data from csv and based on datatype create sql script to create table.

alternatively you can also follow following article:
http://technet.microsoft.com/en-us/library/ms162203(v=sql.90).aspx

Thanks
0
 
LVL 16

Assisted Solution

by:Imran Javed Zia
Imran Javed Zia earned 334 total points
Comment Utility
0
 
LVL 11

Assisted Solution

by:LordWabbit
LordWabbit earned 166 total points
Comment Utility
If it's a once off import it might be easier to simply use the SQL Server import and export tools.
http://msdn.microsoft.com/en-us/library/ms140052.aspx
0
 

Author Closing Comment

by:murbro
Comment Utility
Thanks for the help
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

16 Experts available now in Live!

Get 1:1 Help Now