September 26, 2006 at 2:20 pm
Why does:
Select count(*) from linked.server.table
Give me what I'd expect (big number), but:
Select count(*) from (Select top 10 * from linked.server.table) t
Give me the same result (I expected 10 or less)
September 27, 2006 at 1:36 pm
I did the same experiment.
The first one I got a big number.
The second one I got 10.
September 27, 2006 at 3:49 pm
Loner,
Sorry, my bad I should have said fully-qualified remote table name instead of Linked Server table name
Use Server.Database.User.Table (a four part name) for the test instead of a Linked Server (OpenQuery(...) rowset provider) query. I've gotten responses from others (on the TSQL board and other sites) saying that they experienced the same results I did.
I solved my problem by using the OPENQUERY(...) rowset provider.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply