Unix Technical Forum

Insering Large Objects into Sybase

This is a discussion on Insering Large Objects into Sybase within the Sybase forums, part of the Database Server Software category; --> Here's what I would like to do. I would like to store the contents of large Adobe PDF files ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 04:26 PM
Wayne Happ
 
Posts: n/a
Default Insering Large Objects into Sybase


Here's what I would like to do.

I would like to store the contents of large Adobe PDF files inside a table.
Reading the Sybase manuals I know this is possible via text and binary
datatypes etc...

My question is how to get the darn things in there to begin with.

I'm running UNIX and I would like to write a script to load them. This would
be a one time load. Can anyone give me any ideas about how to get the file
contents into Sybase from a script and/or command line to begiin with?

Regards,

Wayne


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 04:26 PM
dUnit
 
Posts: n/a
Default Re: Insering Large Objects into Sybase

No, you really, really, really don't want to do that unless someone has
a large gun to your head (just wink if they do). Store the files on a
filesystem and store links to the files in the database. Storing large
amounts of binary data in the database, while possible, is not an
optimal solution. Database gets bloated, database recovery is slow,
manipulation is problematic; it's nothin' but pain and ugliness. One
more hint, use some level of indirection (symlinks, whatever) to your
'real' files and store the link in the database. Helps if you ever have
to move/restore the files to their not-so-original locations in that
emergency you figured would never happen. My .02.

Wayne Happ wrote:
> Here's what I would like to do.
>
> I would like to store the contents of large Adobe PDF files inside a table.
> Reading the Sybase manuals I know this is possible via text and binary
> datatypes etc...
>
> My question is how to get the darn things in there to begin with.
>
> I'm running UNIX and I would like to write a script to load them. This would
> be a one time load. Can anyone give me any ideas about how to get the file
> contents into Sybase from a script and/or command line to begiin with?
>
> Regards,
>
> Wayne
>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 04:26 PM
Wayne Happ
 
Posts: n/a
Default Re: Insering Large Objects into Sybase

The guy who signs my invoices loves the idea.

"dUnit" <jackripper@purityofessence.edu> wrote in message
news:EY_gc.143480$2oI1.48495@twister01.bloor.is.ne t.cable.rogers.com...
> No, you really, really, really don't want to do that unless someone has
> a large gun to your head (just wink if they do). Store the files on a
> filesystem and store links to the files in the database. Storing large
> amounts of binary data in the database, while possible, is not an
> optimal solution. Database gets bloated, database recovery is slow,
> manipulation is problematic; it's nothin' but pain and ugliness. One
> more hint, use some level of indirection (symlinks, whatever) to your
> 'real' files and store the link in the database. Helps if you ever have
> to move/restore the files to their not-so-original locations in that
> emergency you figured would never happen. My .02.
>
> Wayne Happ wrote:
> > Here's what I would like to do.
> >
> > I would like to store the contents of large Adobe PDF files inside a

table.
> > Reading the Sybase manuals I know this is possible via text and binary
> > datatypes etc...
> >
> > My question is how to get the darn things in there to begin with.
> >
> > I'm running UNIX and I would like to write a script to load them. This

would
> > be a one time load. Can anyone give me any ideas about how to get the

file
> > contents into Sybase from a script and/or command line to begiin with?
> >
> > Regards,
> >
> > Wayne
> >
> >

>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:54 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com