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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2005-08-15 : 07:32:02
|
| shidiq writes "I have server named 'A' and 'B', and I have created linkserver in server A : 'linkToB' and in server B : 'linkToA'when i retrive data in server A with this statement :declare @orderid intset @OrderID=10259SELECT * FROM linkToB.Northwind.dbo.[order details] WHERE OrderID=@OrderIDresult for execution plan :select <-- Filter <-- Remote Querycost 0% cost 0% 100%rowcount 2 rowcount 2 rowcount 2155but when i retrive data without declaration variableSELECT * FROM linkToB.Northwind.dbo.[order details] WHERE OrderID=10259result for execution plan :select <-- Remote Querycost 0% cost 100% rowcount 2 rowcount 2 this problem makes longger time to retrive data is there anyone can help my problem ??" |
|
|
AndrewMurphy
Master Smack Fu Yak Hacker
2916 Posts |
Posted - 2005-08-15 : 12:28:07
|
| Is there a 'conversion' going on here?Is the "OrderID" column defined as an integer? |
 |
|
|
|
|
|