Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateObject with SQL

Status
Not open for further replies.

royjimenez

Programmer
Nov 25, 2002
172
CR
hi!

I need to create an Object with CreateObject function

I am doing a tests and I can't find the classname.

'Dim sm As New SQLMerge // it's correct !!!
Dim sm As Object

Set sm = CreateObject("SQLServer.SQLMerge") // Unknown !!

please, help !! what is the correct name of 'SQLServer.SQLMerge' ?

Thanks in advance.



The life is too short to cry and long enough to try it... God bless us.
[thumbsup2]
 
try SQLMERGXLib.SQLMerge

There is an example in bol

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
i needed it urgently !!! for this reason i couldn't look up it.
Thanks


The life is too short to cry and long enough to try it... God bless us.
[thumbsup2]
 
hi!

I made the test with

Set yy = CreateObject("SQLMERGXLib.SQLMerge")

But i got the message:
The ActiveX Component couldn't be created.

I have to register something ?
I' am using SQL Server 2000.

I haven't done this before, i have done this in this way:

Dim sm As New SQLMERGXLib.SQLMerge

Actually, it is working out.

If someone knows something about it, please help.

Thanks


The life is too short to cry and long enough to try it... God bless us.
[thumbsup2]
 
hmmm
CreateObject("SQLMerge.SQLMerge")

seems to work.

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Thanks a lot nigelrivett !!!

It's working out !!!



The life is too short to cry and long enough to try it... God bless us.
[thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top