Hallo, habe eine StoredProcedure am sqlserver wenn ich die über query analyzer aufrufe benötigt sie 6 sekunden. Wenn ich sie aber übers web aufrufe braucht die an die 20sek. An was kann dass liegen ?? Den aufruf mach ich so :
Dim mycommand As New SqlClient.SqlCommand Dim myconnection As New SqlClient.SqlConnection("Server=****;uid=****;pwd=**;database=**") mycommand.Connection = myconnection mycommand.CommandType = CommandType.StoredProcedure mycommand.CommandText = "SP_PlanISTNeu" mycommand.Parameters.Add("@P1", VAR1) mycommand.Parameters.Add("@P2", VAR2) mycommand.Parameters.Add("@P3", VAR3) mycommand.Parameters.Add("@P4",VAR4) mycommand.Parameters.Add("@P5", VAR5) mycommand.Parameters.Add("@P6", VAR6) myconnection.Open() mycommand.CommandTimeout = 600 mycommand.ExecuteNonQuery() myconnection.Close() Mit freundlichen Grüßen Patrick Brunmair _______________________________________________ Asp.net Mailingliste, Postings senden an: Asp.net@glengamoi.com An-/Abmeldung und Suchfunktion unter: http://www.glengamoi.com/mailman/listinfo/asp.net