473,464 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Where to find SQLDMO?

After installing Windows Server 2003 SP1, my project no longer has a valid
reference to SQLDMO. I was using it to get a list of valid SQL Servers on
the network. Perhaps there is now a better way to do that, rather than
using a COM object? If not, does anyone know where to find SQLDMO? Here is
the code previously used:

Public Sub FindDatabase()

Dim index As Integer

Dim sqlApp As New SQLDMO.Application

Dim sqlNames As SQLDMO.NameList

'check local machine for database

booConnected = BuildConnectionStringSQLServer(strServerName, c_CatalogName,
strUserName, strUserPassword)

'pc attached to network?

booNetworkAttached = IsNetworkAvailable()

If booNetworkAttached = True Then

strIPAddress = GetIPAddress()

sqlNames = sqlApp.ListAvailableSQLServers

For index = 0 To sqlNames.Count - 1 'sqlNames is 1 based(COM)

strServerNames(index) = sqlNames.Item(index + 1)

Next

End If

End Sub

Thanks,

Dean Slindee
Dec 13 '05 #1
2 1605
Hi,

You can get a list of sql severs from the registry
http://www.vb-tips.com/default.aspx?...8-089d31e2f8ff

List databases
http://www.vb-tips.com/default.aspx?...0-f64cb0d2b77a

Ken
-----------------
"Dean Slindee" <sl*****@charter.net> wrote in message
news:IP******************@fe06.lga...
After installing Windows Server 2003 SP1, my project no longer has a valid
reference to SQLDMO. I was using it to get a list of valid SQL Servers on
the network. Perhaps there is now a better way to do that, rather than
using a COM object? If not, does anyone know where to find SQLDMO? Here
is the code previously used:

Public Sub FindDatabase()

Dim index As Integer

Dim sqlApp As New SQLDMO.Application

Dim sqlNames As SQLDMO.NameList

'check local machine for database

booConnected = BuildConnectionStringSQLServer(strServerName,
c_CatalogName, strUserName, strUserPassword)

'pc attached to network?

booNetworkAttached = IsNetworkAvailable()

If booNetworkAttached = True Then

strIPAddress = GetIPAddress()

sqlNames = sqlApp.ListAvailableSQLServers

For index = 0 To sqlNames.Count - 1 'sqlNames is 1 based(COM)

strServerNames(index) = sqlNames.Item(index + 1)

Next

End If

End Sub

Thanks,

Dean Slindee

Dec 13 '05 #2
dgk
On Tue, 13 Dec 2005 18:16:08 -0500, "Ken Tucker [MVP]"
<vb***@bellsouth.net> wrote:
Hi,

You can get a list of sql severs from the registry
http://www.vb-tips.com/default.aspx?...8-089d31e2f8ff

List databases
http://www.vb-tips.com/default.aspx?...0-f64cb0d2b77a

Ken
-----------------
"Dean Slindee" <sl*****@charter.net> wrote in message
news:IP******************@fe06.lga...
After installing Windows Server 2003 SP1, my project no longer has a valid
reference to SQLDMO. I was using it to get a list of valid SQL Servers on
the network. Perhaps there is now a better way to do that, rather than
using a COM object? If not, does anyone know where to find SQLDMO? Here
is the code previously used:

....

Interesting errors on those sites this morning. Seems to me that I've
seen this on my own projects upon occasion:

Compiler Error Message: BC31011: Unable to load referenced library
'c:\windows\microsoft.net\framework\v1.1.4322\temp orary asp.net
files\root\4e785e54\fb7bf60\assembly\dl2\ee58f759\ 7f543ea3_9128c501\mywebhome.dll':
Access is denied.

Dec 14 '05 #3

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

Similar topics

2
by: ewm | last post by:
Using InstallShield Developer 7.04. Does anyone know of a good way to detect if SQLDMO is installed? TIA mcpoo
2
by: John Dalberg | last post by:
I have an application that's giving an error during installation. "Error 1935. An error occured during the installation of assembly interop.sqldmo, version 8.0.0.0, PublicKeyToken........" I am...
6
by: Job Lot | last post by:
Using VB.NET how can I find all available SQL Server on a local network and list all the databases in each server. Thanks
1
by: Mohammed Abdel-Razzak | last post by:
Dear sirs I`ve used SQLDMO to make a backup to my database How can I use it to restore database? thanks Mohammed
3
by: T. | last post by:
I dumped VB and adopted C# for this version of Visual Studio. My problem! I am trying to reference an SQLDMO.Database object in C# like so: private SQLDMO.Database dbcurrent; private string...
1
by: | last post by:
Hi all My requirement is to "on button_click, backup a SQL database using SQLDMO.Backup object and update the progress in a ProgressBar. The problem is the progress bar does not update at all...
2
by: | last post by:
Hi all, continued from yesterday's posting... I still haven't found a solution to this issue. I put a breakpoint in private void SqlBackupPercentComplete(string message, int Percent) {...
1
by: | last post by:
Hi all I am posting this to check if anyone could help me. The problem still persists. I am beginner in C#. Thanks. Subject: SQLDMO.Backup and ProgressBar - help please From: ...
0
by: steve1rm | last post by:
Hello, I developed the code below to find all sql server on the network. Once the sql servers have been found display all the database that they have. The first part work. But the I can't get the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.