Problem: Visual Basic 3.0 + Crystal Report 5.0 16 bit 
Author Message
 Problem: Visual Basic 3.0 + Crystal Report 5.0 16 bit

Hello.

I use a Crystal Reports using ODBC to connect a Microsoft Sql Server 6.5.

I use Microsoft ODBC Drivers for SQL Server.

My VB appl. uses Open Client 4.2 (vbsql.vbx).

I use a Data Source Name in my development, but i need to use other Data
Source Name in production. The .rpt does'nt permit change the Data Source
Name.
I use object.connect="DSN=<server_name>+";uid=<username>+";
                      pwd=<password>+";dsq=<data_base_name>
but it does not work!!!

How can i change the DSN in run time???

Thanks.
Daniel.



Fri, 13 Oct 2000 03:00:00 GMT  
 Problem: Visual Basic 3.0 + Crystal Report 5.0 16 bit

Quote:

> Hello.

> I use a Crystal Reports using ODBC to connect a Microsoft Sql Server 6.5.

> I use Microsoft ODBC Drivers for SQL Server.

> My VB appl. uses Open Client 4.2 (vbsql.vbx).

> I use a Data Source Name in my development, but i need to use other Data
> Source Name in production. The .rpt does'nt permit change the Data Source
> Name.
> I use object.connect="DSN=<server_name>+";uid=<username>+";
>                       pwd=<password>+";dsq=<data_base_name>
> but it does not work!!!

> How can i change the DSN in run time???

> Thanks.
> Daniel.

Hi Daniel,

This should work.  The only thing I can think of is you are passing the DSN
incorrectly.  It should not be the name of the server but the new ODBC
Datasource.

--
Sincerely,
Brian Dong

To reply, remove nospam from the address.



Sun, 15 Oct 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problems with Crystal Reports 5.0 controls(16 bit)

2. VB 4.0 (16-Bit)/Crystal Reports 3.0.1.32 (16-Bit) Print Preview Maximize Window

3. Engine Crystal Report 5.0 16-bit - Help me

4. UPGRADING CRYSTAL REPORT 16 BIT IN VB 4.0 TO CR VERSION 5.0

5. shared variables between Visual Basic (16 bit) and Visual C++ (32-bit)

6. Visual Components Visual Writer 3.0 16 Bit OCX HELP

7. Crystal Report Problem (With Visual Basic 3.0)

8. Help required for transferring VBasic 3.0 (16 bit) to VBasic 5.0

9. Help: 16-bit VB4, OLE, Excel 3.0, 4.0, 5.0, 5.0c, 7.0 and 8.0

10. Problem with Crystal Reports 5 16-bit

11. Multimedia control for Visual Basic (16 bit or 32 bit)

12. Avoiding load of 32-bit custom control using 16-bit Visual Basic 4.0

 

 
Powered by phpBB® Forum Software