SqlDataReader Close problem.

S

swtrse

I use the SqlHelper class to call an stored procedure.

....
conn = getSqlConnection();
reader = SqlHelper.ExecuteReader(conn, CommandType.StoredProcedure,
"aus_getZuBerechnendeAusAuftraegeForDatum", sqlParams);
while(reader.Read())
{
....
}
reader.Close();
releaseSqlConnection(conn);
....

So all work fine but the reader.Close() command never comes back to my
funktion.

My question why?
Has anyone an Idea?
 

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

Top