If you are using sql server and only have one instance installed then the default name is your computer name. Only when you install extra instances do they need to have actual, unique names supplied and then you can open up the SQL Management tool to view them.
hericles
Veteran Poster
1,065 posts since Nov 2007
Reputation Points: 156
Solved Threads: 228
Skill Endorsements: 9
Hi,
The short hand in SQL for localhost is as follows "<local>" or "." However this is not exactly what you are asking... Looking at your example your colleagues are using SQLExpress edition and you are using something like Developer or Enterprise.
By default, the licenced versions use the "default" instance i.e. your database would be localhost. SQLExpress installs itself as a named instance of SQLExpress. You can install other licened versions and also Sql Express as there own instance as well e.g. localhost\MyServerInstance or Localhost\SQLExpress and they would be independent of each other.
Off the top of my head I'm not sure how in code you could gather the various instances of SQL on your machine (as they are independant of each other) Normally I put a config screen or an ini file to configure my SQL connection but it still depends on knowing what instances you have...
This link may help at connection time Click Here
G_Waddell
Practically a Master Poster
618 posts since Nov 2009
Reputation Points: 107
Solved Threads: 92
Skill Endorsements: 5