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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
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…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

685 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