Local & remote db server - the differences... please help!

  • Thread starter Thread starter almurph
  • Start date Start date
A

almurph

Hi everyone,


Hope you can help me with this one. We are doing a batch process on
both a local server and remote. By local I mean the db server is on
the same box and by remote I mean the db server is on another computer
(but in the same room, so not too far away). The db is: Microsoft SQL
Server 2005 - 9.00.3042.00


We have noticed that the remote server takes a lot longer that the
local. A lot longer. We are trying to think of the different ways that
could account for this. Essentially identify the difference between
local and remote connections in ASP.NET 3.0.
Yes, I know what your thinking - its the network. No, the network is
fine - its massive.

I would greatly appreciate any suggestions/comments/ideas/
possibilities code-diagnostics that you may be able to offer. i'm
really stuck. Cant't figure out why its taking so long...
Could it be a paremeter or somethign in the connection pool or is the
connection pool the same for local and remote. These are the things i
don't know about...

Thanks,
Al.
 
Start by specifying the most anal connection string that you can for the
remote box.

Go here:
http://www.connectionstrings.com/?carrier=sqlserver2005
Do a search for 1433.
That string has some extra analness in it.
The IP Address.
The Port#
The library ("DBMSSOCN") which is tcp/ip.

You can google to find the other libraries. (named pipes for instance).
But tcp/ip|dbmssocn would be the first place to start.

..............

Make sure if you use IDataReader's , that you CLOSE them when you're done.

...
 
Hi everyone,

Hope you can help me with this one. We are doing a batch process on
both a local server and remote. By local I mean the db server is on
the same box and by remote I mean the db server is on another computer
(but in the same room, so not too far away). The db is: Microsoft SQL
Server 2005 - 9.00.3042.00

We have noticed that the remote server takes a lot longer that the
local. A lot longer. We are trying to think of the different ways that
could account for this. Essentially identify the difference between
local and remote connections in ASP.NET 3.0.
Yes, I know what your thinking - its the network. No, the network is
fine - its massive.

I would greatly appreciate any suggestions/comments/ideas/
possibilities code-diagnostics that you may be able to offer. i'm
really stuck. Cant't figure out why its taking so long...
Could it be a paremeter or somethign in the connection pool or is the
connection pool the same for local and remote. These are the things i
don't know about...

Thanks,
Al.

I would start off by ruling out the network.
does your batch process involved a lot of data?
what does the batch process do? is it .net app or a sql job?


you can try to run the batch prcess locally on the remote machine. it
it works fine then it means that "remote" thingy has got something to
do with it.

what about the two dbs? are they same? do they have the same data? are
the indices up to date? on both?
 
Hope you can help me with this one. We are doing a batch process on
both a local server and remote. By local I mean the db server is on
the same box and by remote I mean the db server is on another computer
(but in the same room, so not too far away). The db is: Microsoft SQL
Server 2005 - 9.00.3042.00

We have noticed that the remote server takes a lot longer that the
local. A lot longer. We are trying to think of the different ways that
could account for this. Essentially identify the difference between
local and remote connections in ASP.NET 3.0.
Yes, I know what your thinking - its the network. No, the network is
fine - its massive.

I would greatly appreciate any suggestions/comments/ideas/
possibilities code-diagnostics that you may be able to offer. i'm
really stuck. Cant't figure out why its taking so long...
Could it be a paremeter or somethign in the connection pool or is the
connection pool the same for local and remote. These are the things i
don't know about...

Even though the network is fine, then going out on the wire would be
expected to be slower than something that is all happening in memory
(I don't know to what extent Windows TCP/IP optimizes local connections
but I am sure that it is faster).

Arne
 
If you could explain what are you doing and what is the environment in which
the application/set of code runs, that would enable us on helping you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top