Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
nati_nieves
Starting Member
4 Posts |
Posted - 2002-05-02 : 09:25:01
|
| HiIn the Ingres databases, when you want to update a field of a table, for example:update tableXset filed1 = 1where field2 = 3you can finish with the coomit instruction:update tableXset filed1 = 1where field2 = 3;commitThe problem is that I have a linked server (the name is prueba) from a server that it has a database in Sql Server to other server that it has other database in Ingres and I wan´t to do this:update openquery(prueba, 'select * from centro')set campo1 = 1where campo2 = 3But how can I do simulate the commit, because when I do the next:update openquery(prueba, 'select * from centro;commit')set campo1 = 1where campo2 = 3the analyzar of Sql Server gives me the next error:Server: Msg 7399, Level 16, State 1, Line 1OLE DB provider 'MSDASQL' reported an error. [OLE/DB provider returned message: [CA][OpenIngres ODBC Driver][OpenIngres]line 1, Syntax error on ';'. The correct syntax is: PREPARE stmnt_name [INTO name] FROM statement_text]and I don`t want to do a prepare instruction. Is ther somebody that can help me????Thank you very much. |
|
|
|
|
|