Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using cn as new system.data.sqlclient.sqlconnection()
- cn.open
- '{do a bunch of other stuff with commands and datareaders here}
- cn.close 'Do I need this?
- end using
- Try
- SqlConnection cn as new system.data.sqlclient.sqlconnection()
- cn.open
- '{do a bunch of other stuff with commands and datareaders here}
- cn.close 'Do I need this?
- Finally
- cn.Dispose()
- End Try
Add Comment
Please, Sign In to add comment