I have used DTO and VB to create a database called 'TEST' on a pervasive server form a pervasive client machine.
Using DTO I was able to create a DSN for TEST located on the server. I also need a DSN pointing to TEST on the client machine. How can I create a pervasive system DSN pointing to a database ona server?
I have tried...
sDriver = "Pervasive ODBC Engine Interface"
sAttributes = "Server=MySerer" & Chr$(0)
sAttributes = sAttributes & "DESCRIPTION=test DSN" & Chr$(0)
sAttributes = sAttributes & "DSN=MyDSN" & Chr$(0)
sAttributes = sAttributes & "OpenMode='NORMAL'" & Chr$(0)
sAttributes = sAttributes & "IS_ENGINE_DSN=False" & Chr$(0)
sAttributes = sAttributes & "IS_SYSTEM_DSN=True" & Chr$(0)
sAttributes = sAttributes & "DATABASE=TEST" & Chr$(0)
sAttributes = sAttributes & "UID=" & User & Chr$(0)
sAttributes = sAttributes & "PWD=" & Password & Chr$(0)
retValue = SQLConfigDataSource(0&, ODBC_ADD_SYS_DSN, sDriver, sAttributes)
and using DTO, but no success so far. Any help is appriciated.
Thanks and Good Luck!
zemp
Using DTO I was able to create a DSN for TEST located on the server. I also need a DSN pointing to TEST on the client machine. How can I create a pervasive system DSN pointing to a database ona server?
I have tried...
sDriver = "Pervasive ODBC Engine Interface"
sAttributes = "Server=MySerer" & Chr$(0)
sAttributes = sAttributes & "DESCRIPTION=test DSN" & Chr$(0)
sAttributes = sAttributes & "DSN=MyDSN" & Chr$(0)
sAttributes = sAttributes & "OpenMode='NORMAL'" & Chr$(0)
sAttributes = sAttributes & "IS_ENGINE_DSN=False" & Chr$(0)
sAttributes = sAttributes & "IS_SYSTEM_DSN=True" & Chr$(0)
sAttributes = sAttributes & "DATABASE=TEST" & Chr$(0)
sAttributes = sAttributes & "UID=" & User & Chr$(0)
sAttributes = sAttributes & "PWD=" & Password & Chr$(0)
retValue = SQLConfigDataSource(0&, ODBC_ADD_SYS_DSN, sDriver, sAttributes)
and using DTO, but no success so far. Any help is appriciated.
Thanks and Good Luck!
zemp