Click here to Skip to main content
15,885,278 members
Articles / Database Development / SQL Server

SqlProcedure - Improve Database Performance, Eliminate Errors and Reduce Code

Rate me:
Please Sign up or sign in to vote.
4.66/5 (16 votes)
23 Nov 2007CPOL8 min read 74.6K   1.4K   66  
Provides a utility to generate a wrapper for stored procedures to improve performance and eliminate certain run-time errors
<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>{5AB4CCFF-A622-4F9D-9F90-DBED340C36ED}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>SqlProcedureWriter</RootNamespace>
    <AssemblyName>SqlProcedureWriter</AssemblyName>
    <ApplicationIcon>icons\database.ico</ApplicationIcon>
    <SccProjectName>
    </SccProjectName>
    <SccLocalPath>
    </SccLocalPath>
    <SccAuxPath>
    </SccAuxPath>
    <SccProvider>
    </SccProvider>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <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>
    <Compile Include="AsyncHelper\AsyncCommandBase.cs" />
    <Compile Include="AsyncHelper\AsyncEventHelper.cs" />
    <Compile Include="CommandLineParams.cs" />
    <Compile Include="CommandLineRunner.cs" />
    <Compile Include="Connection.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Connection.Designer.cs">
      <DependentUpon>Connection.cs</DependentUpon>
    </Compile>
    <Compile Include="Database.cs" />
    <Compile Include="MainForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="MainForm.Designer.cs">
      <DependentUpon>MainForm.cs</DependentUpon>
    </Compile>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <EmbeddedResource Include="Connection.resx">
      <DependentUpon>Connection.cs</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="MainForm.resx">
      <DependentUpon>MainForm.cs</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Resources.resx</DependentUpon>
      <DesignTime>True</DesignTime>
    </Compile>
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
    <Compile Include="Properties\Settings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    </Compile>
    <Compile Include="Server.cs" />
    <Compile Include="SQLHelper.cs" />
    <Compile Include="SQLInfoEnumerator.cs" />
    <Compile Include="SqlOutputField.cs" />
    <Compile Include="SqlProcedureFileWriter.cs" />
    <Compile Include="SqlProcedureWriter.cs" />
    <Compile Include="SqlProcedureWrittenEventArgs.cs" />
    <Compile Include="SqlTypeMapper.cs" />
  </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>
    <None Include="Resources\ProcedureTemplate.txt" />
  </ItemGroup>
  <ItemGroup>
    <None Include="icons\database.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="icons\Pinion.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="icons\Folder.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="icons\properties.gif" />
  </ItemGroup>
  <ItemGroup>
    <None Include="icons\run.gif" />
  </ItemGroup>
  <ItemGroup>
    <None Include="icons\stop.gif" />
  </ItemGroup>
  <ItemGroup>
    <None Include="app.config" />
    <None Include="icons\database.png" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.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)


Written By
Architect
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions