ayuda con openrowset

01/10/2003 - 20:30 por ~Claudio Rios~ | Informe spam
estoy tratando de utilizar en SQL Server 2000 la siguiente:

UPDATE OPENROWSET('SQLOLEDB','servidor';'sa';,'SELECT * FROM
basedatos.dbo.tabla')
SET Data = 0
WHERE Tag = 'DRC20FV1926FW'

pero me da el siguiente error:

Server: Msg 7320, Level 16, State 2, Line 2
Could not execute query against OLE DB provider 'SQLOLEDB'. The provider
could not support a required row lookup interface. The provider indicates
that conflicts occurred with other properties or requirements.
[OLE/DB provider returned message: Multiple-step OLE DB operation generated
errors. Check each OLE DB status value, if available. No work was done.]
OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ICommandText::Execute
returned 0x80040e21: SELECT * FROM SC1.dbo.tMCS[PROPIDÛPROP_IRowsetLocate
VALUE=True STATUSÛPROPSTATUS_CONFLICTING], [PROPIDÛPROP_BOOKMARKS
VALUE=True STATUSÛPROPSTATUS_CONFLICTING]].



Alguien puede ayudarme porfavor.?

Preguntas similare

Leer las respuestas

#1 Scott
02/10/2003 - 00:34 | Informe spam
Hola Claudio me parece que tu error esta en tu consulta te muestro un dato
SELECT * FROM Servidor.DataBase.dbo.Employees

*

Para las referencias poco frecuentes a un origen de datos, se especifica la
función OPENROWSET con la información necesaria para conectar con el
servidor vinculado. En las instrucciones Transact-SQL, se puede hacer
referencia al conjunto de filas del mismo modo que a una tabla:

SELECT *

FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',

'c:\MSOffice\Access\Samples\Northwind.mdb';'Admin';'';

Employees)

pruebalo y me avisas

"~Claudio Rios~" escribió en el mensaje
news:uvU$
estoy tratando de utilizar en SQL Server 2000 la siguiente:

UPDATE OPENROWSET('SQLOLEDB','servidor';'sa';,'SELECT * FROM
basedatos.dbo.tabla')
SET Data = 0
WHERE Tag = 'DRC20FV1926FW'

pero me da el siguiente error:

Server: Msg 7320, Level 16, State 2, Line 2
Could not execute query against OLE DB provider 'SQLOLEDB'. The provider
could not support a required row lookup interface. The provider indicates
that conflicts occurred with other properties or requirements.
[OLE/DB provider returned message: Multiple-step OLE DB operation


generated
errors. Check each OLE DB status value, if available. No work was done.]
OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ICommandText::Execute
returned 0x80040e21: SELECT * FROM


SC1.dbo.tMCS[PROPIDÛPROP_IRowsetLocate
VALUE=True STATUSÛPROPSTATUS_CONFLICTING], [PROPIDÛPROP_BOOKMARKS
VALUE=True STATUSÛPROPSTATUS_CONFLICTING]].



Alguien puede ayudarme porfavor.?




Respuesta Responder a este mensaje
#2 ~Claudio Rios~
02/10/2003 - 15:13 | Informe spam
Scott
Hacer un SELECT OPENROWSET
no me da problemas.

lo que no me sale es hacer:
UPDATE OPENROWSET
En SQL Server 70 funcionaba muy bien, pero en 2000 no funciona.




"Scott" escribió en el mensaje
news:
Hola Claudio me parece que tu error esta en tu consulta te muestro un dato
SELECT * FROM Servidor.DataBase.dbo.Employees

*

Para las referencias poco frecuentes a un origen de datos, se especifica


la
función OPENROWSET con la información necesaria para conectar con el
servidor vinculado. En las instrucciones Transact-SQL, se puede hacer
referencia al conjunto de filas del mismo modo que a una tabla:

SELECT *

FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',

'c:\MSOffice\Access\Samples\Northwind.mdb';'Admin';'';

Employees)

pruebalo y me avisas

"~Claudio Rios~" escribió en el mensaje
news:uvU$
> estoy tratando de utilizar en SQL Server 2000 la siguiente:
>
> UPDATE OPENROWSET('SQLOLEDB','servidor';'sa';,'SELECT * FROM
> basedatos.dbo.tabla')
> SET Data = 0
> WHERE Tag = 'DRC20FV1926FW'
>
> pero me da el siguiente error:
>
> Server: Msg 7320, Level 16, State 2, Line 2
> Could not execute query against OLE DB provider 'SQLOLEDB'. The


provider
> could not support a required row lookup interface. The provider


indicates
> that conflicts occurred with other properties or requirements.
> [OLE/DB provider returned message: Multiple-step OLE DB operation
generated
> errors. Check each OLE DB status value, if available. No work was done.]
> OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ICommandText::Execute
> returned 0x80040e21: SELECT * FROM
SC1.dbo.tMCS[PROPIDÛPROP_IRowsetLocate
> VALUE=True STATUSÛPROPSTATUS_CONFLICTING], [PROPIDÛPROP_BOOKMARKS
> VALUE=True STATUSÛPROPSTATUS_CONFLICTING]].
>
>
>
> Alguien puede ayudarme porfavor.?
>
>
>
>


Respuesta Responder a este mensaje
#3 Eladio Rincon
06/10/2003 - 15:01 | Informe spam
Hola Claudio,

las instrucciones INSERT, UPDATE y DELETE no están soportadas en tablas
remotas si no tienen un índice único; prueba a crearlo y comentanos si
funciona.

Saludos,

Eladio Rincón.
SQL Server MVP

http://eladio.europe.webmatrixhosting.net
"Comparte lo que sabes, aprende lo que no sepas", FGG.

"~Claudio Rios~" escribió en el mensaje
news:uvU$
estoy tratando de utilizar en SQL Server 2000 la siguiente:

UPDATE OPENROWSET('SQLOLEDB','servidor';'sa';,'SELECT * FROM
basedatos.dbo.tabla')
SET Data = 0
WHERE Tag = 'DRC20FV1926FW'

pero me da el siguiente error:

Server: Msg 7320, Level 16, State 2, Line 2
Could not execute query against OLE DB provider 'SQLOLEDB'. The provider
could not support a required row lookup interface. The provider indicates
that conflicts occurred with other properties or requirements.
[OLE/DB provider returned message: Multiple-step OLE DB operation


generated
errors. Check each OLE DB status value, if available. No work was done.]
OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ICommandText::Execute
returned 0x80040e21: SELECT * FROM


SC1.dbo.tMCS[PROPIDÛPROP_IRowsetLocate
VALUE=True STATUSÛPROPSTATUS_CONFLICTING], [PROPIDÛPROP_BOOKMARKS
VALUE=True STATUSÛPROPSTATUS_CONFLICTING]].



Alguien puede ayudarme porfavor.?




email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida