Geert Maesele
7/23/2002 3:39:00 PM
Hi
Is there anyone how has already used the Microsoft ODBC .Net Provider to
access SQLBase?
I'm using it and it works quiet fine. But when I try to use parameters in
my SQL statements, errors appear..
Anyone who knows how to make that run??
This is my code:
parameterName = ":1"
strSql = "SELECT * FROM table1 WHERE begindate < :1 AND (enddate > :1)"
Dim dataCommand As Microsoft.Data.Odbc.OdbcParameter
dataCommand = New Microsoft.Data.Odbc.OdbcParameter()
dataCommand.DbType = DbType.Date
dataCommand.ParameterName = ":1"
dataCommand.Value = System.DateTime.Today.Date
Return databaseForODBC.GetDataTable(CommandType.Text, strSql, dataCommand)
This error is generated: "ERROR [42S02] [MERANT][ODBC SQLBase
driver][SQLBase]00601 DIC ITN Table has not been created"
All help is welcome!
Thanks in advance
Geert