hi
I have been trying to programmatically create a System DSN entry using VB6.
I have managed to do this but without being able to supply the password for the SQLserver user.
Can anyone suggest why this might be?
I am using the:
API call and have also tried using the API calls to create the registry entries under the
The registry entries do get created successfully but where and how would I supply the password using this method?
I have already checked out the previous posting on this topic they haven't worked for me, yet I know that this is possible!
Any replies using one of the above methods would be great!
Cheers
I have been trying to programmatically create a System DSN entry using VB6.
I have managed to do this but without being able to supply the password for the SQLserver user.
Can anyone suggest why this might be?
I am using the:
Code:
Private Declare Function SQLConfigDataSource Lib "odbccp32.dll" (ByVal hwndParent As Long, _
ByVal fRequest As Long, ByVal lpszDriver As String, _
ByVal lpszAttributes As String) As Long
Code:
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\
&
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources
I have already checked out the previous posting on this topic they haven't worked for me, yet I know that this is possible!
Any replies using one of the above methods would be great!
Cheers