Link to home
Start Free TrialLog in
Avatar of deanlee17
deanlee17

asked on

Passing login credentials in data string

Hi guys,

As the title suggests, is this possible? If I switch credentials on I cannot view my parameters. I want to have the following text boxes:

Server:
Database:
Username:
Password:

Initially I had Integrated Security = SSPI in the connection string but I want to use that and use the credentials the user enters in the parameters textbox?

Thanks,
Dean.
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of deanlee17
deanlee17

ASKER

Ok we now have a user setup in the database that we need to access. For the credentials if I select to use windows authentication then use input parameters for the server address and database name then it all logs in fine. However if in the credentials area I select 'prompt user' and enter my windows credentials, then enter the server address and database name it does not allow me access. So is windows authentication doing something i'm not aware of?
This "credential area" is for SQL Authentication only. Windows Authentication is based on your user account and its login information. You don't need to provide your credentials again.