Articles
|
News
|
Weblogs
|
Books
|
Forums
Artima Forums
|
Articles
|
Weblogs
|
Java Answers
|
News
Sponsored Link
•
C# Answers Forum
Why it does not work if disable local network???
0
replies on
1
page.
Welcome
Guest
Sign In
Back to Topic List
Reply to this Topic
Search Forum
Threaded View
Previous Topic
Next Topic
Flat View: This topic has
0
replies on
1
page
Ho Ngoc Hung
Posts: 4
Nickname: hongochung
Registered: Mar, 2004
Why it does not work if disable local network???
Posted: Mar 8, 2004 9:54 PM
Reply
Advertisement
my follow codes is get all SQL serner name in local network
public static ArrayList GetSQLServer()
{
ArrayList list = new ArrayList();
try
{
SQLDMO.ApplicationClass oSQLApp = new SQLDMO.ApplicationClass();
SQLDMO.NameList oNames = oSQLApp.ListAvailableSQLServers();
for (int i = 1; i <= oNames.Count; i++)
list.Add(oNames.Item(i));
oNames = null;
oSQLApp = null;
return list;
}
catch(Exception ex)
{
throw ex;
}
}
In my computer, it use that method to retrive all SQL server name, if i let my local network available, it get well. but when i disable my local network from my computer, it return nothing although my computer had installed SQL server or SQL engine.
tell me why ? and how to fix this problem.
Thanks, please show me as soon as posible.
Previous Topic
Next Topic
Sponsored Links
Web
Artima.com
Copyright
© 1996-2019 Artima, Inc. All Rights Reserved. -
Privacy Policy
-
Terms of Use