473,395 Members | 1,689 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,395 software developers and data experts.

SQLDMO Unhandled Exception

Helo,

I'me developing a proyect wich gets connected to SQL Server. I wished to
show a list of SQL Servers on my networks if the configuration file couldn't
be found...

I can do this using SQLDMO, but it will raise an unhandled exception on any
machine that lacks of a SQL Server... My goal is to list all the servers for
a client application, herefore installing MSDE on the client machines seems
unacceptable (This was a proposed solution on a thread I read on Google). Is
there anyway I can use SQLDMO without installing a SQL Server? If so, how
could it be done?

On the other hand I developped a small walkarround using the Sockets
namespace to create an UDP client in order to search for databases, although
I think it's not as reliable as SQLDMO, therefore I would preffer using
SQLDMO.

The error I get is an Unregistered or invalid COM... In my setup proyect
I've marked SQLDMO.DLL to register as COM.

Hope someone can give me some clues on how to get it to work.

Best wishes
Nov 21 '05 #1
4 1261
Juan,

I am fairly certain you are not allowed to distribute SQL DMO. I remember
this being a topic sometime ago and I am sure the outcome is you can't. I
can't find the original thread but a quick Google search might throw
something up.

Chris.
"Juan" wrote:
Helo,

I'me developing a proyect wich gets connected to SQL Server. I wished to
show a list of SQL Servers on my networks if the configuration file couldn't
be found...

I can do this using SQLDMO, but it will raise an unhandled exception on any
machine that lacks of a SQL Server... My goal is to list all the servers for
a client application, herefore installing MSDE on the client machines seems
unacceptable (This was a proposed solution on a thread I read on Google). Is
there anyway I can use SQLDMO without installing a SQL Server? If so, how
could it be done?

On the other hand I developped a small walkarround using the Sockets
namespace to create an UDP client in order to search for databases, although
I think it's not as reliable as SQLDMO, therefore I would preffer using
SQLDMO.

The error I get is an Unregistered or invalid COM... In my setup proyect
I've marked SQLDMO.DLL to register as COM.

Hope someone can give me some clues on how to get it to work.

Best wishes

Nov 21 '05 #2
Helo Chris,

I solved the problem registering the components, although I'm now really
interested on the topic about "distributing" SQL DMO.

