Solved

SQL-DMO,SQLOLE Ex. needed

Posted on 1998-07-16
5
353 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 20 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
AndyJ: -> Thanks.  
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

763 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now