Connect to a secure database and execute queries using Rapise

Wednesday, June 6, 2018
Avatar

Hi, 

 

I would like to connect to a database which requires login credentials. I was trying different things but failed to succeed. Can you show me an example of how to use Database.DoAttach to perform such a connection or tell me if it is even possible? 

 

Thanks!

 

 

1 Replies
Thursday, June 7, 2018
Avatar
re: StefanMandovski Wednesday, June 6, 2018

Hi Stefan,

User and password may be passed as a part of the connection string. It also depends on the database type. For example, for SQL Server it would be:

"........User ID=mylogin;Password=mypassword;"

You may find more information here:

https://www.connectionstrings.com/all-sql-server-connection-string-keywords/

 

I hope that helps.

Regards,

Alexey

 

 

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Wednesday, June 6, 2018
  • Last Reply: Thursday, June 7, 2018
  • Replies: 1
  • Views: 12966