Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQLDMO.SQLServer2

Status
Not open for further replies.

JBaileys

Technical User
Jun 23, 2003
244
US

I am getting an error with code:
Type 'SQLDMO.SQLServer2' is not defined.

I have a reference to MS SQLDMO library.

Code looks like:
Dim objServer As SQLDMO.SQLServer2
Dim objDatabase As SQLDMO.Database2
Dim ServerName As String = Me.txtServerName.Text
Dim DatabaseName As String = Me.txtDatabase.Text

' Connect to the specified sql server
objServer = New SQLDMO.SQLServer2

 
What namespace is SQLDMO in? I'm guessing it's not in the default namespace meaning that it's either something you built, or a 3rd party control. Do you have a reference to the DLL that contains it?

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 

The reference is:
Microsoft SQLDMO Object library - Microsoft SQL Server\80\tools\binn\sqldmo.dll

Thanks,

JB
 
Quick question, do you have SQL Server 8 installed on the machine in question?

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 

We are running sql server 2000 (sp3a). Version 8.00.818

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top