I am trying to run a .NET command line application in Linux using Mono. It accesses SQL Server 2005 Express database and, when querying some data it throws the following exception:
System.NotSupportedException: Unknown Type : timestamp
at Mono.Data.Tds.TdsMetaParameter.GetMetaType () [0x00000]
at Mono.Data.Tds.Protocol.Tds70.WriteParameterInfo (Mono.Data.Tds.TdsMetaParameter param) [0x00000]
at Mono.Data.Tds.Protocol.Tds70.ExecRPC (System.String rpcName, Mono.Data.Tds.TdsMetaParameterCollection parameters, Int32 timeout, Boolean wantResults) [0x00000]
at Mono.Data.Tds.Protocol.Tds70.ExecProc (System.String commandText, Mono.Data.Tds.TdsMetaParameterCollection parameters, Int32 timeout, Boolean wantResults) [0x00000]
at System.Data.SqlClient.SqlCommand.Execute (Boolean wantResults) [0x00000]
at System.Data.SqlClient.SqlCommand.ExecuteReader (CommandBehavior behavior) [0x00000]
Queried table has a RowVersion
column whose type is timestamp
. Isn't it possible to use timestamp columns in SQL Server when running .NET applications in Mono?