Results 1 to 2 of 2

Thread: Inserting a file into nvarbinary column in SQL Server 2000

  1. #1
    Join Date
    Apr 2006
    Posts
    5

    Inserting a file into nvarbinary column in SQL Server 2000

    Hi Folks,

    I was wondering if someone could give some advice on the best way to insert a file to nvarbinary column.

    Currently, I have a table like so:

    FileID (bigInt, 8)
    Name (nvarchar, 255)
    File (nvarbinary, 8000)

    I would like to insert a file into the file column.

    The problem is reading the file from the filesystem into the database.Could anyone give me some advice on the best way to do this?

    Many thanks in advance,

    Morris

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Take look at textcopy in sql2k samples.

Posting Permissions

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