Change in connection string
hello all,
i need help on couple of things,
1-first of all i have a website, built using asp and javascript,and connected to a database,i have a DSN object to connect to database using the user sa and password 123, i need to change this to use the Integrated NT security, to access the database depending on the username and password of the server computer.
2-how can should i change the connection string based on the above, ie from
var odbc="dsn=mydb;uid=sa;pwd=123";
to an odbc that access the database based on the integrated security authentication.
3- is there a way to make the connection string in one file, rather than changing it in multiple scripts, this will be very much helpful.
NB:help is needed very urgently.
|