Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. To save a file in a SQL 2005

To save a file in a SQL 2005

Scheduled Pinned Locked Moved Database
questionhtmldatabasesql-serversysadmin
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saranya B
    wrote on last edited by
    #1

    Can anyone help me to save a file in SQL Server 2005. :confused: My application will be used by the user to attach the approval mails (Either html or word or any files). How can i save and retrive from SQL Server 2005? :omg: Anticipating for your replies... Regards, Saranya Balasubramanian

    C 1 Reply Last reply
    0
    • S Saranya B

      Can anyone help me to save a file in SQL Server 2005. :confused: My application will be used by the user to attach the approval mails (Either html or word or any files). How can i save and retrive from SQL Server 2005? :omg: Anticipating for your replies... Regards, Saranya Balasubramanian

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Use a varbinary(max) column type. Use that type in parameters when you add data to the database. When you select it the result will by a byte array in your .NET application.


      Upcoming events: * Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ... * Reading: Developer Day 5 Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

      G 1 Reply Last reply
      0
      • C Colin Angus Mackay

        Use a varbinary(max) column type. Use that type in parameters when you add data to the database. When you select it the result will by a byte array in your .NET application.


        Upcoming events: * Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ... * Reading: Developer Day 5 Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

        G Offline
        G Offline
        Giorgi Dalakishvili
        wrote on last edited by
        #3

        This will help you: http://support.microsoft.com/kb/309158[^]

        my articles

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups