<?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>Net developer &gt; Metasys Software Pvt Ltd.</title>
	<atom:link href="https://www.metasyssoftware.com/tag/net-developer/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.metasyssoftware.com</link>
	<description>Unique People, Unique Solutions</description>
	<lastBuildDate>Mon, 27 May 2024 10:43:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.metasyssoftware.com/wp-content/uploads/2023/10/metasys-svg-.png</url>
	<title>Net developer &gt; Metasys Software Pvt Ltd.</title>
	<link>https://www.metasyssoftware.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to use a Database project in .NET Visual Studio?</title>
		<link>https://www.metasyssoftware.com/microsoft-technologies/dotnetsqlproject/</link>
		
		<dc:creator><![CDATA[meta_prasad]]></dc:creator>
		<pubDate>Tue, 23 Mar 2021 07:47:42 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[Outsourcing DotNet services]]></category>
		<category><![CDATA[Dot Net application development]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[SQL SERVER]]></category>
		<category><![CDATA[dot net development company]]></category>
		<category><![CDATA[dot net programmer]]></category>
		<category><![CDATA[Dot Net developers]]></category>
		<category><![CDATA[Net developer]]></category>
		<guid isPermaLink="false">https://www.metasyssoftware.com/?p=3502</guid>

					<description><![CDATA[<p>Introduction The Database plays a vital role in any web or windows application development. The Database project can be used [&#8230;]</p>
The post <a href="https://www.metasyssoftware.com/microsoft-technologies/dotnetsqlproject/">How to use a Database project in .NET Visual Studio?</a> appeared first on <a href="https://www.metasyssoftware.com">Metasys Software Pvt Ltd.</a>.]]></description>
										<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>The Database plays a vital role in any web or windows application development. The Database project can be used to maintain the repository of the schema changes.</p>
<h2><strong>Why do we need a Database project?</strong></h2>
<p>While developing any application, the developer has to work on many database tasks such as creating tables, triggers, stored procedures, functions, etc. It is difficult to manage the scripts at the time of deployment. Also, it is tedious to review the changes made by the developer during development. The database project in Visual studio addresses these issues.</p>
<h2><strong>How to create a database project?</strong></h2>
<ol>
<li>Create a new project in visual studio. Select the <a href="https://www.metasyssoftware.com/php-mysql">SQL Server</a> Database Project, as shown below.</li>
</ol>
<p><img fetchpriority="high" decoding="async" class="aligncenter wp-image-3503 size-full" title="New project " src="https://www.metasyssoftware.com/wp-content/uploads/New-project-1.png" alt="New project " width="601" height="343" /></p>
<p>2. Right-click on the project and select Import????Database</p>
<p><img decoding="async" class="aligncenter wp-image-3504 size-full" title="Importing database " src="https://www.metasyssoftware.com/wp-content/uploads/Importing-database-2.png" alt="Importing database " width="601" height="624" /></p>
<p>3. After this, you get one popup as follows. Click on ‘Select Connection…’ option to import the database.</p>
<p><img decoding="async" class="aligncenter wp-image-3505 size-full" title="Import database " src="https://www.metasyssoftware.com/wp-content/uploads/Import-database-3.png" alt="Import database " width="601" height="497" /></p>
<p>4. You will receive another popup to select the connection properties of your database. After entering the credentials (and authenticating successfully), you will get the dropdown filled with a list of databases on  the SQL server. Select the database for which you are creating the project.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3506 size-full" title="Connection properties " src="https://www.metasyssoftware.com/wp-content/uploads/Connection-properties-4.png" alt="Connection properties " width="495" height="597" /></p>
<p>5. Once you click on ‘Connect’, you will notice all the tables, procedures, functions, etc. which will get imported.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3507 size-full" title="Import database summary " src="https://www.metasyssoftware.com/wp-content/uploads/Import-database-summary-5.png" alt="Import database summary " width="603" height="501" /></p>
<p>6. Check solution explorer for your database related artefacts.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3508 size-full" title="Solution explorer " src="https://www.metasyssoftware.com/wp-content/uploads/Solution-explorer-6.png" alt="Solution explorer " width="363" height="555" /></p>
<p>7. Now compare your project schema with the database schema after performing modifications to the database. Right-click on the solution and select Schema compare, as shown below.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3509 size-full" title="Database demo " src="https://www.metasyssoftware.com/wp-content/uploads/Database-demo-7.png" alt="Database demo " width="601" height="339" /></p>
<p>As you can see in the above image, there are two sections Source and Target.</p>
<p>Source: If you have made any changes in the database and you want to compare those on the target, then select the database name. If however, you have made changes in the database project that you want to compare with the database, then select your project path.</p>
<p>Target: It will always be with the source which will be compared. If you want, you can swap Source and Target. Once selected, click on ‘Compare’ to compare Source and Target schemas.</p>
<p>8. For example, I have added the Enquiry table in the database; Clicking on Compare allows you to see a list of modifications.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3510 size-full" title="Database demo 8" src="https://www.metasyssoftware.com/wp-content/uploads/Database-demo-8.png" alt="Database demo 8" width="602" height="338" /></p>
<p>The Action column in the above image is displayed if the changes are new or if there are any updates or deletions in the schema.</p>
<p>When you check the box and click on ‘Update’, all the changes will be applied to Target.</p>
<p>9. Now if you have made any changes in the database project and you want to execute those on the Production UAT database, then execute it in the same way as shown above.</p>
<p>10. In order to create the scripts for the changes, then compare the Database project with the Target Database. Then click on ‘Generate Scripts’.</p>
<h2><strong>Merits and Demerits of Database Project:</strong></h2>
<h3><strong>Merits:</strong></h3>
<ol>
<li>DDL (Data Definition Language) is readily available for all the objects.</li>
<li>Deployment scripts can be easily generated.</li>
<li>A database project also includes designers for working with these files.</li>
<li>Version control can be done for the database through a series of check-in and check-outs for various operations performed on scripts and schema changes.</li>
<li><span style="font-size: 1rem;">Reviewing database changes is easier and allows  <a href="https://www.metasyssoftware.com/dot-net-development/">Dot Net developers </a></span><span style="font-size: 1rem;">to be more effective in terms of making changes and reviewing previous modifications done by team members.</span></li>
</ol>
<h3><strong>Demerits:</strong></h3>
<ol>
<li>Schema designing is not available.</li>
<li>References to external database sources cannot be created in the database project.</li>
<li>The Visual studio database project only supports the SQL Server.</li>
</ol>The post <a href="https://www.metasyssoftware.com/microsoft-technologies/dotnetsqlproject/">How to use a Database project in .NET Visual Studio?</a> appeared first on <a href="https://www.metasyssoftware.com">Metasys Software Pvt Ltd.</a>.]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
