I have just opened up the SQL Server Example - Run it - All good
I have then just changed the Table Name so I can try accessing my own data but am getting a crash
On looking at the message it says
“Error retrieving large column values due to a bug in the SQL Native Client (https://connect.microsoft.com/SQLServer/feedback/details/467300/problem-with-varchar-max-via-sql-native-client).”
Have I done something wrong?
It crashes on the Select * from TableName execution
code
Sub Action()
If Not IsConnected Then
MessageDialog.Show(“Connect to the database first.”)
End If
DataList.RemoveAllRows
Var sql As String = “SELECT * FROM DRS_MASTER;” <<<<<<<<<<<<<<< my change
Var data As RowSet
try
data = mDB.SelectSQL(sql) <<<<<<<<<<<<<<<<<<<<< crashes here
Catch err as DatabaseException
MessageDialog.Show("DB Error: " + err.Message)
Return
End Try
If data <> Nil Then
For Each row As DatabaseRow In data
DataList.AddRow(row.ColumnAt(0).StringValue, row.ColumnAt(1).StringValue, _
row.ColumnAt(2).StringValue, row.ColumnAt(3).StringValue)
Next
data.Close
End If
End Sub