PC Review


Reply
Thread Tools Rate Thread

How does the cmd parameter commit transactions?

 
 
BoredwithExcel
Guest
Posts: n/a
 
      13th Jul 2005
Is this provider on AutoCommit? I dont understand how it commits.

Cheers,
Abhijit

 
Reply With Quote
 
 
 
 
William \(Bill\) Vaughn
Guest
Posts: n/a
 
      13th Jul 2005
Huh? Let's hear more about what you're trying to do and how you're trying to
do it.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

"BoredwithExcel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is this provider on AutoCommit? I dont understand how it commits.
>
> Cheers,
> Abhijit
>



 
Reply With Quote
 
BoredwithExcel
Guest
Posts: n/a
 
      14th Jul 2005
Here is my code.

***********Start of code*************

Dim strSQL As String = _
"INSERT INTO Traps (PicId, PicDesc)" & _
" VALUES (:PICID,:PICDESC)"

Dim cmd As New OracleCommand(strSQL, orc)
cmd.CommandType = CommandType.Text
MsgBox(cmd.Connection.State)
'Parameters for Oracle Command Object
Dim prmTwo As New OracleParameter
Dim prmThree As New OracleParameter

prmTwo = cmd.CreateParameter()
prmTwo.OracleType = OracleType.Number
prmTwo.Direction = ParameterDirection.Input
prmTwo.Size = 3
prmTwo.ParameterName = "@PicID"
prmTwo.Value = 10
cmd.Parameters.Add(prmTwo)

prmThree = cmd.CreateParameter()
prmThree.OracleType = OracleType.VarChar
prmThree.Direction = ParameterDirection.Input
prmThree.ParameterName = "@PicDesc"
prmThree.Size = 100
'prmThree.Value = arrFilename(0).ToString
prmThree.Value = "Hey there are you ready"
cmd.Parameters.Add(prmThree)
cmd.ExecuteNonQuery()

***********End of of code*************

I need to know where does it commit? Cos the values do appear in the
daatbase.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Begin/Commit Transactions =?Utf-8?B?SmltUw==?= Microsoft Access Forms 2 12th Apr 2007 02:58 PM
error STOP:0x0000007B (parameter, parameter, parameter, parameter) robert35 Microsoft Access Getting Started 1 15th Dec 2004 03:28 PM
Record Limit for Using Transactions, Commit? =?Utf-8?B?QnJpYW4=?= Microsoft Access Queries 1 8th Dec 2004 01:58 AM
access 2003 and transactions commit-rollback =?Utf-8?B?bWFkaG91c2U=?= Microsoft Access Form Coding 1 8th Nov 2004 11:51 AM
Mixing ADO.NET transactions and Stored Procedure Transactions James Walker Microsoft ADO .NET 1 27th May 2004 11:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:54 PM.