|  | Posted by Erland Sommarskog on 09/27/07 21:41 
bzh_29 (xiii29@free.Fr) writes:> I've exactly the same trouble ... My apps is responding fine on a LAN
 > but when I goes on a WAN, getting horrible !
 
 If you run your application on a WAN, you need to be more considerate
 with your design. Make sure you don't return unneeded columns in your
 result set (no SELECT *!). Also make sure that you don't have a lot of
 extra network roundtrips. If you need to find data for ten orders, run
 one query not ten.
 
 > Something strange : in some case when string are in parameter it using
 > only one byte instead of two !
 
 varchar data, I assume. Query text is sent as Unicode. Parameter values
 in RPC calls are sent in their native format. So nvarchar will be Unicode,
 varchar will be 8-bit chars, and an integer will be 4 bytes.
 
 
 --
 Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
 
 Books Online for SQL Server 2005 at
 http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
 Books Online for SQL Server 2000 at
 http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
  Navigation: [Reply to this message] |