connectionString="DRIVER=SQL Server;SERVER=192.168.1.45;UID=LMS_Tester;PWD=LMS_ Tester;DATABASE=LMS_Testing"
getDepString="select * from LMS_DEPARTMENT_TB where DepartmentCode='"&depCode&"' and DepartmentName='"&depName&"' and Description='"&desc&"' and Status="&status&""
Your table/s will have a max len value i.e. department would 3 digits '3', your department name might be 4 chars etc. This is only an assumption on my part but it is worth getting to know the database schema and structure for testing purposes