Question : how to insert into a table from another table which is at different database

I have a sybase tableA at severqa/A, now i want to insert the values at tableB at serverdev/B, the tables structure are the same.

insert into tableA
select * from serverdev.B.tableB

but it does not work, any idea?

thanks

Answer : how to insert into a table from another table which is at different database

You need to add the schema name when applying a server-based name. That is:


insert into tableA
select * from serverdev.B.dbo.tableB
Random Solutions  
 
programming4us programming4us