asp.net.ph

SqlCommand.Transaction Property

System.Data.SqlClient Namespace   SqlCommand Class


Sets or retrieves the transaction in which the SqlCommand executes.

Syntax


Script SqlCommand.Transaction [ = sqlTransaction ]

Property Value


sqlTransaction The SqlTransaction.

The property is read/write with no default value.

Remarks

You cannot set the Transaction property if it is already set to a specific value, and the command is in the process of executing. If you set the transaction property to an SqlTransaction object that is not connected to the same SqlConnection as the SqlCommand object, an exception will be thrown the next time you attempt to execute a statement.

See Also

SqlCommand Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph