Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing from ODBC to OLE DB for a Command in Crystal Version 9

Status
Not open for further replies.

sanchel

Programmer
Mar 15, 2005
4
US
Hi all,

I have 25 reports that contain a Command (sql-statement) using a ODBC connection to an Oracle DB. Our customer requieres to use OLE DB using MS for Oracle.

When I try to change the Location of the DB in the Commands, by going back in the Connection Window, it shows only options for ODBC, so I cannot specify any OLE DB. In this window it shows a box to insert the connection string, but when I tried, it still tries to connect using ODBC.

How do I change the connection from ODBC to OLE DB for a command?

Note: In reports where tables are used instead of a Command it was easy to map from ODBC to OLE DB.

Any help will be appretiate very much.
Thanks,
Luis Sanchez
sanchelf@oge.com
 
I think you may have to use the Database->Set Database Location and build out the new connection using OLE DB and the pasted query and repoint at it.

-k
 
Thanks for your info. But I did not work.
We have decided not to change from ODBC to OLE DB for the commands. So we dropped this task.

Thanks,
Luis
 
Thanks for your info. But It did not work.
We have decided not to change from ODBC to OLE DB for the commands. So we dropped this task.

Thanks,
Luis
 
It did not work because when I went to the Database Location, there is not way to replace the command (DB Command) with another command in the databases.

Per example:

------- Current DataSource -----------------------
Report
DBServer1
- Properties
- DBCommand
------- Replace with -----------------------
Favorities
DBServer2
- Add Command
- Schema
-Tables
-Table1
-Table2
-etc
--------------------------------------------
I can not replace DBCommand with another command. The only command available is "Add Command."
DBServer1 is using ODBC and DBServer2 is using OLE DB. Both connect to the same server.

Thanks for your e-mails.
Luis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top