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 / .NET Framework / ADO.NET / January 2008

Tip: Looking for answers? Try searching our database.

oleDB hangs on ExecuteNonQuery

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jimj - 25 Jan 2008 17:30 GMT
The line insertStatus = cmdInsert.ExecuteNonQuery() is hanging; although the
INSERT is working, because after I kill the application, I can see the new
row.
The OLE DB provider is set to IBM DB2 UDB for iSeries IBMDA400 OLE DB
Provider.

Private Function VS_Insert(ByVal pndAmt As Decimal) As Boolean

       Dim currTime As String = Format(DateTime.Now, "HH.mm.ss")
       Dim currDate As String = Format(DateTime.Now, "yyyy-MM-dd")
       Dim success As Boolean = False
       Dim cnInsert As New OleDb.OleDbConnection(My.Settings.connAS400)
       Dim cmdInsert As New OleDb.OleDbCommand
       Dim insertStatus As Integer = 0

       cmdInsert.Parameters.Clear()

       Dim query As String = "INSERT INTO PRODUCTION.DVABDAPV " & _
           "(PONBR, LINENR) " & _
           "VALUES (?,?)"

       With cmdInsert
           .CommandText = query
           .CommandType = CommandType.Text
           .Parameters.Add("?", OleDb.OleDbType.Char).Value = PONr
           .Parameters.Add("?", OleDb.OleDbType.Char).Value = lineNr
           .Connection = cnInsert
       End With

       handleConnection(cnInsert)

       insertStatus = cmdInsert.ExecuteNonQuery()

       If Not insertStatus = 0 Then
           MsgBox("The select failed")
           success = False
       Else
           MsgBox("The select WORKED")
           success = True
       End If

       handleConnection(cnInsert)

       Return (success)
jimj - 30 Jan 2008 02:20 GMT
How fortunate that I have paid top dollar for an MSDN subsription for
the last 5 years, and post messages to the Managed newsgroups, but
rarely see a response.  I thought the deal was, Microsoft responded
within x hours.   I see a lot of posts that never get an answer.  I
won't be renewing my MSDN subscription any more, as I can somehow
stumble through the insane help in VS 2008 or better yet, convince my
superiors that we need to move to 'Open Source' development.

>The line insertStatus = cmdInsert.ExecuteNonQuery() is hanging; although the
>INSERT is working, because after I kill the application, I can see the new
[quoted text clipped - 40 lines]
>
>        Return (success)
RobinS - 30 Jan 2008 06:30 GMT
Just FYI, this newsgroup is also a public newsgroup. Not everyone that posts
here has an MSDN subscription (in fact, few seem to), and not everybody that
offers help works for Microsoft (MSFT only answers questions posed by MSDN
members).  I would start by making sure you are in a newsgroup that is
supported. (No, I have no idea which ones those are.)

RobinS.
GoldMail, Inc.
----------------------------------
> How fortunate that I have paid top dollar for an MSDN subsription for
> the last 5 years, and post messages to the Managed newsgroups, but
[quoted text clipped - 49 lines]
>>
>>        Return (success)
Cor Ligthert [MVP] - 30 Jan 2008 12:03 GMT
> How fortunate that I have paid top dollar for an MSDN subsription for
> the last 5 years, and post messages to the Managed newsgroups, but
[quoted text clipped - 3 lines]
> stumble through the insane help in VS 2008 or better yet, convince my
> superiors that we need to move to 'Open Source' development.

They respond and very consequent, the only thing is that you have to use the
Microsoft web newsgroup interface and to log on on to that with the email
address that belongs to your MSDN subscripty.

Cor
Miha Markic - 30 Jan 2008 13:49 GMT
> They respond and very consequent, the only thing is that you have to use
> the
> Microsoft web newsgroup interface and to log on on to that with the email
> address that belongs to your MSDN subscripty.

I think that proper e-mail address is enough. Not sure though.
Signature

Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

Gregg Walker - 30 Jan 2008 16:47 GMT
> How fortunate that I have paid top dollar for an MSDN subsription for
> the last 5 years, and post messages to the Managed newsgroups, but
[quoted text clipped - 3 lines]
> stumble through the insane help in VS 2008 or better yet, convince my
> superiors that we need to move to 'Open Source' development.

If you're not getting a timely response (I believe MS promises 48 hours)
then I would guess that you have not created a posting alias.  I had this
same problem before I created my posting alias.  Once created you can either
use the MS Web News to access the newsgroups or you can use your own
newsreader.  When you use your own newsreader your reply address must match
the posting alias you created or there is no guarantee of a response (timely
or not) to your posts.

This newsgroup is listed as a managed newsgroup.

Try going to this link and you should find an explanation about what to do.

http://msdn2.microsoft.com/en-us/subscriptions/aa974230.aspx

hth
--
Gregg Walker
Gregg Walker - 30 Jan 2008 16:54 GMT
Here's a more direct link to setup you posting alias though it might not be
accesible directly.

https://msdn2.microsoft.com/en-us/subscriptions/manage/default.aspx
Michael O - 30 Jan 2008 23:48 GMT
> How fortunate that I have paid top dollar for an MSDN subsription for
> the last 5 years, and post messages to the Managed newsgroups, but
[quoted text clipped - 3 lines]
> stumble through the insane help in VS 2008 or better yet, convince my
> superiors that we need to move to 'Open Source' development.

I love using open source products and participating in their
projects.  However, this is a very unabashed troll-like post.  Do you
think that using open source development tools mean you get a timely
and high quality response from vendors that take your money to support
an open source project?  I think you have a rude awakening when you
finally obtain your open source development support paradise.

Michael O
http://blog.crisatunity.com
Jeff Gaines - 31 Jan 2008 09:46 GMT
On 30/01/2008 in message <4cnvp31efsm1fsuop8v1h378f42dop2f68@4ax.com> jimj
wrote:

>How fortunate that I have paid top dollar for an MSDN subsription for
>the last 5 years, and post messages to the Managed newsgroups, but
>rarely see a response.

MSFT use a database to check incoming names so if you aren't using your
MSDN subscription name they will miss you. I have always had an excellent,
prompt and helpful response from MSFT staff.

Unfortunately in MSFT groups other responses can be a bit rare sometimes.

Signature

Jeff Gaines

Miha Markic - 30 Jan 2008 05:12 GMT
Sounds to me like a non .net problem - either provider or database.
Did you ask IBM about this?
Signature

Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

> The line insertStatus = cmdInsert.ExecuteNonQuery() is hanging; although
> the
[quoted text clipped - 41 lines]
>
>        Return (success)

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.