Hi
I have included - using Sap.Data.Hana; How to make connection to Sap b1 Hana database.
Thanks
Hi
I have included - using Sap.Data.Hana; How to make connection to Sap b1 Hana database.
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jayraj ChhayaPosted Feb 5, 2025, 7:20 AM
Hi @Ramco Ramco,
To connect to the SAP B1 HANA database using the
Sap.Data.Hananamespace in .NET, you will need to utilize theHanaConnectionclass. Below is a concise example demonstrating how to establish this connection:In this example, replace
your_server,your_user,your_password, andyour_databasewith your actual database credentials. This code snippet opens a connection to the SAP B1 HANA database, handles exceptions, and ensures the connection is closed properly.