Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Smart way of Excel -> SQL Server

Author  Topic 

KilpAr
Yak Posting Veteran

80 Posts

Posted - 2012-12-20 : 08:18:39
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.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-12-20 : 08:27:05
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

22864 Posts

Posted - 2012-12-24 : 04:27:25
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
   

- Advertisement -