Re: MSDE not showing up in SQLDMO.ListAvailableServers
From: Michael C (michaelc_at_nospam.org)
Date: 07/29/04
- Next message: Dave Taylor: "Re: MSDE not showing up in SQLDMO.ListAvailableServers"
- Previous message: CHRIS: "MSDE not showing up in SQLDMO.ListAvailableServers"
- In reply to: Dave Taylor: "MSDE not showing up in SQLDMO.ListAvailableServers"
- Next in thread: Dave Taylor: "Re: MSDE not showing up in SQLDMO.ListAvailableServers"
- Reply: Dave Taylor: "Re: MSDE not showing up in SQLDMO.ListAvailableServers"
- Reply: Andrea Montanari: "Re: MSDE not showing up in SQLDMO.ListAvailableServers"
- Reply: Andrea Montanari: "Re: MSDE not showing up in SQLDMO.ListAvailableServers"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Jul 2004 19:33:40 GMT
I had the same problem. SQL-DMO does two things when it enumerates SQL
Servers:
1. It creates a list of SQL Servers using the Win32 API NetServerEnum
function
2. It creates a list of SQL Servers that respond to a broadcast on Port
1433
3. It combines these two lists.
If you're not connected to a network, NetServerEnum doesn't seem to return
any SQL Servers. MSDE runs on Port 1434 instead of 1433, which means it
won't pick up the broadcast. If you're just trying to enumerate the LOCAL
MSDE instance(s), you can read the registry subkeys under
HKLM\Software\Microsoft\MSSQLServer\MSSQLServer and
HKLM\Software\Microsoft\Microsoft SQL Server.
If anyone out there knows of a function that can be used to return named
instances of MSDE, I'd appreciate the info.
Thanks,
Michael C.
"Dave Taylor" <nospam_dave@processeng.com> wrote in message
news:OtXGtZZdEHA.3944@tk2msftngp13.phx.gbl...
> I have a VB.NET app using MSDE and the SQL-DMO to get a list of available
> server. I installed a copy of MSDE on the users' machine (this machine
did
> not have MSDE previously so it was a new copy including latest SP3), then
> installed my app. When I start my app, the local computer name does not
> show up in the list of available servers. This has happened twice now on
> separate machines. Is there something I need to do after installing MSDE
> for it to register as a server? Note: I know MSDE is installed and
running
> because my app creates and properly fills databases on the local machine,
it
> just doesnt show up in the list of available servers.
>
> Thanks
>
> Dave Taylor
>
>
- Next message: Dave Taylor: "Re: MSDE not showing up in SQLDMO.ListAvailableServers"
- Previous message: CHRIS: "MSDE not showing up in SQLDMO.ListAvailableServers"
- In reply to: Dave Taylor: "MSDE not showing up in SQLDMO.ListAvailableServers"
- Next in thread: Dave Taylor: "Re: MSDE not showing up in SQLDMO.ListAvailableServers"
- Reply: Dave Taylor: "Re: MSDE not showing up in SQLDMO.ListAvailableServers"
- Reply: Andrea Montanari: "Re: MSDE not showing up in SQLDMO.ListAvailableServers"
- Reply: Andrea Montanari: "Re: MSDE not showing up in SQLDMO.ListAvailableServers"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|