Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 get instance name

Author  Topic 

mahdi87_gh
Yak Posting Veteran

72 Posts

Posted - 2009-01-06 : 09:25:30
hi,i want to create a dynamic sqlconnection string .
i work with sql2005 developer edition And C#2005.
to make a connection string i need to mashin name and sql instance name.
mashin name can obtian by this code:string name=Environment.MashinName;
but i dont know how can i get the instance name.
please help.
thanks.

****<< I Love MTN.SH >>****

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-06 : 09:56:01
duplicate please dont cross post

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=117258
Go to Top of Page
   

- Advertisement -