Click to See Complete Forum and Search --> : Saving Files In SQL Server


February 15th, 2000, 06:43 AM
Hi,
Does anyone know how to save files in a table in SQL SERVER 6.5 or 7.
Basically at the moment all I do is save file paths but my client has requested that the actual file be saved and I haven't a clue how to do that.
The files are all Word or Excel
Cheers.
Tony

Lothar Haensler
February 15th, 2000, 07:26 AM
you can use the text or image data type in your SQL server table.
You can then use the BCP utility to load your files into these columns.

February 15th, 2000, 07:41 AM
Cheers for the swift reply Lothar,
I don't know how to use the BCP utility.
Do you have an example of how this might be accomplished in VB (an SQL statement etc). Is this even possible?
Thanks

Lothar Haensler
February 15th, 2000, 08:04 AM
if you want to do it in vB check this link
http://support.microsoft.com/support/kb/articles/q180/3/68.asp?FR=0

February 15th, 2000, 08:26 AM
Thanks a lot Lothar.

gknierim
February 15th, 2000, 10:09 AM
Not sure if this will come in handy but you might want to check out this nifty BCP OCX I found while I was importing data into SQL Server 6.5. Works like a champ without the messy code!:-)

http://www.bbss.com