I am writing a basic DBMS package and I am trying to retrieve the column length. This is the query I am using to retrieve the infomation:
"SELECTSELECT COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH FROM INFORMATION_SCHEMA.Columns where WHERE TABLE_NAME = 'testVariables'"'testVariables' This works fine, no issues except for CHARACTER_MAXIMUM_LENGTH returns -1 all the time, When I use SQL managment toolsManagement Studio it says the column length is 16...
Any ideas?
Cheers, Joel