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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Password in SqlServer 2005

Password in SqlServer 2005

Scheduled Pinned Locked Moved Database
questioncsharpdatabase
4 Posts 4 Posters 1 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 set a password for DB file and just open it in C# ?

    A M 2 Replies Last reply
    0
    • S SajjadZare

      How can I set a password for DB file and just open it in C# ?

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      SajjadZare wrote:

      How can I set a password for DB file and just open it in C# ?

      You want to set SQL Server Password using C# ? Or You want to open a database which is already password protected ? If you want to open the database which has password, then you need to mention it in ConnectionString.

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

      1 Reply Last reply
      0
      • S SajjadZare

        How can I set a password for DB file and just open it in C# ?

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        I think you are asking how to open a .MDF without having SQL Server, that is open the mdf directly from C#. You can't, sql server requires a SERVER. I'm not sure if SQL Express will allow you to open the mdf directly. Access will allow you to do this but you need the Jet engine installed.

        Never underestimate the power of human stupidity RAH

        A 1 Reply Last reply
        0
        • M Mycroft Holmes

          I think you are asking how to open a .MDF without having SQL Server, that is open the mdf directly from C#. You can't, sql server requires a SERVER. I'm not sure if SQL Express will allow you to open the mdf directly. Access will allow you to do this but you need the Jet engine installed.

          Never underestimate the power of human stupidity RAH

          A Offline
          A Offline
          Andy_L_J
          wrote on last edited by
          #4

          SQL Express requires the DB Engine also.

          I don't speak Idiot - please talk slowly and clearly I don't know what all the fuss is about with America getting it's first black president. Zimbabwe's had one for years and he's sh*t. - Percy Drake , Shrewsbury Driven to the arms of Heineken by the wife

          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