Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

SQL Server Database Backup Utility using VB.NET and SQL-DMO (New version)

, 17 Mar 2008
A Windows application to backup and restore SQL server tables,views,user defined functions and stored procedures
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{61F9C85F-46F5-4C9F-8C80-5F115F4992C3}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <StartupObject>BackupDatabase.My.MyApplication</StartupObject>
    <RootNamespace>BackupDatabase</RootNamespace>
    <AssemblyName>DatabaseBackup</AssemblyName>
    <MyType>WindowsForms</MyType>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <DefineDebug>true</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <OutputPath>bin\Debug\</OutputPath>
    <DocumentationFile>DatabaseBackup.xml</DocumentationFile>
    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <DefineDebug>false</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DocumentationFile>DatabaseBackup.xml</DocumentationFile>
    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="ICSharpCode.SharpZipLib, Version=0.84.0.0, Culture=neutral, PublicKeyToken=1b03e6acf1164f73" />
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Deployment" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Import Include="Microsoft.VisualBasic" />
    <Import Include="System" />
    <Import Include="System.Collections" />
    <Import Include="System.Collections.Generic" />
    <Import Include="System.Data" />
    <Import Include="System.Drawing" />
    <Import Include="System.Diagnostics" />
    <Import Include="System.Windows.Forms" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="clsCommon.vb" />
    <Compile Include="clsZip.vb" />
    <Compile Include="Controls\ErrorProviderExtended.vb">
      <SubType>Component</SubType>
    </Compile>
    <Compile Include="frmAbout.Designer.vb">
      <DependentUpon>frmAbout.vb</DependentUpon>
    </Compile>
    <Compile Include="frmAbout.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="frmDatabaseBackup.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="frmDatabaseBackup.Designer.vb">
      <DependentUpon>frmDatabaseBackup.vb</DependentUpon>
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="frmDatabaseRestore.Designer.vb">
      <DependentUpon>frmDatabaseRestore.vb</DependentUpon>
    </Compile>
    <Compile Include="frmDatabaseRestore.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="clsScript.vb" />
    <Compile Include="frmGenerateScripts.Designer.vb">
      <DependentUpon>frmGenerateScripts.vb</DependentUpon>
    </Compile>
    <Compile Include="frmGenerateScripts.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="MainMenu.Designer.vb">
      <DependentUpon>MainMenu.vb</DependentUpon>
    </Compile>
    <Compile Include="MainMenu.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="MSAccessDB.vb" />
    <Compile Include="My Project\AssemblyInfo.vb" />
    <Compile Include="My Project\Application.Designer.vb">
      <AutoGen>True</AutoGen>
      <DependentUpon>Application.myapp</DependentUpon>
    </Compile>
    <Compile Include="My Project\Resources.Designer.vb">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <Compile Include="My Project\Settings.Designer.vb">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="frmAbout.resx">
      <SubType>Designer</SubType>
      <DependentUpon>frmAbout.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="frmDatabaseBackup.resx">
      <SubType>Designer</SubType>
      <DependentUpon>frmDatabaseBackup.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="frmDatabaseRestore.resx">
      <SubType>Designer</SubType>
      <DependentUpon>frmDatabaseRestore.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="frmGenerateScripts.resx">
      <SubType>Designer</SubType>
      <DependentUpon>frmGenerateScripts.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="MainMenu.resx">
      <SubType>Designer</SubType>
      <DependentUpon>MainMenu.vb</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="My Project\Resources.resx">
      <Generator>VbMyResourcesResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.vb</LastGenOutput>
      <CustomToolNamespace>My.Resources</CustomToolNamespace>
      <SubType>Designer</SubType>
    </EmbeddedResource>
  </ItemGroup>
  <ItemGroup>
    <None Include="My Project\Application.myapp">
      <Generator>MyApplicationCodeGenerator</Generator>
      <LastGenOutput>Application.Designer.vb</LastGenOutput>
    </None>
    <None Include="My Project\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <CustomToolNamespace>My</CustomToolNamespace>
      <LastGenOutput>Settings.Designer.vb</LastGenOutput>
    </None>
  </ItemGroup>
  <ItemGroup>
    <COMReference Include="SQLDMO">
      <Guid>{10010001-E260-11CF-AE68-00AA004A34D5}</Guid>
      <VersionMajor>8</VersionMajor>
      <VersionMinor>5</VersionMinor>
      <Lcid>0</Lcid>
      <WrapperTool>tlbimp</WrapperTool>
      <Isolated>False</Isolated>
    </COMReference>
  </ItemGroup>
  <ItemGroup>
    <Content Include="bin\Release\ICSharpCode.SharpZipLib.dll" />
    <Content Include="bin\Release\Microsoft.SqlServer.ConnectionInfo.dll" />
    <Content Include="bin\Release\Microsoft.SqlServer.Smo.dll" />
    <Content Include="GNU General Public License.txt" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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

About the Author

Shabdar Ghata
Web Developer
Canada Canada
Software Developer
 
http://www.shabdar.org

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 17 Mar 2008
Article Copyright 2007 by Shabdar Ghata
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid