on 12-02-2020 2:10 AM
Hi
How to create a connection to Sap Database using Web.Config in c#
Thanks
Hi,
if you want to make some queries directly to the database,
you'll need to setup the connexion string.
With Hana Db, you can use the HanaConnection
HanaConnection l_hConn = new HanaConnection() { ConnectionString = "Server = <hanaServer>:30015; UserName = USER; Password = PASSWORD" };
l_hConn.Open();
You can store your connection string in you config file.
You can also query B1 object through service Layer or DI API SDK.
Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
11 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.