Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Localdb and computer name

  1. Nov 29, 2014 #1
    My computer name is "Computer" and my domain is MyDomain.com
    My account to sign in is MyDomain\MyAccount.
    My database instance is "(localdb)\MyInstance" - this is also my database server.
    I don't want to use string "(localdb)", can I use my computer name for it such that my database server becomes
    "Computer\MyInstance", for example ?
  2. jcsd
  3. Nov 29, 2014 #2
    What OS and what database server are you using?
  4. Nov 29, 2014 #3
    Windows and MS SQL Server 2012 Express version
  5. Nov 29, 2014 #4

    Filip Larsen

    User Avatar
    Gold Member

    If you are referring to the hostname in connection strings, then you can use "localhost" [1] there instead of your full computer or domain name if you want to connect to a local database server.

    [1] http://en.wikipedia.org/wiki/Localhost
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook