Storedprocedure not responding - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Storedprocedure not responding

[B]Storedprocedure not responding:[/B]
When we run storedprocedure from sqlserver 2000 using query analyzer with same parameter the procedure run successfully with in 30 seconds but with same parameter if we call this sp from classic asp storedprocedure does not respond and command timeout occurs. We tried to set command timeout to 50,000 seconds but no luck.
[B]Following is the code:[/B]
Dim objCommand
Dim rs
Dim conn

Set conn = New ADODB.Connection
conn.ConnectionString = "....."
conn.Open

Set objCommand = New ADODB.Command
objCommand.CommandText = "{call sp_Ch_Stats(?,?,?,?,?,?,?)}"
objCommand.ActiveConnection = conn

objCommand(0) = "12/29/2008 11:59:59 PM"
objCommand(1) = "1/1/2004"
objCommand(2) = 0
objCommand(3) = 0
objCommand(4) = 6
objCommand(5) = "desc"
objCommand(6) = "12/30/2008 11:56:44 AM"

objCommand.CommandTimeout = 50000

objCommand.Execute
Sign In or Register to comment.