LRDE2009 error with SQL protocol with LR 11

Below is the code, that has been geneerated by LR 11:
lrd_init(&InitInfo, DBTypeVersion);
lrd_open_connection(&Con1, LRD_DBTYPE_DBLIB, "stoccauser", lr_decrypt("4cf79a1df499a15e84bb51d4"), "server\\product", lr_decrypt(
"4cf79a1de"), 0, 0, 0);
lrd_db_option(Con1, OT_DBLIB_SETLHOST, 0, 0);
lrd_db_option(Con1, OT_DBLIB_SETDBVER60, 0, 0);

while executing the above, below is the error we are getting:

vuser_init.c(17): lrd_open_cursor: ERROR, return-code=LRDE2009

we are able to manually connect to the SQL db without any error