heterogeneous query how do I get correct @@rowcount ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi. Writing a Stored Proc which read some data from a remote Oracle database
and ultimately writes some data into my SQL Server 2000 database. @@rowcount
is returning a value related to the number of remote records I read and not
how many I ultimately wrote into local SQL database.
Looking for one of two solutions:
a) the right way to beat this issue elegantly
b) My workaround results in me doing a select @writecount = count(*) from a
copy of 'select' I will ultimately write, then repeat the select statement
with the insert. Is there a better way?Thanks
Ian
.



Relevant Pages

  • Re: heterogeneous query how do I get correct @@rowcount ?
    ... and ultimately writes some data into my SQL Server 2000 database. ... @@rowcount is returning a value related to the number of remote records I read and not how many I ultimately wrote into local SQL database. ...
    (microsoft.public.sqlserver.programming)
  • Re: Unable to edit data in table in Management Studio 2005
    ... OK, it's a little strange, but the problem for me was in the database ... So in Microsoft SQL Server Management Studio, ... In many casees, this rowcount is ...
    (microsoft.public.sqlserver.clients)
  • Idiomatic Expressions to Operating System Architecture: Transforming Rigids
    ... <Subject: Re: Idiomatic Expressions to Operating ... <endpoint during a single session * DATABASE + by ... <statements is a new feature of SQL Server 2005. ...
    (sci.math)
  • Re: MS Access DAO -> ADO.NET Migration
    ... William Vaughn ... Microsoft MVP ... Hitchhiker's Guide to Visual Studio and SQL Server ... My migration app works building a SSCE database file with imported data ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cluster will not fail over.
    ... > As far as the TCP/IP issue goes, you had to rebuild the cluster and were ... > able to restore the master database. ... > a cluster installation you'll have to revisit. ... >> This worked bringing up the sql server in minimal mode. ...
    (microsoft.public.sqlserver.clustering)