Hi,
I have the following code:
insert into DWCSYPER
(CPCONO,CPDIVI,CPPETP,CPYEA4,CPPERI,CPTX15,CPFDAT,CPTDAT,CPNCDY,CPNWDY,CPNBDY)
select CPCONO,CPDIVI,CPPETP,CPYEA4,CPPERI,CPTX15,CPFDAT,CPTDAT,CPNCDY,CPNWDY,CPNBDY
from CSYPER
The problem is I'm inserting to a SQL Server database and selecting from an Access database. I've heard I can use the IN clause (ie. 'Insert INTO DWCSYPER IN path (CPCONO,....)' )to specify an external database but I don't know the exact syntax for the path expression. Can anyone help?
[sig][/sig]
I have the following code:
insert into DWCSYPER
(CPCONO,CPDIVI,CPPETP,CPYEA4,CPPERI,CPTX15,CPFDAT,CPTDAT,CPNCDY,CPNWDY,CPNBDY)
select CPCONO,CPDIVI,CPPETP,CPYEA4,CPPERI,CPTX15,CPFDAT,CPTDAT,CPNCDY,CPNWDY,CPNBDY
from CSYPER
The problem is I'm inserting to a SQL Server database and selecting from an Access database. I've heard I can use the IN clause (ie. 'Insert INTO DWCSYPER IN path (CPCONO,....)' )to specify an external database but I don't know the exact syntax for the path expression. Can anyone help?
[sig][/sig]