SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Smart way of Excel -> SQL Server
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

KilpAr
Yak Posting Veteran

80 Posts

Posted - 12/20/2012 :  08:18:39  Show Profile  Reply with Quote
I thought to ask that if I'm doing my upload of data way too hardly. I have Excel sheet which has X times Y cells. These cells needs to go to SQL Server table. The current solution is that I use VBA code to read the range (about 3000 cells) into an array, then print the array into a text file row-by-row like

Column-Row-Value-UserName-TimeStamp

and then BULK INSERT the txt-file into an SQL Server table.


Can I cut some parts of this out? Is there some plain and simple uploading function to put Excel data into an SQL table?

One of the keys here is that from user's point of view it has to be as simple as pressing save in Excel to get the data into the table.

Edited by - KilpAr on 12/20/2012 08:19:14

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 12/20/2012 :  08:27:05  Show Profile  Reply with Quote
do you mean this?

http://www.codeproject.com/Questions/475817/Howplustoplusupdateplussqlplusserverplusdataplusfr

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22765 Posts

Posted - 12/24/2012 :  04:27:25  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
or refer http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000