Connection string Sybase

Asked

Viewed 39 times

0

I am trying to connect to a SQL Anywhere 12 database with iAnywhere.Data.Sqlanywhere.dll, and am having trouble specifying the connection_string.

properties.Add("connection.driver_class", "NHibernate.Driver.SybaseSQLAnywhereDriver");
            properties.Add("dialect", "NHibernate.Dialect.SybaseSQLAnywhere10Dialect");
            properties.Add("proxyfactory.factory_class", "NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle");
            properties.Add("hibernate.connection.provider", "NHibernate.Connection.DriverConnectionProvider");
            properties.Add("hbm2ddl.keywords", "none");
            properties.Add("connection.connection_string", "Data Source=;UID=DBA;PWD=SQL;");

Even stating the "Data Source" does not seem to connect in the database I need to connect, and when I try to inform the property "DBN", which I believe is the name of the database, I get this error:

inserir a descrição da imagem aqui

  • da uma procurada aqui: https://www.connectionstrings.com/

  • Yes, I based on this link to mount the connection string and it seems to be right, but it keeps giving this message that needs permission to start and stop the bd and that I can’t do.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.