Table with images

  • hi, i have just started using SQL SERVER 2005. i wanna create a table containing Images. so which data type should i use so that if i try to access the table through .net 2005,no problem should occur. plz help

  • i suggest to save the dir path of the image not the image itself.

  • I agree with Rio. From the application, copy the actual image to a folder and write this path into your table.

    If you want to save the images to the table itself, i suggest you read BOL and related articles first.

    ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/ef5e4d7e-99d9-493e-98e1-52120ef735a0.htm



    Pradeep Singh

  • ya i have done d same i took image as data type n insertes the path of image n was successful.

  • or Upgrade to 2008 and use the FILESTREAM datatype..

  • I'm for saving the filename in the db- as you can search the text. Not to mention the bloat that images have been known to do

    Director of Transmogrification Services
  • save the path, file name and ext in diff column if you want to search the FN

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply