P
petr.formak
I'm using .NET framework 1.1 SP1 and SQL Server 2000. After installing
service pack 4 on sql server my data conversion application lost a lot
of performance.
Now it running 8 times slower than with SP3a on SQL server.
problematic part of code for executing simple SQL SELECT query:
public long FindWorkPlaceKey(long lClientID, long lObjectID, long
lDeptID)
{
..
..
..
sqlCommand.Parameters.Add(new SqlParameter("@CLIENT_ID", lClientID));
sqlCommand.Parameters.Add(new SqlParameter("@OBJECT_ID", lObjectID));
Object y = sqlCommand.ExecuteScalar();
..
..
}
This method is executed 5000 times.
On sql server with SP3a it last 8 seconds.
On sql server with SP4 it last 65 seconds. 8 times more!!!
With code below
sqlCommand.Parameters.Add("@CLIENT_ID", SqlDbType.Int).Value =
lClientID;
sqlCommand.Parameters.Add("@OBJECT_ID", SqlDbType.Int).Value =
lObjectID;
Object y = sqlCommand.ExecuteScalar();
code is executed 5000 times.
On sql server with SP3a it last 8 seconds.
On sql server with SP4 it last 11 seconds. 40% more!!!
Does anybody have the same problem?
What causes this problem?
Solution?
thanks a lot
Petr
service pack 4 on sql server my data conversion application lost a lot
of performance.
Now it running 8 times slower than with SP3a on SQL server.
problematic part of code for executing simple SQL SELECT query:
public long FindWorkPlaceKey(long lClientID, long lObjectID, long
lDeptID)
{
..
..
..
sqlCommand.Parameters.Add(new SqlParameter("@CLIENT_ID", lClientID));
sqlCommand.Parameters.Add(new SqlParameter("@OBJECT_ID", lObjectID));
Object y = sqlCommand.ExecuteScalar();
..
..
}
This method is executed 5000 times.
On sql server with SP3a it last 8 seconds.
On sql server with SP4 it last 65 seconds. 8 times more!!!
With code below
sqlCommand.Parameters.Add("@CLIENT_ID", SqlDbType.Int).Value =
lClientID;
sqlCommand.Parameters.Add("@OBJECT_ID", SqlDbType.Int).Value =
lObjectID;
Object y = sqlCommand.ExecuteScalar();
code is executed 5000 times.
On sql server with SP3a it last 8 seconds.
On sql server with SP4 it last 11 seconds. 40% more!!!
Does anybody have the same problem?
What causes this problem?
Solution?
thanks a lot
Petr