I have the following connection string in VB 6 to be able to link my VB to crystal report 8. There is no problem with this.
cryPO.connect = "DSN=TST;UID=sa;PWD=grr;DATABASE=DAT1;"
but then, I want to 'not' include the user and password since in the ODBC we have already specified the DSN=TST with the appropriate password.
I want to use:
cryPO.connect = "DSN=TST;DATABASE=DAT1;"
Error occurs "can't connect to sql server".
This syntax, without the user, works with my sql database connection but when used to create crystal reports by linking VB to crystal error exists.
My purpose is not to let some programmers see the password that is why I remove the user and password part because it was already specified in the odbc.
How can I establish the connection properly?
tnx
cryPO.connect = "DSN=TST;UID=sa;PWD=grr;DATABASE=DAT1;"
but then, I want to 'not' include the user and password since in the ODBC we have already specified the DSN=TST with the appropriate password.
I want to use:
cryPO.connect = "DSN=TST;DATABASE=DAT1;"
Error occurs "can't connect to sql server".
This syntax, without the user, works with my sql database connection but when used to create crystal reports by linking VB to crystal error exists.
My purpose is not to let some programmers see the password that is why I remove the user and password part because it was already specified in the odbc.
How can I establish the connection properly?
tnx