Can I Use My Computer Name Instead of (localdb) in My Database Server?

  • Thread starter Thread starter Medicol
  • Start date Start date
  • Tags Tags
    Computer
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
3 replies · 2K views
Medicol
Messages
226
Reaction score
55
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 ?
 
Physics news on Phys.org
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