<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kandy Solutions Ltd</title>
	<atom:link href="http://kandysolutions.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://kandysolutions.co.uk</link>
	<description>Bespoke Database and Software Developers</description>
	<lastBuildDate>Tue, 14 May 2013 13:02:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>t-sql script to rename all tables in a database</title>
		<link>http://kandysolutions.co.uk/2012/07/24/t-sql-script-to-rename-all-tables-in-a-database/</link>
		<comments>http://kandysolutions.co.uk/2012/07/24/t-sql-script-to-rename-all-tables-in-a-database/#comments</comments>
		<pubDate>Tue, 24 Jul 2012 15:44:37 +0000</pubDate>
		<dc:creator>Amogford</dc:creator>
				<category><![CDATA[How To Guides]]></category>

		<guid isPermaLink="false">http://kandysolutions.co.uk/?p=178</guid>
		<description><![CDATA[Sometimes we want to rename every table in a database, for example, Access has a habit of appending prefixes to tables instead of the schema, if we upload these again to sql we have a load of table names with<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://kandysolutions.co.uk/2012/07/24/t-sql-script-to-rename-all-tables-in-a-database/">Read more &#8250;</a></div><!-- end of .read-more -->]]></description>
				<content:encoded><![CDATA[<p>Sometimes we want to rename every table in a database, for example, Access has a habit of appending prefixes to tables instead of the schema, if we upload these again to sql we have a load of table names with the same prefix.</p>
<p>To ret rid of these, copy the following code into a query window, substitute <em>&#8216;mysearchtext&#8217; </em>and <em>&#8216;myreplacetext&#8217; </em>with your own terms, run it, copy the results into another query window and run that.</p>
<p>&#8211; rename tables in database</p>
<p><strong>SELECT &#8216;EXEC sp_rename &#8221;&#8217; + NAME + &#8221;&#8217;,&#8221;&#8217; +  replace(name, &#8216;vixlive_&#8217;,&#8221;) + &#8221;&#8217; &#8216;  FROM sysobjects where xtype = &#8216;U&#8217;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kandysolutions.co.uk/2012/07/24/t-sql-script-to-rename-all-tables-in-a-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Script to List all tables without a clustered Index</title>
		<link>http://kandysolutions.co.uk/2012/07/19/sql-script-to-list-all-tables-without-a-clustered-index/</link>
		<comments>http://kandysolutions.co.uk/2012/07/19/sql-script-to-list-all-tables-without-a-clustered-index/#comments</comments>
		<pubDate>Thu, 19 Jul 2012 18:13:49 +0000</pubDate>
		<dc:creator>Amogford</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kandysolutions.co.uk/?p=175</guid>
		<description><![CDATA[SQL Azure requires that all tables have a clustered index. It would be tedious to manually go through and check them, but this script will list them all. SELECT name AS TableName FROM sys.objects WHERE object_id NOT IN (SELECT object_id<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://kandysolutions.co.uk/2012/07/19/sql-script-to-list-all-tables-without-a-clustered-index/">Read more &#8250;</a></div><!-- end of .read-more -->]]></description>
				<content:encoded><![CDATA[<p>SQL Azure requires that all tables have a clustered index.<br />
It would be tedious to manually go through and check them, but this script will list them all.</p>
<p>SELECT name AS TableName<br />
FROM sys.objects<br />
WHERE object_id NOT IN (SELECT object_id FROM sys.indexes WHERE index_id = 1)<br />
AND type = &#8216;u&#8217; &#8211;USER DEFINED TABLE</p>
]]></content:encoded>
			<wfw:commentRss>http://kandysolutions.co.uk/2012/07/19/sql-script-to-list-all-tables-without-a-clustered-index/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Script to Move Data As Well As Schema</title>
		<link>http://kandysolutions.co.uk/2012/07/19/sql-script-to-move-data-as-well-as-schema/</link>
		<comments>http://kandysolutions.co.uk/2012/07/19/sql-script-to-move-data-as-well-as-schema/#comments</comments>
		<pubDate>Thu, 19 Jul 2012 14:14:47 +0000</pubDate>
		<dc:creator>Amogford</dc:creator>
				<category><![CDATA[How To Guides]]></category>

		<guid isPermaLink="false">http://kandysolutions.co.uk/?p=169</guid>
		<description><![CDATA[Moving a SQL Database schema is easy, and I have been generating the scripts for this for a long time. But I recently learned that by digging into the advanced options, there is a well buried option to script the<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://kandysolutions.co.uk/2012/07/19/sql-script-to-move-data-as-well-as-schema/">Read more &#8250;</a></div><!-- end of .read-more -->]]></description>
				<content:encoded><![CDATA[<p>
<a href='http://kandysolutions.co.uk/2012/07/19/sql-script-to-move-data-as-well-as-schema/sql-script-advanced-options-schema-and-data/' title='SQL Script Advanced Options schema and data'><img width="150" height="150" src="http://kandysolutions.co.uk/wp-content/uploads/2012/07/SQL-Script-Advanced-Options-schema-and-data-150x150.png" class="attachment-thumbnail" alt="SQL Script Advanced Options schema and data" /></a>
<a href='http://kandysolutions.co.uk/2012/07/19/sql-script-to-move-data-as-well-as-schema/sql-script-advanced-options/' title='SQL Script Advanced Options'><img width="150" height="150" src="http://kandysolutions.co.uk/wp-content/uploads/2012/07/SQL-Script-Advanced-Options-150x150.png" class="attachment-thumbnail" alt="SQL Script Advanced Options" /></a>
Moving a SQL Database schema is easy, and I have been generating the scripts for this for a long time.<br />
But I recently learned that by digging into the advanced options, there is a well buried option to script the scheme <strong>and data</strong><br />
Generate the sql script by right-clicking on the database node, choosing tasks, generate scripts.<br />
Then in the scripts wizard, select Advanced Options, and look for &#8220;Types Of Data to Script&#8221;, there select &#8220;Schema and Data&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://kandysolutions.co.uk/2012/07/19/sql-script-to-move-data-as-well-as-schema/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Replicaton Propblem</title>
		<link>http://kandysolutions.co.uk/2012/06/29/sql-replicaton-propblem/</link>
		<comments>http://kandysolutions.co.uk/2012/06/29/sql-replicaton-propblem/#comments</comments>
		<pubDate>Fri, 29 Jun 2012 11:17:53 +0000</pubDate>
		<dc:creator>Amogford</dc:creator>
				<category><![CDATA[Technical Problems]]></category>

		<guid isPermaLink="false">http://kandysolutions.co.uk/?p=164</guid>
		<description><![CDATA[“Maximum Storage procedure, function, trigger or view nesting lever exceeded (limit 32)&#8221; After adding merge replication to the PaperMuseum database, the user was getting this message SQL Sever Error“Maximum Storage procedure, function, trigger or view nesting lever exceeded (limit 32)&#8221;occurred<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://kandysolutions.co.uk/2012/06/29/sql-replicaton-propblem/">Read more &#8250;</a></div><!-- end of .read-more -->]]></description>
				<content:encoded><![CDATA[<h1>“Maximum Storage procedure, function, trigger or view nesting lever exceeded (limit 32)&#8221;</h1>
<p>After adding merge replication to the PaperMuseum database, the user was getting this message SQL Sever Error“Maximum Storage procedure, function, trigger or view nesting lever exceeded (limit 32)&#8221;occurred after adding replication. This occurred everytime they tried to change a record.</p>
<h2>The solution:</h2>
<p>Go into database properties, files, and check the Owner (it was blank). Having set the owner, then deleted the replication publication and ran the wizard again, everything was ok.</p>
]]></content:encoded>
			<wfw:commentRss>http://kandysolutions.co.uk/2012/06/29/sql-replicaton-propblem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://kandysolutions.co.uk/2012/06/09/161/</link>
		<comments>http://kandysolutions.co.uk/2012/06/09/161/#comments</comments>
		<pubDate>Sat, 09 Jun 2012 12:00:48 +0000</pubDate>
		<dc:creator>Amogford</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kandysolutions.co.uk/?p=161</guid>
		<description><![CDATA[Crystal Reports Installation Problem Having had the application running successfully at the pure package for several weeks, a Click Once update failed. The error message “requires assembly CrystalDecisions.ReportAppServer.ReportDefModel Version 12.0.0.11.0.0 be installed in the Global Assembly Cache” When I checked<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://kandysolutions.co.uk/2012/06/09/161/">Read more &#8250;</a></div><!-- end of .read-more -->]]></description>
				<content:encoded><![CDATA[<div>
<p>Crystal Reports Installation Problem</p>
</div>
<p>Having had the application running successfully at the pure package for several weeks, a Click Once update failed.</p>
<p>The error message “requires assembly CrystalDecisions.ReportAppServer.ReportDefModel Version 12.0.0.11.0.0 be installed in the Global Assembly Cache”</p>
<p>When I checked back to an old working installation, I found the Crystal Reports references to be a later version (13)</p>
<p>&nbsp;</p>
<h1>SOLUTION</h1>
<p>I removed all references to Crystal Decisions from my project, then browse to add in the new references:</p>
<p>Path on my pc Shown Below</p>
<p>C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://kandysolutions.co.uk/2012/06/09/161/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio Crystal Report Error</title>
		<link>http://kandysolutions.co.uk/2012/03/18/visual-studio-crystal-report-error/</link>
		<comments>http://kandysolutions.co.uk/2012/03/18/visual-studio-crystal-report-error/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 14:07:42 +0000</pubDate>
		<dc:creator>Amogford</dc:creator>
				<category><![CDATA[Technical Problems]]></category>

		<guid isPermaLink="false">http://kandysolutions.co.uk/?p=151</guid>
		<description><![CDATA[When changing to a dynamic report Crystal Report in Visual Studo 2010 at run time I got the following error message Could not load file or assembly &#8216;file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll&#8217; or<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://kandysolutions.co.uk/2012/03/18/visual-studio-crystal-report-error/">Read more &#8250;</a></div><!-- end of .read-more -->]]></description>
				<content:encoded><![CDATA[<p>When changing to a dynamic report Crystal Report in Visual Studo 2010 at run time I got the following error message</p>
<p>Could not load file or assembly &#8216;file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll&#8217; or one of its dependencies. The system cannot find the file specified.</p>
<p>The solution was the add the following to the app.config file</p>
<p>&lt;startup useLegacyV2RuntimeActivationPolicy=&#8221;true&#8221;&gt;</p>
<p><strong>That resolved the problem on my development machine, to fix it on the end user&#8217;s machines I had to add this section</strong></p>
<p>&lt;runtime&gt;</p>
<p>&lt;assemblyBinding xmlns=&#8221;urn:schemas-microsoft-com:asm.v1&#8243;&gt;</p>
<p>&lt;dependentAssembly&gt;</p>
<p>&lt;assemblyIdentity name=&#8221;CrystalDecisions.CrystalReports.Engine&#8221; publicKeyToken=&#8221;692fbea5521e1304&#8243;/&gt;</p>
<p>&lt;bindingRedirect oldVersion=&#8221;14.0.2000.0&#8243; newVersion=&#8221;12.0.2000.0&#8243;/&gt;</p>
<p>&lt;/dependentAssembly&gt;</p>
<p>&lt;dependentAssembly&gt;</p>
<p>&lt;assemblyIdentity name=&#8221;CrystalDecisions.Enterprise.Framework&#8221; publicKeyToken=&#8221;692fbea5521e1304&#8243;/&gt;</p>
<p>&lt;bindingRedirect oldVersion=&#8221;14.0.2000.0&#8243; newVersion=&#8221;12.0.1100.0&#8243;/&gt;</p>
<p>&lt;/dependentAssembly&gt;</p>
<p>&lt;dependentAssembly&gt;</p>
<p>&lt;assemblyIdentity name=&#8221;CrystalDecisions.Enterprise.InfoStore&#8221; publicKeyToken=&#8221;692fbea5521e1304&#8243;/&gt;</p>
<p>&lt;bindingRedirect oldVersion=&#8221;14.0.2000.0&#8243; newVersion=&#8221;12.0.1100.0&#8243;/&gt;</p>
<p>&lt;/dependentAssembly&gt;</p>
<p>&lt;dependentAssembly&gt;</p>
<p>&lt;assemblyIdentity name=&#8221;CrystalDecisions.Shared&#8221; publicKeyToken=&#8221;692fbea5521e1304&#8243;/&gt;</p>
<p>&lt;bindingRedirect oldVersion=&#8221;14.0.2000.0&#8243; newVersion=&#8221;12.0.2000.0&#8243;/&gt;</p>
<p>&lt;/dependentAssembly&gt;</p>
<p>&lt;dependentAssembly&gt;</p>
<p>&lt;assemblyIdentity name=&#8221;CrystalDecisions.ReportSource&#8221; publicKeyToken=&#8221;692fbea5521e1304&#8243;/&gt;</p>
<p>&lt;bindingRedirect oldVersion=&#8221;14.0.2000.0&#8243; newVersion=&#8221;12.0.2000.0&#8243;/&gt;</p>
<p>&lt;/dependentAssembly&gt;</p>
<p>&lt;dependentAssembly&gt;</p>
<p>&lt;assemblyIdentity name=&#8221;CrystalDecisions.Windows.Forms&#8221; publicKeyToken=&#8221;692fbea5521e1304&#8243;/&gt;</p>
<p>&lt;bindingRedirect oldVersion=&#8221;14.0.2000.0&#8243; newVersion=&#8221;12.0.2000.0&#8243;/&gt;</p>
<p>&lt;/dependentAssembly&gt;</p>
<p>&lt;dependentAssembly&gt;</p>
<p>&lt;assemblyIdentity name=&#8221;CrystalDecisions.Web&#8221; publicKeyToken=&#8221;692fbea5521e1304&#8243;/&gt;</p>
<p>&lt;bindingRedirect oldVersion=&#8221;14.0.2000.0&#8243; newVersion=&#8221;12.0.2000.0&#8243;/&gt;</p>
<p>&lt;/dependentAssembly&gt;</p>
<p>&lt;/assemblyBinding&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://kandysolutions.co.uk/2012/03/18/visual-studio-crystal-report-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Layout Controls In Visual Studio Win Forms Project</title>
		<link>http://kandysolutions.co.uk/2012/02/14/how-to-layout-controls-in-visual-studio-win-forms-project/</link>
		<comments>http://kandysolutions.co.uk/2012/02/14/how-to-layout-controls-in-visual-studio-win-forms-project/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 13:21:56 +0000</pubDate>
		<dc:creator>Amogford</dc:creator>
				<category><![CDATA[How To Guides]]></category>

		<guid isPermaLink="false">http://kandysolutions.co.uk/?p=137</guid>
		<description><![CDATA[Keeping controls aligned can be tedious, but Visual Studio contains some features that make this easier. To Align controls, by their edges or centers, select first the control that is in the correct position, then hold down the ctrl and<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://kandysolutions.co.uk/2012/02/14/how-to-layout-controls-in-visual-studio-win-forms-project/">Read more &#8250;</a></div><!-- end of .read-more -->]]></description>
				<content:encoded><![CDATA[<p>Keeping controls aligned can be tedious, but Visual Studio contains some features that make this easier.</p>
<p>To Align controls, by their edges or centers, select first the control that is in the correct position, then hold down the <strong><em>ctrl </em></strong>and select the controls you wish to align to it.</p>
<p><a href="http://kandysolutions.co.uk/wp-content/uploads/2012/02/Select-Controls.png"><img class="aligncenter size-medium wp-image-138" title="Select Controls" src="http://kandysolutions.co.uk/wp-content/uploads/2012/02/Select-Controls-300x148.png" alt="Click on controls in the forms designer to select them" width="300" height="148" /></a></p>
<p><a href="http://kandysolutions.co.uk/wp-content/uploads/2012/02/Align.png"><img class="aligncenter size-medium wp-image-139" title="Align" src="http://kandysolutions.co.uk/wp-content/uploads/2012/02/Align-300x151.png" alt="Align Controls" width="300" height="151" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://kandysolutions.co.uk/2012/02/14/how-to-layout-controls-in-visual-studio-win-forms-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crystal Reports Missing From Tool Box in Visual Studio 2010</title>
		<link>http://kandysolutions.co.uk/2012/02/10/crystal-reports-missing-from-tool-box-in-visual-studio-2010/</link>
		<comments>http://kandysolutions.co.uk/2012/02/10/crystal-reports-missing-from-tool-box-in-visual-studio-2010/#comments</comments>
		<pubDate>Fri, 10 Feb 2012 21:48:08 +0000</pubDate>
		<dc:creator>Amogford</dc:creator>
				<category><![CDATA[Technical Problems]]></category>

		<guid isPermaLink="false">http://kandysolutions.co.uk/?p=128</guid>
		<description><![CDATA[How to Fix Missing Crystal Reports Viewer In Toolbox for Visual Studio 2010 Crystal Reports has long been associated with Visual Basic, and Visual Studio, I used it way back in 1994 along with Visual Basic. But it does not<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://kandysolutions.co.uk/2012/02/10/crystal-reports-missing-from-tool-box-in-visual-studio-2010/">Read more &#8250;</a></div><!-- end of .read-more -->]]></description>
				<content:encoded><![CDATA[<p>How to Fix Missing Crystal Reports Viewer In Toolbox for Visual Studio 2010</p>
<p>Crystal Reports has long been associated with Visual Basic, and Visual Studio, I used it way back in 1994 along with Visual Basic.</p>
<p>But it does not always appear in the toolbox for Visual Studio 2010. This happened to me a few times, and I find the following steps always fix it.</p>
<p>This is the answer, in Project properties\compile\advanced compile options, if the settings is <strong>.net Frame Work 4.0 Client Profile </strong>then it needs to change to .net Frame Work 4.0</p>
<p>&nbsp;</p>
<p><a href="http://kandysolutions.co.uk/wp-content/uploads/2012/02/Advanced-Compile-Options.png"><img class="aligncenter size-medium wp-image-129" title="Advanced Compile Options" src="http://kandysolutions.co.uk/wp-content/uploads/2012/02/Advanced-Compile-Options-300x242.png" alt="Advanced Compile Options" width="300" height="242" /></a></p>
<p>Below is the corrected settings, (corrected that is if you need Crystal Reports Viewer control in your toolbox)</p>
<p><a href="http://kandysolutions.co.uk/wp-content/uploads/2012/02/Advanced-Compile-Options-correct.png"><img class="aligncenter size-medium wp-image-132" title="Advanced Compile Options correct" src="http://kandysolutions.co.uk/wp-content/uploads/2012/02/Advanced-Compile-Options-correct-300x225.png" alt="Advanced Compile Options correct settings, .Net Framework 4.0" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://kandysolutions.co.uk/2012/02/10/crystal-reports-missing-from-tool-box-in-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visual Studio Report Designer &#8211; Adding a new Column to a dataset</title>
		<link>http://kandysolutions.co.uk/2012/01/29/visual-studio-report-designer-adding-a-new-column-to-a-dataset/</link>
		<comments>http://kandysolutions.co.uk/2012/01/29/visual-studio-report-designer-adding-a-new-column-to-a-dataset/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 20:56:31 +0000</pubDate>
		<dc:creator>Amogford</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kandysolutions.co.uk/?p=116</guid>
		<description><![CDATA[There is a problem in Visual Studio 2010 Report Viewer and Datasets. Problem: If you create a VS report by manually or by using the wizard, and configure a dataset based on a stored procedure, then later modify the stored<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://kandysolutions.co.uk/2012/01/29/visual-studio-report-designer-adding-a-new-column-to-a-dataset/">Read more &#8250;</a></div><!-- end of .read-more -->]]></description>
				<content:encoded><![CDATA[<p>There is a problem in Visual Studio 2010 Report Viewer and Datasets.</p>
<p>Problem:</p>
<p>If you create a VS report by manually or by using the wizard, and configure a dataset based on a stored procedure, then later modify the stored procedure to include new columns, these are not picked up in the report designer.</p>
<p>I repeated these steps several times and all with the same result. I was able to configure the dataset, and get that to recognise the new fields, but in the report editor, it did not include them in the fields list.</p>
<p>WORKAROUND</p>
<p>This is what I found, in visual studio, solution explorer, right click the report and choose <strong>Open With, </strong></p>
<p>Choose, XML editor</p>
<p>The in the editor, look for the fields list, and manually add your new fields in, making sure you get the name exactly right, and the correct datatype.</p>
<p style="text-align: center;"><a href="http://kandysolutions.co.uk/wp-content/uploads/2012/01/Configure-Report-to-include-new-column.png"><img class="aligncenter size-full wp-image-118" title="Configure Report to include new column" src="http://kandysolutions.co.uk/wp-content/uploads/2012/01/Configure-Report-to-include-new-column.png" alt="Configure Report to include new column" width="955" height="478" /></a></p>
<p> This is what it looks like in the xml editor, you can see the list of fields.</p>
<div id="attachment_121" class="wp-caption aligncenter" style="width: 1034px"><a href="http://kandysolutions.co.uk/wp-content/uploads/2012/01/Report-in-xml-editor.png"><img class="size-large wp-image-121" title="Report in xml editor" src="http://kandysolutions.co.uk/wp-content/uploads/2012/01/Report-in-xml-editor-1024x446.png" alt="Report rdlc file opened in xml editor" width="1024" height="446" /></a><p class="wp-caption-text">Report rdlc file opened in xml editor</p></div>
]]></content:encoded>
			<wfw:commentRss>http://kandysolutions.co.uk/2012/01/29/visual-studio-report-designer-adding-a-new-column-to-a-dataset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Report Viewer Error: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints</title>
		<link>http://kandysolutions.co.uk/2012/01/29/report-viewer-error-failed-to-enable-constraints-one-or-more-rows-contain-values-violating-non-null-unique-or-foreign-key-constraints/</link>
		<comments>http://kandysolutions.co.uk/2012/01/29/report-viewer-error-failed-to-enable-constraints-one-or-more-rows-contain-values-violating-non-null-unique-or-foreign-key-constraints/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 18:00:08 +0000</pubDate>
		<dc:creator>Amogford</dc:creator>
				<category><![CDATA[Technical Problems]]></category>

		<guid isPermaLink="false">http://kandysolutions.co.uk/?p=111</guid>
		<description><![CDATA[Got this error when running a report in report viewer. The query ran fine in SQL Server. The report would also show when refreshed. I found the answer was to open the dataset the report was based on, find the<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://kandysolutions.co.uk/2012/01/29/report-viewer-error-failed-to-enable-constraints-one-or-more-rows-contain-values-violating-non-null-unique-or-foreign-key-constraints/">Read more &#8250;</a></div><!-- end of .read-more -->]]></description>
				<content:encoded><![CDATA[<p><a href="http://kandysolutions.co.uk/wp-content/uploads/2012/01/Key.png"><img class="alignright size-full wp-image-112" title="Data Set Key" src="http://kandysolutions.co.uk/wp-content/uploads/2012/01/Key.png" alt="" width="396" height="310" /></a>Got this error when running a report in report viewer. The query ran fine in SQL Server.</p>
<p>The report would also show when refreshed.</p>
<p>I found the answer was to open the dataset the report was based on, find the column maked as a key &#8211; (see picture) and delete the key</p>
<p>The report then ran fine.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://kandysolutions.co.uk/2012/01/29/report-viewer-error-failed-to-enable-constraints-one-or-more-rows-contain-values-violating-non-null-unique-or-foreign-key-constraints/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
