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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting from MSSQL to AdvantageSQL

Status
Not open for further replies.

Sylvor

IS-IT--Management
Oct 17, 2001
42
0
0
US
Hi,

I have a trigger, which runs on one of my MSSQL tables. It pulls out some data, which I want to then insert into another table; this table is on a separate (Extended Systems) Advantage SQL database.

Currently I have the trigger working fine and inserting the data into a local temporary table as I can't seem to get the link to the Advantage table to work.

Code:
--Trigger code and select statements work fine...
FROM INSERTED
INSERT INTO DBTest.dbo.TEMPTEST --This is where I am having the problem
  SELECT code = @stkcode,

The error I get from SQL is "S0002:[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'DBTest.dbo.TEMPTEST'."

Both databases are on the same physical server.

Any guidance would be appreciated,
Thanks,
David!


Dave Bennett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top