Announcements
Hi All,
Error:
OBDC operation failed. Unable to log on database.
Object OBDC connection could not be created.
Below is the code which am running.
loginProperty = new LoginProperty(); loginProperty.setDSN("SqlServerTest"); loginProperty.setDatabase("WorkPay"); odbcConnection = new OdbcConnection(loginProperty); if(odbcConnection)
Can someone please help me on this. What is the reason behind the error?
Thanks and regards
Siddhant Singh
Hi all,
Please find below link, this also help me.
axvuongbao.blogspot.com/.../how-to-create-dsn-and-connect-to.html
Thanks and regards
Siddhant Singh
Hi Nikoloas/ Ergün,
I am getting this error on configuration level. How can we fix this?
Thanks and regards
Siddhant Singh
Did you create DSN
docs.microsoft.com/.../how-to-connect-to-an-external-database-from-x-code
Edit: Sorry for a moment I thought you were connecting to an external db
Hi Siddhanth,
you're not providing any username or password. That's why it fails and that's the reason behind the error.
André Arnaud de Cal...
294,099
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator