Hello, I am trying to connect .net application with DNS connection. I am getting below error message ERROR [S0000] [ProvideX][ODBC Driver][PVKIO]Logon failed Below is my .net application code: OdbcCommand cmd; OdbcConnection cn; string MyString = "SELECT * FROM CI_Item"; cn = new OdbcConnection("DSN=CR2MAS90; UID=UserId;PWD=Password; Directory=D:\\ACCT\\2014\\MAS90; Prefix=D:\\ACCT\\2014\\MAS90\\SY\\, D:\\ACCT\\2014\\MAS90\\==\\; ViewDLL=D:\\ACCT\\2014\\MAS90\\HOME; Company=CR2; LogFile=\\PVXODBC.LOG; Debug=1; DirtyReads=1; BurstMode=1; StripTrailingSpaces=1; SERVER=NotTheServer"); cmd = new OdbcCommand(MyString, cn); cn.Open(); Console.WriteLine("Database is connected............"); cn.Close(); Please guide us....
↧