? SQLSTRINGCONNECT([Driver={SQL Server};Server=METAFRAME;Database=excepciones;Uid=USER_NAME_HERE;Pwd=PASSWORD_HERE]) ** or if you use Trusted connection ? SQLSTRINGCONNECT([Driver={SQL Server};Server=METAFRAME;DATABASE=excepciones;Trusted_Connection=yes;])>mmm I set all the parameters... but it doesn't work.. I changed the values:
> strAttributes = "SERVER=METAFRAME" + Chr(0) > strAttributes = strAttributes + "DESCRIPTION=Temp DSN " + Chr(0) > strAttributes = strAttributes + "DSN=DSN_TEMP " + Chr(0) > strAttributes = strAttributes + "DATABASE=excepciones " + Chr(0) > strAttributes = strAttributes + "UID=" + Chr(0) > strAttributes = strAttributes + "PWD=" + Chr(0) > intRet = SQLConfigDataSource(vbAPINull, ODBC_ADD_DSN, strDriver, strAttributes) >>