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
87 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

813 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

11 Experts available now in Live!

Get 1:1 Help Now