i wanna program a code which is can be a simple example of SQL SERVER 2008 backup/restore in c# which data base not using password and username in its connection string ... i search many projects in google but none of couldn't help me to can make a simple project for backup and restore database sql server... please kindly show me any good complete code which i can create a simple project for my understanding which this program simply run .... many thanks
its back up works right but for restor failed for connect to server ?
connectionString="Data Source=PERSIAN-PC\SQLEXPRESS;Initial catalog=master;Integrated Security=True;User Instance=True"
Edited 18-Jan-13 2:46am
If your server is set up for windows authentication and your C# program runs under an authenticated account, you do not need to give credentials. If not, then there's no way.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)