Connect query configure connection can be done by using config file

Hi all,

How to connect database, by storing the values in config file like username, password, server name, database, table name.
How to do this, guide me on this.

@lakshmi.mp

Once you create a connection and save you should be able to see the connection string from the properties…you can add variables in it and replace with values from config

cheers

@Anil_G , how to create the connect connection with the help of config file…?

@lakshmi.mp

Configure using hardcoded values and once saved take the connection string from properties and then replace with config values

After configuring you will get string here

cheers

you can create connection string in config file and call in connect activity

for create connection string follow this video

Hi @lakshmi.mp,

Use the database connection activity and put manually your credentials there, you will get a connection string which you can edit by variable created from your config file or queue or any other storing files you have stored your credentials in.

@Anil_G , can you share me any example on this

@lakshmi.mp

Click on connection wizard and fill details of any dummy or manual values…

after saving open properties panel and modify the connection string

cheers

@Anil_G , how to open properties and modify connection string…

@lakshmi.mp

You can modify like this and add variables

cheers

@Anil_G ,


Created variables and how to access this.

@lakshmi.mp

Now if you need server name from config…

then use asssign with server_name of left and config value on right config("Servername").ToString

similarly for others

cheers

image
this error i am getting now… What to do.

@lakshmi.mp

As per error instance name or the server name procided is wrong…please check and giv wpropely…first give hard oded values and once works replace with original values

Cheers