Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
hello friend I am using following code to get names instances of sql servers on my local pc but i got exception error no row at possition zero
C#
DataTable dataTable = SmoApplication.EnumAvailableSqlServers(true);

please help me what to do. to get instance name of sqlservers through c# any other method is there.thanks
Posted
Updated 27-Nov-11 18:38pm
v2
Comments
Ravi Sant 10-Feb-12 6:35am    
What is the error you are getting?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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