Solved

Is there a way To Read and Write BLOB Data to sql server from access 2010 vba saving an excel file to sql server

Posted on 2016-08-17
3
73 Views
Last Modified: 2016-08-23
access 2010 vba
sql server 2008 r2

What I need:
vba saving an excel file to sql server


I have a filedialog making a single file selection.
Once i do that I need the file to store the Excel file in a sql server field.

Is there a way to do this ?

Thanks
fordraiders
0
Comment
Question by:fordraiders
  • 2
3 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 41760210
Confused...

Save the Excel "Data" to SQL, ...or store the Excel File as "Binary" data to SQL

Whats the ultimate need for this?
It might be easier to just store the Path to the Excel file.

In any event, you can use the "Steam" object in the newer versions of the ADO library for this:
https://support.microsoft.com/en-us/kb/258038

It may not be "easy", as you hope...
Because any number of things may vary with your setup.
There may be conflicts/issues with:
Your Access version
Your Excel file format
Your version of SQL server
Your ADO library version

Lets see what others may post...

JeffCoachman
0
 
LVL 3

Author Closing Comment

by:fordraiders
ID: 41767128
considerations taken. Thanks !
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 41767409
ok
;-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

911 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

17 Experts available now in Live!

Get 1:1 Help Now