D
Dmitry Karneyev
Hi All!
I've got an ado.net app with several win forms.
In the first form (form1) I connect to DB and in other forms I use
connection string generated by the form1 and stored in sqlconnection object
of form1.
If I use windows authorization of SQL Server everything works fine, but when
I use SQL Server authorization it doesn't work because sqlconnection object
doesn't store the password and as a result of retrieving connection string
from this object
I get connection string without password.
I know about "Persist Security Info". But setting it to true is not
reccomended.
Does anyone could help me to find a solution ?
Or should I use another way of connecting to DB from different win forms?
Thanks
I've got an ado.net app with several win forms.
In the first form (form1) I connect to DB and in other forms I use
connection string generated by the form1 and stored in sqlconnection object
of form1.
If I use windows authorization of SQL Server everything works fine, but when
I use SQL Server authorization it doesn't work because sqlconnection object
doesn't store the password and as a result of retrieving connection string
from this object
I get connection string without password.
I know about "Persist Security Info". But setting it to true is not
reccomended.
Does anyone could help me to find a solution ?
Or should I use another way of connecting to DB from different win forms?
Thanks