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

Fordraiders
Fordraiders used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
MIS Liason
Most Valuable Expert 2012
Commented:
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

Author

Commented:
considerations taken. Thanks !
Jeffrey CoachmanMIS Liason
Most Valuable Expert 2012

Commented:
ok
;-)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial