Hi
Firstly i have designed crystal reports by giving a DSN name at the designing time..
but now the database name is changes so the DSN name is also change

How can i give the dsn name of the currently used database in asp.net.

Thanks in advance.

Recommended Answers

All 3 Replies

>but now the database name is changes so the DSN name is also change

No need to change DSN name.

>but now the database name is changes so the DSN name is also change

No need to change DSN name.

first the name of database is AccountDemo at that time the name of dsn is dsnAccDemo
then i have created the new copy of Project as AccountFinal so changed the dsnAccFinal...
Now i am using both project but the reports designed using dsnAccDemo not displaying data from AccountFinal database....

what should i do now?? can we use one dsn for multiple databases....

thanks in advance.

Here is a link - How to set DSN programatically?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.