Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SQL-DMO,SQLOLE Ex. needed

Posted on 1998-07-16
5
Medium Priority
?
425 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

824 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