In my case I think it's not really distributing SQL DMO, since the
application is being developped with am original SQL Server Enterprise and
Personal edition, and the customer for whom we are developing owns an
original SQL Server Enterprise. Therefore, in my humble opinion, it's not
really a distribution of SQL DMO, just an easier way to deploy the
application inside the customer's enterprise. I really don't care that mucho
on using SQL DMO, NetServersEnum, o my own implementation of NetServerEnum +
Registry search class (Although the last one worries me due to the time outs
I've stablished for UDP broadcast). Although now I've found the way to
deploy SQL DMO it would be nice to use it, but if it can't be used it would
be nice to know in order to follow one path or the other.

Best wishes

Juan

"Chris Podmore" <Ch**********@discussions.microsoft.com> escribió en el
mensaje news:CC**********************************@microsof t.com...
Juan,

I am fairly certain you are not allowed to distribute SQL DMO. I remember
this being a topic sometime ago and I am sure the outcome is you can't. I
can't find the original thread but a quick Google search might throw
something up.

Chris.

Nov 21 '05 #3
Juan,

The following link talks about errors when distributing SQL Server 2000 DMO
on SQL Server 7. I know this isn't the actual problem but it does cover what
files need to be install.
http://support.microsoft.com/kb/248241/EN-US/

Hope this helps.
Chris.

"Juan Pedro Gonzalez" wrote:
Helo Chris,

I solved the problem registering the components, although I'm now really
interested on the topic about "distributing" SQL DMO.

In my case I think it's not really distributing SQL DMO, since the
application is being developped with am original SQL Server Enterprise and
Personal edition, and the customer for whom we are developing owns an
original SQL Server Enterprise. Therefore, in my humble opinion, it's not
really a distribution of SQL DMO, just an easier way to deploy the
application inside the customer's enterprise. I really don't care that mucho
on using SQL DMO, NetServersEnum, o my own implementation of NetServerEnum +
Registry search class (Although the last one worries me due to the time outs
I've stablished for UDP broadcast). Although now I've found the way to
deploy SQL DMO it would be nice to use it, but if it can't be used it would
be nice to know in order to follow one path or the other.

Best wishes

Juan

"Chris Podmore" <Ch**********@discussions.microsoft.com> escribió en el
mensaje news:CC**********************************@microsof t.com...
Juan,

I am fairly certain you are not allowed to distribute SQL DMO. I remember
this being a topic sometime ago and I am sure the outcome is you can't. I
can't find the original thread but a quick Google search might throw
something up.

Chris.


Nov 21 '05 #4
Thank you,

I'll also post here my walkaround although Mirosoft's should be more
complete as it has more files...

I created a Setup Project and added the followin files to:

Programs Files Directory\Microsoft SQL Server\80\Tools\Binn

* sqldmo.dll
* sqlresld.dll
* sqlsvc.dll
* w95scm.dll

Then, under:

Programs Files Directory\Microsoft SQL Server\80\Tools\Binn\Resources\1033
and
Programs Files Directory\Microsoft SQL Server\80\Tools\Binn\Resources\1034

I copied the files (from the proper resource foder)
* sqldmo.rll
* sqlsvc.rll

Dependency walker wouldn't detect any missing files, and sqldmo.dll seemed
to register fine with vsdrfComSelfReg (or Regsvr32).

Tried the setup file on two computers with no client or server installed and
it worked fine. The folder I choosed to install SQLDMO was the same path
where I've got it on my computer just in case, I didn't want to mess thing
up if something went wrong.

Best wishes

"Chris Podmore" <Ch**********@discussions.microsoft.com> escribió en el
mensaje news:A2**********************************@microsof t.com...
Juan,

The following link talks about errors when distributing SQL Server 2000 DMO on SQL Server 7. I know this isn't the actual problem but it does cover what files need to be install.
http://support.microsoft.com/kb/248241/EN-US/

Hope this helps.
Chris.

"Juan Pedro Gonzalez" wrote:
Helo Chris,

I solved the problem registering the components, although I'm now really
interested on the topic about "distributing" SQL DMO.

In my case I think it's not really distributing SQL DMO, since the
application is being developped with am original SQL Server Enterprise and Personal edition, and the customer for whom we are developing owns an
original SQL Server Enterprise. Therefore, in my humble opinion, it's not really a distribution of SQL DMO, just an easier way to deploy the
application inside the customer's enterprise. I really don't care that mucho on using SQL DMO, NetServersEnum, o my own implementation of NetServerEnum + Registry search class (Although the last one worries me due to the time outs I've stablished for UDP broadcast). Although now I've found the way to
deploy SQL DMO it would be nice to use it, but if it can't be used it would be nice to know in order to follow one path or the other.

Best wishes

Juan

"Chris Podmore" <Ch**********@discussions.microsoft.com> escribió en el
mensaje news:CC**********************************@microsof t.com...
Juan,

I am fairly certain you are not allowed to distribute SQL DMO. I remember this being a topic sometime ago and I am sure the outcome is you can't. I can't find the original thread but a quick Google search might throw
something up.

Chris.


Nov 21 '05 #5

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

Similar topics

3
by: Verve | last post by:
Hi, how to create an SQL DMO object in .net and use it to enumerate the properties of Sql server. Can we use this object to list properties without logging in to the server?
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
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: ...
3
by: Dean L. Howen | last post by:
I tries to search for SQL server using SQLDMO, but it alway return null although I have updated SQL to sp3 Please tell me more.
3
by: Brian Henry | last post by:
Anyone know why this would happen... I added a reference to the SQLDMO COM object, imported it on top of my code.. then this test code fails Imports SQLDMO Module Module1 Sub Main() Dim...
1
by: PJHORNSA | last post by:
Hi all, I want to create a backup of a database using SQLDMO in C#. But I keep on getting a exception. If anyone can help me by providing code for this, it would be appreciated. Thanks in...
7
by: warlord | last post by:
I'm playing with the SQLDMO Interop to try to create an SQL database on a server (sql 2000/2005) without as little user interaction as possible. Logon, password and server name is about all I need....
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.