Click here to Skip to main content
15,885,790 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am doing a Windows Application with C#.net (2008) as FrontEnd and SQL Server 2005 as Backend.

My task is to Get SQL Server 2005-Server Name or Its Instance Name in Combobox without getting to SQL Server Management Studio.

I tried to get by Registry but it did not work as i had hardcoded it

OSQL -L also did not list any server names

How to Get this Server name, Any suggestions
Posted
Comments
Herman<T>.Instance 26-Aug-11 9:40am    
don't you use a connectionstring? your dbname is stated there

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900