dbTalk Databases Forums  

Blob in Access

comp.databases.ms-access comp.databases.ms-access


Discuss Blob in Access in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
leegold58
 
Posts: n/a

Default Blob in Access - 03-06-2008 , 08:51 PM






Hi,

I have MS Access 2002. I want to make create a table with a blob field
but I don't see that option when creating a table. I want to store
text in the blob field.

How do I do this?

Thanks,
Lee G.

Reply With Quote
  #2  
Old   
Wayne Gillespie
 
Posts: n/a

Default Re: Blob in Access - 03-06-2008 , 09:32 PM






On Thu, 6 Mar 2008 18:51:25 -0800 (PST), leegold58 <goldtech (AT) worldpost (DOT) com>
wrote:

Quote:
Hi,

I have MS Access 2002. I want to make create a table with a blob field
but I don't see that option when creating a table. I want to store
text in the blob field.

How do I do this?

Thanks,
Lee G.
Try the "memo" data type.

Wayne Gillespie
Gosford NSW Australia


Reply With Quote
  #3  
Old   
Larry Linson
 
Posts: n/a

Default Re: Blob in Access - 03-06-2008 , 11:57 PM



"leegold58" <goldtech (AT) worldpost (DOT) com> wrote

Quote:
I have MS Access 2002. I want to make create a
table with a blob field but I don't see that option
when creating a table. I want to store
text in the blob field.
As Wayne said, a Memo Field will work; so will an OLE field. There's an
example of using a BLOB in Access in the Imaging Examples you'll find at
http://accdevel.tripod.com -- note those examples and article have not yet
been updated for Access 2007.

Larry Linson
Microsoft Office Access MVP




Reply With Quote
  #4  
Old   
(PeteCresswell)
 
Posts: n/a

Default Re: Blob in Access - 03-07-2008 , 06:42 PM



Per Larry Linson:
Quote:
As Wayne said, a Memo Field will work; so will an OLE field. There's an
example of using a BLOB in Access in the Imaging Examples you'll find at
http://accdevel.tripod.com -- note those examples and article have not yet
been updated for Access 2007.
For reasons I can't recall, the last few times I had to track
various kinds of documents via a JET back end, I elected to store
only the DOS path addresses of the documents and keep them in a
dedicated folder.

Obvious downside of that is data integrity - we'll never know if
a doc goes missing until we try to open it.

But it seems to me like there were some fairly serious downsides
to storing, for instance, a mix of MS WORD, Excel, and PDF docs
within the DB. Performance is what comes to mind first, but I
can't really recall.

Anybody have an opinion on the merits of the two approaches?

Same two approaches, but in an SQL Server back end?
--
PeteCresswell


Reply With Quote
  #5  
Old   
Fred Zuckerman
 
Posts: n/a

Default Re: Blob in Access - 03-07-2008 , 07:41 PM



"(PeteCresswell)" <x@y.Invalid> wrote

Quote:
For reasons I can't recall, the last few times I had to track
various kinds of documents via a JET back end, I elected to store
only the DOS path addresses of the documents and keep them in a
dedicated folder.

Obvious downside of that is data integrity - we'll never know if
a doc goes missing until we try to open it.

I store Word docs in a separate folder as you cite. I have a procedure that
reads the table of DOS path addresses and runs a DIR() on each and print the
missing docs. I run the procedure periodically. If a doc gets moved or
deleted, at least I find out in short order. This makes tracking it down a
little easier.
Fred Zuckerman




Reply With Quote
  #6  
Old   
Tony Toews [MVP]
 
Posts: n/a

Default Re: Blob in Access - 03-07-2008 , 07:53 PM



"(PeteCresswell)" <x@y.Invalid> wrote:

Quote:
For reasons I can't recall, the last few times I had to track
various kinds of documents via a JET back end, I elected to store
only the DOS path addresses of the documents and keep them in a
dedicated folder.

Obvious downside of that is data integrity - we'll never know if
a doc goes missing until we try to open it.
I've been meaning to write a simple routine that
1) clears a flag on the document table
2) runs down each file mentioned in the document table verifying that it exists on
the hard drive.
2a) It might be nice to store date/time and size of file to see if there were any
changes since the time the file was initially saved
3) display any that are missed.

Then do the same thing the other way. Go down the list of files looking for the file
in the table.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/


Reply With Quote
  #7  
Old   
(PeteCresswell)
 
Posts: n/a

Default Re: Blob in Access - 03-07-2008 , 08:56 PM



Per Tony Toews [MVP]:
Quote:
I've been meaning to write a simple routine that
1) clears a flag on the document table
2) runs down each file mentioned in the document table verifying that it exists on
the hard drive.
2a) It might be nice to store date/time and size of file to see if there were any
changes since the time the file was initially saved
3) display any that are missed.

Then do the same thing the other way. Go down the list of files looking for the file
in the table.
That seems to address the original question to some degree:
sounds like even the stars store their docs in the file system
rather than JET....

How about SQL Server? Same deal? Or is it workable?

