Windsailor
Well-known member
- Joined
- Aug 2, 2006
- Messages
- 45
- Programming Experience
- 1-3
I can retrieve a COUNT through a dataset and test it like this:
How do I do this using the command structured syntax?
Which is better, using the dataset approach or using the command dialog?
Thanks
VB.NET:
Dim myvalue As Integer
myvalue = Me.Dataset1.Tables("MyTableName").Rows(0)("MyColumnName")
If myvalue = 0 Then
Exit Sub
Else
DoSomethingElse
End If
How do I do this using the command structured syntax?
VB.NET:
Dim command As SqlServerCe.SqlCeCommand = New SqlServerCe.SqlCeCommand
Which is better, using the dataset approach or using the command dialog?
Thanks