stay password in connection string

Hi
after connect to SQL database from .NET the password is removed from connection string, what can i do for stay it in connection string
thank you




Answer this question

stay password in connection string

  • Vaxman2

    Use the 'Persist Security Info' keyword and set it to true, for example:

    "Persist Security Info=True;User Id=mysuser;Password=mypassword;database=northwind;server=mySQLServer"

  • stay password in connection string