Re: simple question re DELETEing in linked DB
From: Steve Kass (skass_at_drew.edu)
Date: 03/08/04
- Next message: Alex: "CASE with aggregate"
- Previous message: Bill: "Does CharIndex have 8k problem?"
- In reply to: gerry: "simple question re DELETEing in linked DB"
- Next in thread: gerry: "Re: simple question re DELETEing in linked DB"
- Reply: gerry: "Re: simple question re DELETEing in linked DB"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 08 Mar 2004 18:38:26 -0500
Gerry,
If the remote table is a SQL Server table linked through the OLEDB
provider, it must have a unique index in order for DELETE queries to be
issued against it. If it is another kind of data source, it may or may
not be possible to DELETE with a remote query. Books Online has some
information in these articles:
UPDATE and DELETE Requirements for OLE DB Providers
External Data and Transact-SQL
SK
gerry wrote:
>I am trying to delete data in a table in a linked database.
>I tried to use openquery but this gives me an error without 'any
>information' - i assume because a DELETE does not return a result set.
>Using DELETE from [lnkdb]...[tab] ... is giving me grief because 'provider
>could not support a row lookup location' - i'm not sure why this is and i
>don't really care because i really don't want the local sql server to pull
>in the entire remote table ( 2 millin records ) to filter it and then delete
>matching records ( 4 records ).
>
>How do we execute a remote DELETE on data in a linked database ?
>I assume this would be the same as invoking a stored procedure on a linked
>database ?
>
>I am sure this must be a simple process , and I just haven't found the right
>section of the docs.
>
>anybody point me in the right direction with this
>
>thanks - gerry
>
>
>
>
- Next message: Alex: "CASE with aggregate"
- Previous message: Bill: "Does CharIndex have 8k problem?"
- In reply to: gerry: "simple question re DELETEing in linked DB"
- Next in thread: gerry: "Re: simple question re DELETEing in linked DB"
- Reply: gerry: "Re: simple question re DELETEing in linked DB"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|