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. General Programming
  3. C#
  4. use DB file without attaching

use DB file without attaching

Scheduled Pinned Locked Moved C#
databasequestion
5 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
    SajjadZare
    wrote on last edited by
    #1

    How can I use DataBase without attach ? I want to write a program and use sql how can I Insert,... data to sql without attach database file ?

    S A 2 Replies Last reply
    0
    • S SajjadZare

      How can I use DataBase without attach ? I want to write a program and use sql how can I Insert,... data to sql without attach database file ?

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Hi, what do you mean by 'attach'? Regards Sebastian

      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

      S 1 Reply Last reply
      0
      • S SajjadZare

        How can I use DataBase without attach ? I want to write a program and use sql how can I Insert,... data to sql without attach database file ?

        A Offline
        A Offline
        Ashfield
        wrote on last edited by
        #3

        Simple. You can't. In order to use a database file it must be attached.

        Bob Ashfield Consultants Ltd Proud to be a Code Project MVP

        1 Reply Last reply
        0
        • S SeMartens

          Hi, what do you mean by 'attach'? Regards Sebastian

          It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

          S Offline
          S Offline
          SajjadZare
          wrote on last edited by
          #4

          attach means not attaching dB file just put It in program's directory and use it like SQLEXPRESS

          S 1 Reply Last reply
          0
          • S SajjadZare

            attach means not attaching dB file just put It in program's directory and use it like SQLEXPRESS

            S Offline
            S Offline
            SeMartens
            wrote on last edited by
            #5

            So you want to use the db file (sql-express) without attaching it to the server? Well I think this is not possible. But you could use another database like derby etc. which can be used without an existing server...

            It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

            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