Enumerate Microsoft SQL database servers on the local network, using delphi

前端 未结 3 1947
-上瘾入骨i
-上瘾入骨i 2020-12-30 09:53

If I was using C# I could use the .net framework\'s SqlDataSourceEnumerator to discover and show a user a list of SQL Server instances on the network.

How can I do t

3条回答
  •  孤城傲影
    2020-12-30 10:08

    You can use the NetServerEnum function , filtering by the SV_TYPE_SQLSERVER value in the servertype param, another option is use the SQLOLEDB Enumerator ADO object.

提交回复
热议问题