Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SQLOLE with MSSQL 6.5

Posted on 1998-10-08
3
Medium Priority
?
158 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
dwwang earned 100 total points
ID: 1342287
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
ID: 1342288

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
ID: 1342289
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

688 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