CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Guest

    Saving Files In SQL Server

    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


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Saving Files In SQL Server

    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.


  3. #3
    Guest

    Re: Saving Files In SQL Server

    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


  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: Saving Files In SQL Server

    if you want to do it in vB check this link
    http://support.microsoft.com/support.../3/68.asp?FR=0


  5. #5
    Guest

    Re: Saving Files In SQL Server

    Thanks a lot Lothar.


  6. #6
    Join Date
    Jan 2000
    Posts
    264

    Re: Saving Files In SQL Server

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured