im trying to connect to a database using odbc in x++. im always getting error that the operation failed. i double checked the server name and the database name and it still wont connect. any thoughts would be appreciated. thanks!
heres a part of my code:
OdbcConnection connection;
LoginProperty loginProp;
;
loginProp = new LoginProperty();
loginProp.setServer("[insert server name here]");
loginProp.setDatabase("[insert database name here]");
try
{
connection = new OdbcConnection(loginProp);
}
catch
{
error ("You do not have access to the database specified");
return;
}
*This post is locked for comments