473,383 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

computer Names and MSDE2K Databases

Hi All,

I need to retrieve a list of computer names that are available on a network
and a list of databases that are available in MSDE2K. Can someone point me
in the right direction for retrieving this type of info.

TIA!
Lee
Nov 21 '05 #1
4 1893
Hi

Here is a link for your reference.
Enumerate All of the IP Addresses on the Network W/O ActiveDirectory
http://www.codeproject.com/csharp/IPAddresses.asp

If we wants to retrieve the database list from a SQL Server, we just need
to execute the SQL statement as below.
select name from sysdatabases
The sysdatabases table is in the master database.
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #2
Peter,

thanks for the info. with a bit of work, I now have a treeview that displays
all of the domains and computers on the network

Now, what I need to do is create another treeviw (or combobox) that has a
list of databases available for the computer selected in the treeviwew.

Eventually, I'd like to limit the list of computers in the treeview to those
that have MSDE2K running, but first things first.

How do determine if MSDE2K is running on a computer? Once I know it's
running, I can connect and get the names of the databases available and
display them.

Ultimately, the idea here is to programatically generate a connection string
based on the selected computer and selected database

""Peter Huang" [MSFT]" <v-******@online.microsoft.com> wrote in message
news:Ng**************@TK2MSFTNGXA02.phx.gbl...
Hi

Here is a link for your reference.
Enumerate All of the IP Addresses on the Network W/O ActiveDirectory
http://www.codeproject.com/csharp/IPAddresses.asp

If we wants to retrieve the database list from a SQL Server, we just need
to execute the SQL statement as below.
select name from sysdatabases
The sysdatabases table is in the master database.
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 21 '05 #3
Hi All,

I found an example that gives me exactly what I was looking for (actually
more than what I was looking for!).

http://www.codeproject.com/vb/net/SQ...sp#xx1045446xx

Thanks for your help!!
Lee

"lgbjr" <lg***@online.nospam> wrote in message
news:OX**************@TK2MSFTNGP12.phx.gbl...
Peter,

thanks for the info. with a bit of work, I now have a treeview that
displays all of the domains and computers on the network

Now, what I need to do is create another treeviw (or combobox) that has a
list of databases available for the computer selected in the treeviwew.

Eventually, I'd like to limit the list of computers in the treeview to
those that have MSDE2K running, but first things first.

How do determine if MSDE2K is running on a computer? Once I know it's
running, I can connect and get the names of the databases available and
display them.

Ultimately, the idea here is to programatically generate a connection
string based on the selected computer and selected database

""Peter Huang" [MSFT]" <v-******@online.microsoft.com> wrote in message
news:Ng**************@TK2MSFTNGXA02.phx.gbl...
Hi

Here is a link for your reference.
Enumerate All of the IP Addresses on the Network W/O ActiveDirectory
http://www.codeproject.com/csharp/IPAddresses.asp

If we wants to retrieve the database list from a SQL Server, we just need
to execute the SQL statement as below.
select name from sysdatabases
The sysdatabases table is in the master database.
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.


Nov 21 '05 #4
Thanks for your followup and sharing your resource with us,

Wish you good luck!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: tnrABC | last post by:
The approximately 100 books below are for sale. Mostly a selection of mathematics (numerical analysis mostly), computing science (graphics, ai, programming techniques, theory, compilers, operating...
2
by: Matt | last post by:
Is it possible to traverse the values of children of an element, and no need to specify the children's element names in XSLT element? The XML file can be <bio> <skills> <languages>...
1
by: Roy | last post by:
I am using C# and would like to display all my SQL databases in a listbox. How do I use the sp_helpdb to retrive the names of my databases?
3
by: rdemyan via AccessMonster.com | last post by:
I just got Access 2003 and have been playing around with it. This whole macro security thing can be a bit annoying. Initially, I was able to link to my backends located on a second computer....
0
by: H5N1 | last post by:
Hi there I'm currently concerned with asp.net app migration to prodution environment. I have all connection strings centralized in web.config, but to my horror I've just found out that in .xsd...
38
by: John Salerno | last post by:
Here's my script: import sqlite3 con = sqlite3.connect('labdb') cur = con.cursor() cur.executescript(''' DROP TABLE IF EXISTS Researchers; CREATE TABLE Researchers ( researcherID...
5
by: Tom_F | last post by:
To comp.databases.ms-access -- I am trying to re-number the "tab index" for a large number of controls on a form. When I try to do this one control at a time, Access automatically re-numbers...
1
by: shriil | last post by:
Hi I am facing a problem with regard to opening of Access Databases, resident on pcs of my office network connected thru LAN, from my machine on the network. The folders in which these...
2
by: Steve | last post by:
Hi All I have several POS programs (Windows forms VS 2005) Some customers have multiple copies of the programs, all networked to the 1 SQL Server 2005 Database which resides on 1 of the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.