Solved

SQLOLE with MSSQL 6.5

Posted on 1998-10-08
3
152 Views
Last Modified: 2010-04-06
How can I implemnt the SQLOLE_TLB, I will use the
bcp-functions for import/export.
0
Comment
Question by:petenyi
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
dwwang earned 100 total points
Comment Utility
Declare a var:
MySQLOleServer:variant;

Create the object:
MySQLOleServer:=CreateOleObject('SQLOLE.SQLServer');

Then use the properties and methods of MySQLOleServer
to do what you want.

For details of objects/properties/methos that you can create
and/or use, please see help of SQLOLE.

For more infomation about OleAuto in Delphi, see Delphi's help
as well as the example in demos\oleauto\autoctrl.
0
 

Author Comment

by:petenyi
Comment Utility

I have do this, but I get an erromessage.
"Object Missing"
privat
FSQLServer:SQLSERVER
.
or
 FSQLServer := coSQLServer.Create;
  // two alternate ways to create the SQL Server object if there's no
coClass:
  // FSQLServer := CreateComObject (Class_SQLServer) as SQLServer;
  // FSQLServer := CreateOLEObject ('SQLOLE.SQLServer') as SQLServer;

in the project file I get the Errormessage
by Application.Initialize "Object Missing"

How can I use the BCP-functions


thank and best regards
Balazs


0
 
LVL 4

Expert Comment

by:dwwang
Comment Utility
Hi, any one of these ways works well in my computer,
using Delphi3.

If the problem keep on exists, try to check out
whether your SQLOLE TLB is correctly registered
as well as those .dll and .tlb files are properly installed.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 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

10 Experts available now in Live!

Get 1:1 Help Now