-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Timeout problems
PostPosted: Wed Aug 17, 2011 5:48 pm 
Beginner
Beginner

Joined: Thu Oct 08, 2009 11:44 am
Posts: 21
Location: Chicago
I have a CreateSQLQuery that runs in under a minute in MS Studio but in the C# program it times out after 20 minutes.

In looking at the SQL Server Profiler I see the last exe sp_executesql for the last executed SQL command
followed by another Audit Login and then it waits until it times out (or if the timeout is long I get multiple Audit logouts).

I write the SQL out to the log so I can see what SQL it is working on, but It does not show up in the profiler.

I suspect that it is having trouble optimizing the query, maybe not using indexes or some other problem

Does this sound familiar? are there things I can do to find out what the problem is? or if a know problem are there work arounds.

The query had multple inner joins followed by multiple out joins. It is using CreateSQLQuery on a MS SQL 2005 DB and using NHib 3.2

Thanks,


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.