Results 1 to 6 of 6

Thread: [RESOLVED] Store image in SQL Express - what is same as OLE_Object?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Resolved [RESOLVED] Store image in SQL Express - what is same as OLE_Object?

    In Access I could use OLE_Object to save an image in a table. How is this done in SQL Express 2005?

    Thanks,

    Warren

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Store image in SQL Express - what is same as OLE_Object?

    I'm not sure about 2005, but for SQL Server 2000 this FAQ thread has the answer:
    for SQL Server, the data type needed for the Picture field is Image (which stores large binary data) rather than OLE.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Re: Store image in SQL Express - what is same as OLE_Object?

    Thanks but that thread showed an example for Access 97.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Store image in SQL Express - what is same as OLE_Object?

    Erm.. the code there works for any database, all that needs to change is the data type (hence the note that I quoted above) and the ConnectionString (which I assume you already know).

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Re: Store image in SQL Express - what is same as OLE_Object?

    I'm sorry, maybe I did not post my question right. In Access the field type you select when creating a table is OLE_Object. When I use SQL Express, it does not have this field type so I was wondering what field type to use in place of it.

    Warren

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Store image in SQL Express - what is same as OLE_Object?

    From my quote in post #2, it is probably Image.

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