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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can not connect to SQL Backend with GMW_LoadBDE 1

Status
Not open for further replies.

Hap007

MIS
Mar 21, 2003
1,018
US
Ric

I was wondering if anyone could help with what should be simple problem, but I can not seem to get the thing to work.

I am trying to Connect to a GoldMine SQL Database using GMW_LoadBDE call.
This works fine when loading a dbase backend, but I get error -6 when trying to connect to SQL backend, even
though I call GMW_SetSQLUserPass first.

What do I pass to the GMW_LoadBDE for the SQL Database name?
I have tried the BDE alias, the SQL Database. I am confused and the manual offers no help.

Thanks,
Hap

------------------------------------------------------------
FYI The API defintions I am using: ---------------------------------------------------------
'DLL intialization functions
Public Declare Function GMW_LoadBDE Lib "GM6S32.dll" (ByVal strSysDir As String, _
ByVal strGoldDir As String, _
ByVal strCommonDir As String, _
ByVal strUser As String, _
ByVal strPassword As String) As Long

Public Declare Function GMW_UnloadBDE Lib "GM6S32.dll" () As Long

Public Declare Function GMW_Login Lib "GM6S32.dll" (ByVal strUser As String, _
ByVal strPassword As String, _
ByVal strSQLUser As String, _
ByVal strSQLPassword As String) As Long

Public Declare Function GMW_Logout Lib "GM6S32.dll" () As Long

Public Declare Function GMW_MULogin Lib "GM6S32.dll" (ByVal strUser As String, _
ByVal strPassword As String, _
ByVal strSQLUser As String, _
ByVal strSQLPassword As String, _
ByVal strCommonDir As String) As Long

Public Declare Function GMW_MULogout Lib "GM6S32.dll" (ByVal nSessionID As Long) As Long

Public Declare Function GMW_MUBeginSession Lib "GM6S32.dll" (ByVal nSessionID As Long) As Long

Public Declare Function GMW_SetSQLUserPass Lib "GM6S32.dll" (ByVal strUserName As String, _
ByVal strPassword As String) As Long
-end----------------------------------------------------------------------------------------------------------------------


Access Developer [pc] - [americanflag]
Specializing in Access based Add-on Solutions for the Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top