cancel
Showing results for 
Search instead for 
Did you mean: 

SQL Server login credentials.

Former Member
0 Kudos

Hi,

I'am trying to open a crystal report from B1.I need to pass the User Id and Password of the SQL Server.How do i retrieve these without Hardcoding them .Currently we do not want the user to enter the Login details.. from an UI..

Is this information stored in the SBO Tables anywhere.

Regards

Vishal

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

thanx for ur answers.Does that mean I wont be able to access the Sql server UserId and password form SBO.

So I have to prompt the user to enter the UID and Pwd explicitly..???

Regards Vishal

Former Member
0 Kudos

Hi,

Unfortunately that is exactly what it means (:

You can however still access the server name and database name. I use these to correctly set the server and database for each of the tables.

I created a simple form that asks for the username and password and stores it in a user table (encrypted of course).

Then when I open a report I check if the username/password is stored if not I prompt for it then continue printing the report.

Regards

Darryn

Former Member
0 Kudos

thanx for ur answers.Does that mean I wont be able to access the Sql server UserId and password form SBO.

So I have to prompt the user to enter the UID and Pwd explicitly..???

Regards Vishal

Former Member
0 Kudos

Hello!

I believe is not possible to read the db password. You can access the database with the credentials of SBO, but, if you want to pass the DB password to any other application, that is not possible.

Regards

Sir Harold

AlexGrebennikov
Active Contributor
0 Kudos

Hi Tim!

I suppose there is the only way to get SQLServer login/password - you have to use <b>SSO</b> and then read <b>DI</b>-Company properties like <b>CompanyDB</b>, <b>DbPassword</b> and <b>DbUserName</b>.

Hope it's clear.

AlexGrebennikov
Active Contributor
0 Kudos

Hi!

>> you have to use SSO and then read DI-Company

>> properties like CompanyDB, DbPassword and DbUserName.

i've tested that i told u. i can access and read all properties (CompanyDB, DbPassword and DbUserName), but DbPassword-value is '***********'.

i suppose it was designed specially for IT-security.