Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using openquery to insert into a linked oracle database
Message
De
31/08/2000 14:37:10
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Titre:
Using openquery to insert into a linked oracle database
Divers
Thread ID:
00411423
Message ID:
00411423
Vues:
43
Can some one send me or post an example of inserting data into an Oracle database from a SQL 7 stored proceedure using OpenQuery. I've looked at the knowledgebase, Transact SQL Help, and Books online but I still can't get it to work.

This is what I've been using so far:

INSERT INTO OPENQUERY(oracle,'select cust_acct,TO_CHAR(plan_id),wtn,service,prov from tbl_customer') (cust_acct,TO_CHAR(plan_id),wtn,service,prov)
VALUES('Test','0','Test','Test','NS')

This is the error:

Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '('.


Thanks ahead of time.
Rod Smith
Répondre
Fil
Voir

Click here to load this message in the networking platform