can't get an answer to a crystal rpt question re database connection - Cor, Herfried, Armin, Ken Tucker?
From: Jorge Cavalheiro (anonymous_at_discussions.microsoft.com)
Date: 02/25/04
- Next message: Carl Gilbert: "HTML in Textbox"
- Previous message: Benny: "Re: Inheritance"
- In reply to: Jorge Cavalheiro: "can't get an answer to a crystal rpt question re database connection - Cor, Herfried, Armin, Ken Tucker?"
- Next in thread: Bernie Yaeger: "Re: can't get an answer to a crystal rpt question re database connection - Cor, Herfried, Armin, Ken Tucker?"
- Reply: Bernie Yaeger: "Re: can't get an answer to a crystal rpt question re database connection - Cor, Herfried, Armin, Ken Tucker?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 25 Feb 2004 02:14:07 -0800
As addenda to what i say.
All MS SQL Servers have a Master database.
You can use the following command :
<code>
Use Master
exec sp_databases
</code>
That will return all databases on the server and there
size.
You still need to have the database admin password on
your client to run this.
Kind Regards
Jorge Cavalheiro
>-----Original Message-----
>Hello Bernie
>
>You can use the SQL-DMO ListAvailableSQLServers to
>retrieve all SQL servers on your client. If there's only
>one then use that one if not ask the user which one to
>use.
>
>And when you define the ConnectionInfo of the report you
>can use .ServerName = <your variable>
>
>Kind Regards
>Jorge Cavalheiro
>
>
>>-----Original Message-----
>>I can't believe that there aren't lots of developers
who:
>>
>>1. create a crystal report that connects to sql server
>>2. calls the report using the crystalreportviewer
>control to view it and
>>then, if appropriate, print it
>>3. tries to deploy that report to the client's
>database, but now it calls
>>for a different database name
>>
>>Yet I can't get an answer to the question:
>>I have developed numerous reports in an app (Windows
>Database App) that is
>>soon to go into production. When I built each report,
>CR connected to sql
>>server on my development platform. The connection
>string is different than
>>it will be at my client.
>>
>>How can I change the connection string so that it
>recognizes my client's
>>server instead of mine for each of these reports?
>>
>>Of course, I could install a version of crystal on the
>client and rebuild
>>the reports there, but that seems a terrible pain - and
>for every customer
>>with sql server? I've written to crystal and I get
>links to unhelpful kbase
>>articles.
>>
>>Thanks for any help.
>>
>>Bernie Yaeger
>>
>>
>>.
>>
>.
>
- Next message: Carl Gilbert: "HTML in Textbox"
- Previous message: Benny: "Re: Inheritance"
- In reply to: Jorge Cavalheiro: "can't get an answer to a crystal rpt question re database connection - Cor, Herfried, Armin, Ken Tucker?"
- Next in thread: Bernie Yaeger: "Re: can't get an answer to a crystal rpt question re database connection - Cor, Herfried, Armin, Ken Tucker?"
- Reply: Bernie Yaeger: "Re: can't get an answer to a crystal rpt question re database connection - Cor, Herfried, Armin, Ken Tucker?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|