Improve company productivity with a Business Account.Sign Up

x
?
Solved

SQL-DMO,SQLOLE Ex. needed

Posted on 1998-07-16
5
Medium Priority
?
450 Views
Last Modified: 2011-10-03
I need an example of how to use SQL-DMO  in a VB5 project. I have not been able to use either one properly. Thanks
0
Comment
Question by:redbaron082997
  • 3
5 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 40 total points
ID: 1466052
You need to get on MSDN.  They have a complete object model, plus they have a sample project using SQL-DMO, plus other articles.  If this doesn't work for your, give me your email & I'll send you some sample code.  But, the complete reference plus samples is available at:

http://premium.microsoft.com/msdn/library/
0
 
LVL 1

Author Comment

by:redbaron082997
ID: 1466053
Thanks. I have been looking at it, and for some reason it doesn't make since. I think they are upgrading the server, due to it is running extremely slow, and often returns "INDEX CORRUPT" errors.  If you could email the project, that would greatly help. EMail to:
redbaron@flash.net
Thanks
Ronnie
0
 
LVL 1

Author Comment

by:redbaron082997
ID: 1466054
I think the problem is that I do not have the proper DLL's or something with the setup of it.  I have the following files
C:\mssql\binn\sqlole65.dll;c:\mssql\binn\sqlole65.tlb

The reference points to the *.tlb file. When I step throught the following commands

Dim oSQLServer As New SQLOLE.SQLServer

oSQLServer.Disconnect
I get the error, ACTiveX can't create object

0
 

Expert Comment

by:AndyJ090298
ID: 1466055
A straight forward problem.

1. Ensure Reference to the SQLOLE65.tlb is checked in the referneces list in VB.

2. Check SQLOLE object appears using object browser!

All should then be OK
0
 
LVL 1

Author Comment

by:redbaron082997
ID: 1466056
AndyJ: -> Thanks.  
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question