I've got an agenda here.... got my guys talked into moving to SQL
Server if testing shows a performance increase and I'm wondering
if I should change my document storage strategy.
--
PeteCresswell


Reply With Quote
  #8  
Old   
DFS
 
Posts: n/a

Default Re: Blob in Access - 03-07-2008 , 10:36 PM



(PeteCresswell) wrote:
Quote:
Per Tony Toews [MVP]:
I've been meaning to write a simple routine that
1) clears a flag on the document table
2) runs down each file mentioned in the document table verifying
that it exists on the hard drive.
2a) It might be nice to store date/time and size of file to see if
there were any changes since the time the file was initially saved
3) display any that are missed.

Then do the same thing the other way. Go down the list of files
looking for the file in the table.

That seems to address the original question to some degree:
sounds like even the stars store their docs in the file system
rather than JET....

How about SQL Server? Same deal? Or is it workable?
Related story: at a client site I interface some Access systems with a doc
mgmt system from Hummingbird - now owned by OpenText I believe. It uses a
document metadata library hosted in SQL Server (Oracle option), but the
documents themselves are renamed/obfuscated - Certificate of Occupancy.doc
becomes A451O3 - and stored on the server file system.


Quote:
I've got an agenda here.... got my guys talked into moving to SQL
Server if testing shows a performance increase and I'm wondering
if I should change my document storage strategy.




Reply With Quote
  #9  
Old   
Bob Quintal
 
Posts: n/a

Default Re: Blob in Access - 03-08-2008 , 05:31 AM



"(PeteCresswell)" <x@y.Invalid> wrote in
news:guv3t396hs6jpsdbdpck334qd6humdofvv (AT) 4ax (DOT) com:

Quote:
Per Tony Toews [MVP]:
I've been meaning to write a simple routine that
1) clears a flag on the document table
2) runs down each file mentioned in the document table verifying
that it exists on the hard drive.
2a) It might be nice to store date/time and size of file to see if
there were any changes since the time the file was initially saved
3) display any that are missed.

Then do the same thing the other way. Go down the list of files
looking for the file in the table.

That seems to address the original question to some degree:
sounds like even the stars store their docs in the file system
rather than JET....

How about SQL Server? Same deal? Or is it workable?

I've got an agenda here.... got my guys talked into moving to SQL
Server if testing shows a performance increase and I'm wondering
if I should change my document storage strategy.
I actually copy the file to an attachments subdirectory on the
server, renaming it to the primary key of the attachment's record,
then set it (the copy) to read-only.

I did one application where the attachments table did originally
include the ole field, and was not impressed.

The DBA admin at work won't allow blobs in SQL Server.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com



Reply With Quote
  #10  
Old   
lyle fairfield
 
Posts: n/a

Default Re: Blob in Access - 03-08-2008 , 06:59 AM



Bob Quintal <rquintal (AT) sPAmpatico (DOT) ca> wrote in
news:Xns9A5B4AAECB745BQuintal (AT) 66 (DOT) 150.105.47:

Quote:
"(PeteCresswell)" <x@y.Invalid> wrote in
news:guv3t396hs6jpsdbdpck334qd6humdofvv (AT) 4ax (DOT) com:

Per Tony Toews [MVP]:
I've been meaning to write a simple routine that
1) clears a flag on the document table
2) runs down each file mentioned in the document table verifying
that it exists on the hard drive.
2a) It might be nice to store date/time and size of file to see if
there were any changes since the time the file was initially saved
3) display any that are missed.

Then do the same thing the other way. Go down the list of files
looking for the file in the table.

That seems to address the original question to some degree:
sounds like even the stars store their docs in the file system
rather than JET....

How about SQL Server? Same deal? Or is it workable?

I've got an agenda here.... got my guys talked into moving to SQL
Server if testing shows a performance increase and I'm wondering
if I should change my document storage strategy.

I actually copy the file to an attachments subdirectory on the
server, renaming it to the primary key of the attachment's record,
then set it (the copy) to read-only.

I did one application where the attachments table did originally
include the ole field, and was not impressed.

The DBA admin at work won't allow blobs in SQL Server.
Years ago I helped with a project that used Indexing Service to manage
and make available all kinds of documents. With it a home care nurse
could pull out her trusty notebook, type in "Transfusion and
Haemophiliac" and find all the documents in his/her [large] handbook that
dealt with those topics (in title, body, ... anywhere) in a few seconds.
Wild Cards and various operators were available to him/her.
Indexing Service seems to me to be powerful, effective and efficient at
managing documents. Indexing Service is not rocket science. Its object
model is akin to a Database model, but only a small fraction of the size.
ADO has an Indexing Service provider and the whole thing could be learned
in an afternoon.
But almost no one seems to use Indexing Service; it appears everyone
would rather chop down trees with their trusty, rusty JET pocket-knife,
or their bigger SQL machete, instead of using the power chain saw
available.
BTW, Indexing Service is a free part of Windows (I haven't checked VISTA
for it yet), and it can be used in web applications (with an MS Server,
of course.)




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.