Click here to Skip to main content
15,902,845 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I've got a doubt in SQL DMO as I'm currently using a function call from that to enumerate the list of SQL Servers on my local network. Now the problem is that Microsoft has mentioned on MSDN that DMO will be removed beyond SQL Server 2008 R2 following which only SMO will be supported.

The worrying fact about this is:

1. My application is written in MFC using pure unmanaged code
2. SMO looks to be only .NET based

Is there a workaround to get the list of SQL Servers on the network without worrying about the SQL DMO dll for unmanaged code or is copying the dll the only solution?

Apologies if this has been asked before or if it is a silly question. If this has already been answered before, I would appreciate it if you could direct me. Thanks!
Posted

1 solution

Check Enumerate SQL Server Instances in C#, Using ODBC[^], it is c#, but it gives you some hints.
 
Share this answer
 
Comments
Nithin Sundar 28-Apr-11 13:14pm    
Thank You! That is very helpful.

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