experchange > cert.* > cert.exam.mcsd

sirReadalot (02-24-04, 04:15 PM)
Dim conn as new sqlconnection()
Dim tran as sqltransaction
tran = conn.beginTransaction("Serialiable")

OR

Dim conn as new sqlconnection()
Dim tran as sqltransaction
tran = conn.beginTransaction("IsolationLevel.Serialiable" )

thanks.
The Poster Formerly Known as Kline Sphere (02-24-04, 05:37 PM)
>Dim conn as new sqlconnection()
>Dim tran as sqltransaction
>tran = conn.beginTransaction("Serialiable")
>OR
>Dim conn as new sqlconnection()
>Dim tran as sqltransaction
>tran = conn.beginTransaction("IsolationLevel.Serialiable" )


Both. Although I don't think will get the behavior you expect. See the
documentation for theBeginTransaction method which will tell you why.

Kline Sphere (Chalk) MCNGP #3
Eric (02-25-04, 09:42 PM)
sirReadalot wrote:

> Dim conn as new sqlconnection()
> Dim tran as sqltransaction
> tran = conn.beginTransaction("Serialiable")
> OR
> Dim conn as new sqlconnection()
> Dim tran as sqltransaction
> tran = conn.beginTransaction("IsolationLevel.Serialiable" )
> thanks.


You need to lose the quotes and change the spelling:

tran - conn.beginTransaction(IsolationLevel.Serializable) ;

Serializable is an enumeration.
Eric (02-27-04, 10:06 PM)
Eric wrote:

> sirReadalot wrote:
> You need to lose the quotes and change the spelling:
> tran - conn.beginTransaction(IsolationLevel.Serializable) ;
> Serializable is an enumeration.


duh - the other answer was right, too. You can't really do this in
ADO.NET, even if you get the right syntax.
Similar Threads