T
Tim Marsden
Hello,
I am building a parameterised query in vb.net for execution against a SQL
server database.
I am using a OLEDB command and OLEDB parameters. If one of the parameters is
a date I sometimes experience a problem in the interpretation of the format.
I populate the parameter value from a user input text box. I am in the UK so
the use inputs in the format dd/mm/yy. I know SQL user the US format of
mm/dd/yy.
Is there any simple way of telling the query or the the connection or
anything, the data format I am using is dd/mm/yy.
I could convert the date to mm/dd/yy before setting the parameter value, but
the same logic is used for all data types.
Regards Tim.
I am building a parameterised query in vb.net for execution against a SQL
server database.
I am using a OLEDB command and OLEDB parameters. If one of the parameters is
a date I sometimes experience a problem in the interpretation of the format.
I populate the parameter value from a user input text box. I am in the UK so
the use inputs in the format dd/mm/yy. I know SQL user the US format of
mm/dd/yy.
Is there any simple way of telling the query or the the connection or
anything, the data format I am using is dd/mm/yy.
I could convert the date to mm/dd/yy before setting the parameter value, but
the same logic is used for all data types.
Regards Tim.