Click here to Skip to main content
12,698,048 members (23,410 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# XML SQL-Server
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 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 18-Jan-13 3:56am
rflower272
Updated 18-Jan-13 4:03am
v2

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 18 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100