Click here to Skip to main content
15,883,896 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have download a project for backup/restore sql server db in c# ... even though i have changed its connection string according to my sql server name but i don't know why it still doesn't work right... please kindly help me to run this program.

SqlServer Backup/Restore Utility[^]

Before running an application, edit connection Strings section in BackupRestore.exe.config file to connect my database like
XML
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
    </configSections>
    <connectionStrings>
        <add name="Alioglu.Util.SqlSrv.BackupRestore.Properties.Settings.masterConnectionString"
            connectionString="Data Source=PERSIAN-PC\SQLEXPRESS;Initial catalog=master;Integrated Security=True;User Instance=True"
            providerName="System.Data.SqlClient" />
    </connectionStrings>
  <appSettings>
    <add key="SqlFileLocations" value="C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA" />
  </appSettings>
</configuration>


but restore part why not working yet?


many thanks
Posted
Updated 18-Jan-13 3:03am
v2

1 solution

You should post your query (including full details of the problem) in the forum at the end of the article. Alternatively add some proper detail to your question and people will try to help you.
 
Share this answer
 
Comments
rflower 18-Jan-13 9:04am    
i edit my question .thanks to forward me
Richard MacCutchan 18-Jan-13 10:15am    
Have you checked that you can access the database with those parameters? You may need to use your debugger to step through the code to discover what is happening.
rflower 18-Jan-13 10:18am    
i change everything in this code ... but not working yet ..and i don't know more than it ... please kindly forward me
Richard MacCutchan 18-Jan-13 10:21am    
Sorry but this code is provided "as is", if it does not work then you need to contact the author using the article forum, or try and debug it yourself.
Sergey Alexandrovich Kryukov 18-Jan-13 19:52pm    
Agree, a 5.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900