|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
link vb to crystal
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 |
|
#2
|
|||
|
|||
|
Hi,
While you setup the ODBC. You have to specify the user name and password by selecting the option "With SQL Server Authentication using a login ID and password entered by the user." to enable the Username Password Fields. |
|
#3
|
|||
|
|||
|
That is what I have done but even after doing so when I connect VB to crystal it wont work. but if I used VB to sql DB without using crystal everything works fine.
tnx |
|
#4
|
|||
|
|||
|
Since you can connect to the SQl with VB why not get the recordset using VB and pass the recordset to crystal instead of connect cyrstal directly to VB
S- |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > link vb to crystal |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
![]() |
|