Re: Performance really poor if calling data from sql clients



Is TCP enabled on the Laptop for SQL Server? Run the SQL Server
Configuration Manager and make sure you have the right protocols enabled for
that instance.

--
Andrew J. Kelly SQL MVP


"Stephan (Germany)" <StephanGermany@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:AEBB7DF6-0A74-4E62-A535-1624D0747DEB@xxxxxxxxxxxxxxxx
I have made the following SQL tests:
I'm inserting two rows in two different tables, one table first, delete
the
rows, insert into the next table and delete the rows.

I measure the runtime.

On a computer running the test which is not the database hosting computer,
xxx if TCP/IP connection was not established before, it takes 15 sec
xxx if I repeat the same (within 30 sec), it takes close to 0 sec

xxx named pipes: if not established before (within 30 sec), it takes 6 sec
xxx named pipes: if I repeat the same. it takes close to 0 sec (because of
connection pool I believe)

If I launch the program on the laptop where the database is hosted,
xxx if I choose TCP/IP: error, no SSPI context can be generated
xxx if I choose named pipes: close to 0 sec runtime

What is using so much time? The problem is: in my application, the users
are
ongoing writing and reading from database tables. So if the user is
pausing,
he/she will get a long waiting time in order to make changes later on.

The TCP/IP error on the laptop, do I have to use the loop back IP address
instead of the same IP address for the TCP tests from client computers?

Yours
Stephan

"Andrew J. Kelly" wrote:

Sorry I meant SSMS (SQL Server Management Studio).

--
Andrew J. Kelly SQL MVP


"Stephan (Germany)" <StephanGermany@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:187C37B8-FC91-4978-B928-FA17A21979E1@xxxxxxxxxxxxxxxx
Hello Andrew,

what do you mean with SSIS ?

I have checked DNS, WINS and address resolution. The laptop where the
database is running can be found via ping and nslookup.
If I make another test (creating new logins in SQL management studio),
it
is
not possible to see any other domain rather than the laptop itself,
this
is a
bit confusing.
Maybe it has nothing to do with my problem but it is not really good.



"Andrew J. Kelly" wrote:

If you run the same query from SSIS on the server does it run fast or
slow?
Sounds like network issues or problems with name resolution.

--
Andrew J. Kelly SQL MVP


"Stephan (Germany)" <StephanGermany@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote
in
message news:E1285720-7132-4B56-B754-B98E9594F466@xxxxxxxxxxxxxxxx
Ok, the performance is not stable:

it is true that with named pipes. it is going a bit faster, but each
time
I
select another table to be displayed, it is still waiting for
something
I
cannot see even in the profiler. There is an overhead I can't
actually
find
out.
Any idea?

Yours
Stephan

"Stephan (Germany)" wrote:

Hello Andrew,

good hint with the profiler.

You know I'm "fighting" since a while to follow the documented
recommendation of using TCP instead of Named Pipes to get
performance.

I see now if I using Named Pipes connection in VS2005, everything
is
going
faster in VS2005 (and I assume this will also happen for my
application
if I
do the same).

So, what is the problem with TCP as connection type? Already known
issues
by
Microsoft SQL developer teams?

Yours
Stephan

"Andrew J. Kelly" wrote:

I can't vouch for any of the VS components when it comes to
performance
since I don't use them for database access. But you should be
able
to
use
profiler to see what is happening on the sql server end. Also
what
does the
query plan look like? Is it optimal? Did you run
sp_updatestats?

--
Andrew J. Kelly SQL MVP


"Stephan (Germany)" <StephanGermany@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote
in
message
news:FB05EA03-F277-4FBE-B1AB-A7C8C767B41D@xxxxxxxxxxxxxxxx
Hello,

I have installed SQL2005 developer edition on a laptop (2 GB
RAM),
VS2005
on
another computer. The database is quite small (nearly no data
or
some
test
data). The performance is still really bad:
xxx each time you open the server explorer in VS2005 and you
use
"show
table
data" (takes at least 20 sec., sometimes time out).

xxx each time I read from tables within my application (I'm not
reading
the
full table, I'm selecting the data, number of records < 5)

What can be done in order to determine the performance
consuming
element/object? The network the computer are attached consists
of
less
than 5
users (1 GBit backbone).

Are there any configuration aspects which can help to improove
the
performance?
Network pack size = 4096
Max. number of concurrent connections = 0
Boost SQL server priority is not checked
Max. server memory = 2 GB

Thanks,
Stephan











.



Relevant Pages