Designware
Technical User
- Sep 24, 2002
- 202
Hi,
I have two separate databases that I need to link together based upon a common field (PO #) which is a text field in one database and a numeric field in another. I found a Tek Tips thread that appears to address the issue ( ). I attempted the suggestion of lbass and tried to connect the two databases via SQL. Here is my sql attempt:
select "SVR-MAIN-TLS007"."pvtApDetHist"."PONum", "SVR-RESPONSE"."POHEAD"."PO_NUMBER"
from "SVR-RESPONSE"."POHEAD" inner join "SVR-MAIN-TLS007"."pvtApDetHist" on
to_text("SVR-RESPONSE"."POHEAD"."PO_NUMBER") = "SVR-MAIN-TLS007"."pvtApDetHist"."PONum"
The databases are on two separate DB servers, so I assumed I'd have to specify the server name in front of the table name. The error message I receive is:
-----------
Failed to open a rowset.
Details: ADO Error Code: 0x80040e14
Source: Microsoft OLE DB Provider for SQL Server
Description: 'to_text' is not a recognized built-in function name.
SQL State: 42000
Native Error: 195
-----------
I tried the other way around and used 'to_number' on the other DB which contains the text field, with a similar error. FYI, the 'pvtApDetHist' is a view ... in case that matters.
Both are Windows Server 2003 with SQL Server 2008 and 2005.
Using Crystal Reports 10.
Any help is appreciated.
Dale
I have two separate databases that I need to link together based upon a common field (PO #) which is a text field in one database and a numeric field in another. I found a Tek Tips thread that appears to address the issue ( ). I attempted the suggestion of lbass and tried to connect the two databases via SQL. Here is my sql attempt:
select "SVR-MAIN-TLS007"."pvtApDetHist"."PONum", "SVR-RESPONSE"."POHEAD"."PO_NUMBER"
from "SVR-RESPONSE"."POHEAD" inner join "SVR-MAIN-TLS007"."pvtApDetHist" on
to_text("SVR-RESPONSE"."POHEAD"."PO_NUMBER") = "SVR-MAIN-TLS007"."pvtApDetHist"."PONum"
The databases are on two separate DB servers, so I assumed I'd have to specify the server name in front of the table name. The error message I receive is:
-----------
Failed to open a rowset.
Details: ADO Error Code: 0x80040e14
Source: Microsoft OLE DB Provider for SQL Server
Description: 'to_text' is not a recognized built-in function name.
SQL State: 42000
Native Error: 195
-----------
I tried the other way around and used 'to_number' on the other DB which contains the text field, with a similar error. FYI, the 'pvtApDetHist' is a view ... in case that matters.
Both are Windows Server 2003 with SQL Server 2008 and 2005.
Using Crystal Reports 10.
Any help is appreciated.
Dale