Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

what would cause filling a dataset to hang my application?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Darrel - 16 Dec 2007 20:42 GMT
I have an app where I'm retrieving datasets and formatting them. This has
been working fine except in one intance, where the line that fills the
dataset is causing my application/aspnet to hang and eventually time out.

I can't figure out what this line would trigger the issue (the one marked
with asterisks):

===============================

Dim dsToReturn As DataSet
Dim strConnect As String
strConnect =
System.Configuration.ConfigurationSettings.AppSettings("DBConn")
Dim qryStr As String
Dim objConnect As New System.Data.OleDb.OleDbConnection(strConnect)
objConnect.Open()
qryStr = "SELECT startdate, enddate, boothNumber, locationDescription, city,
state, linkURL, additionalinfo, title, linkText FROM events WHERE startdate
>= DATEADD (day , -14, getdate()) ORDER BY startdate"

Dim objCommand As New System.Data.OleDb.OleDbCommand(qryStr, objConnect)
Dim objOleDbAdapter As New System.Data.OleDb.OleDbDataAdapter
objOleDbAdapter.SelectCommand = objCommand
objOleDbAdapter.Fill(dsToReturn, "records")

' *** this is where the app hangs:
objOleDbAdapter.Fill(dsToReturn, "records")

===============================

aside from the SQL query, this is the same code I'm using in many other
places in the application just fine. It's just this one instance that is
causing the problem.

Could it be my actual query? The query runs fine in enterprise manager.
Anyway to debug this?

-Darrel
Darrel - 16 Dec 2007 22:58 GMT
> I can't figure out what this line would trigger the issue (the one marked
> with asterisks):

Well, I figured it out. I was returning the function itself. So, that wasn't
the line it was hung on. Just a perpetual look.

Ugh. ;o)

-Darrel

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.