To dynamically set the length of a variable (Code in C) to store data, i use the ODBC API function SQLDescribeCol. When a smalldatetime column type from SQLServer is treat by SQLDescribeCol, the COLSIZE return by the function is 16 when YYYY-MM-DD HH:MM:SS contain 19 characters. This case overload my variable with a crashing result of my program.
Is it a known problem and how can it be fixed?
Thank you!
Is it a known problem and how can it be fixed?
Thank you!