<?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>Team Tutorials &#187; express edition</title>
	<atom:link href="http://teamtutorials.com/tag/express-edition/feed" rel="self" type="application/rss+xml" />
	<link>http://teamtutorials.com</link>
	<description></description>
	<lastBuildDate>Tue, 27 Dec 2011 18:58:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Configuring Authentication on MS SQL 2008</title>
		<link>http://teamtutorials.com/database-tutorials/configuring-authentication-on-ms-sql-2008?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=configuring-authentication-on-ms-sql-2008</link>
		<comments>http://teamtutorials.com/database-tutorials/configuring-authentication-on-ms-sql-2008#comments</comments>
		<pubDate>Sat, 22 Nov 2008 09:59:51 +0000</pubDate>
		<dc:creator>Mike Maguire</dc:creator>
				<category><![CDATA[Database Tutorials]]></category>
		<category><![CDATA[Microsoft SQL 2008]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[express edition]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://teamtutorials.com/?p=1732</guid>
		<description><![CDATA[This tutorial will walk you through configuring your SQL server with credentials for applications and users to connect with. This will allow you to determine who has what type of access as well as how they can update the tables in the database. ]]></description>
			<content:encoded><![CDATA[<p>This tutorial will walk you through configuring you server with credentials for applications and users to connect with. This will allow you to determine who has what type of access as well as how they can update the tables in the database. </p>
<p>	First you need to decide which method you are going to use to give users access to the database. The first (and slightly less secure way) is to create an actual login for each person going to use the database. This will require you to get the users credentials in a form before attempting a connection to the database. The alternative to this method is to create only on login for a specific application and then create a table with an encrypted field for the password for the users. Then when the application connects to the database (using the credentials you created every time), it will look into a table to see if the credentials the user supplied are correct. I will walk you though both methods in this tutorial. Both steps require you to start from the beginning. Let’s get started.</p>
<p>First let’s open our Microsoft SQL Server Management Studio by going to Start->Programs->Microsoft SQL Server 2008->Microsoft SQL Server Management Studio.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_01.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_01.jpg" alt="" title="configuring_authentication_for_mssql_2008_01" width="337" height="336" class="alignnone size-medium wp-image-1733" /></a></p>
<p>Once in, you should see a pane to the left of the window that looks like the above image. Expand the Security group.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_02.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_02.jpg" alt="" title="configuring_authentication_for_mssql_2008_02" width="337" height="336" class="alignnone size-medium wp-image-1735" /></a></p>
<p>You screen should now look like above.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_03.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_03.jpg" alt="" title="configuring_authentication_for_mssql_2008_03" width="334" height="332" class="alignnone size-medium wp-image-1736" /></a></p>
<p>Right-click on the logins group and select new login. </p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_04.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_04.jpg" alt="" title="configuring_authentication_for_mssql_2008_04" width="700" height="628" class="alignnone size-medium wp-image-1737" /></a></p>
<p>You will then be presented the above screen. This is the screen we will use to configure the user to have access to the database.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_05.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_05.jpg" alt="" title="configuring_authentication_for_mssql_2008_05" width="700" height="628" class="alignnone size-medium wp-image-1738" /></a></p>
<p>Fill in the login name with what you want the username to be. If you are using the table method for authenticating, it is common practice to name this something like “appname_login” where appname is the name of your application that is connecting to it. Select the SQL Server Authentication radial button. Now you need to type in the password you want that user to start out with in the boxes provided twice. Then select whether they will be forced to adhere to password policies (change x amount of days, certain length, certain types of text, ect…), and password expirations. Also check the box if you want the user to have to change there password the next time they log-on. Finally select the default database (which in this case is TT) and select the default language. </p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_06.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_06.jpg" alt="" title="configuring_authentication_for_mssql_2008_06" width="700" height="628" class="alignnone size-medium wp-image-1739" /></a></p>
<p>Now, in the left pane, click on User Mapping and check the box for the database we want the user to have access to and then select the access type from the bottom window on the right that you want them to have.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_07.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_07.jpg" alt="" title="configuring_authentication_for_mssql_2008_07" width="337" height="336" class="alignnone size-medium wp-image-1740" /></a></p>
<p>Now if you expand the Login directory you will see the user we just created. The user will also appear listed under the users group that is under the security group of TT since we mapped his credentials to that database. Simply do this for each user that you want to have access to the database if you are using the login for each user method. If you do not want to use the table method, you can discontinue reading here as the remaining steps will be fore creating a table for credentials and how to set it up.  There are two ways to create a table, you can do it in the Graphical Interface, or you can write the script yourself. What I would recommend if you are new to SQL is to create it in the graphical interface and then view the code that it creates so that you can get an understanding of what the commands and syntax of SQL are. Let’s do it in the graphical interface:</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_08.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_08.jpg" alt="" title="configuring_authentication_for_mssql_2008_08" width="553" height="494" class="alignnone size-medium wp-image-1741" /></a></p>
<p>Expand the databases collection, and then expand your database that you created. Once you do that right click on the table collections and select New Table…</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_09.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_09.jpg" alt="" title="configuring_authentication_for_mssql_2008_09" width="139" height="316" class="alignnone size-medium wp-image-1742" /></a></p>
<p>Once the information loads, you will see a properties window to the right that will allow you to name the table. Name it something like ‘Users’ or ‘Credentials’. Once you do that we need to fill out the information for the table.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_10.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_10.jpg" alt="" title="configuring_authentication_for_mssql_2008_10" width="368" height="127" class="alignnone size-medium wp-image-1743" /></a></p>
<p>To create the info just begin typing in the appropriate box. Once you insert information into the box and move to the next field, the builder will auto-create the next line(column for the table). Make three columns to match what I have above. This will allow us to store the username, password, as role as a role for the user. This will allow us to use this field in our application to determine what the users can and can’t do easier. Also note that I have made the length of the password 255 characters. This is because I intend to encrypt the password that goes into this field which will take up more characters than required. I will cover this in a future tutorial.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_11.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_11.jpg" alt="" title="configuring_authentication_for_mssql_2008_11" width="406" height="346" class="alignnone size-medium wp-image-1744" /></a></p>
<p>Now that we have finished making our changes we can save the table but first let’s take a look at the code that this is going to generate. Right-click anywhere on the editor window and a menu will pop-up allowing you to select ‘Generate Change Script…’. </p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_12.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_12.jpg" alt="" title="configuring_authentication_for_mssql_2008_12" width="455" height="372" class="alignnone size-medium wp-image-1745" /></a></p>
<p>Once you select that menu option, the above window will appear with the script that the system would run to create the table. Look over it and try to understand what they do. Look the commands up in the help file and Google them to see what they do. This will be a good way to understand the commands. You can copy and paste this information into an SQL file and run it to create the table. Click on No to close the window once you are done and you will be taken back to the original screen. </p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_13.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_13.jpg" alt="" title="configuring_authentication_for_mssql_2008_13" width="382" height="160" class="alignnone size-medium wp-image-1746" /></a></p>
<p>Once you have everything in the table we will need, we can right-click on the tab for the editor and select save. This will save the table to our database.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_14.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_14.jpg" alt="" title="configuring_authentication_for_mssql_2008_14" width="266" height="338" class="alignnone size-medium wp-image-1747" /></a></p>
<p>Once the file finishes saving you should see it in the tables folder if you expand it’s view as above.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_15.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_15.jpg" alt="" title="configuring_authentication_for_mssql_2008_15" width="267" height="412" class="alignnone size-medium wp-image-1748" /></a></p>
<p>Now we need to insert some info into the table. Right-click on our database and select New Query as pictured above.</p>
<p>The query to insert people in this table will be as follows: -Note- It is good practice to capitalize all SQL command and tables so that you get differentiate the text easily.</p>
<pre class="brush: sql; title: Code Snippet:; notranslate">
INSERT INTO DBName..TableName VALUES(‘UserName’,’Password’,’Role’)
</pre>
<p>For example, if I wanted to create a user in the table for me with the password of password123 and the role of Admin the query would look like this:</p>
<pre class="brush: sql; title: Code Snippet:; notranslate">
INSERT INTO TT..USERS VALUES('MMaguire','password123','Admin')
</pre>
<p>Type your query into the text box and click on the green play button on the top portion of the screen to run the query.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_16.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_16.jpg" alt="" title="configuring_authentication_for_mssql_2008_16" width="360" height="223" class="alignnone size-medium wp-image-1749" /></a></p>
<p>You should see this message if your query has been successfully ran. If not, please check your query for mistakes. Now we can do a select statement on the table to see our user that we just inserted.</p>
<pre class="brush: sql; title: Code Snippet:; notranslate">
SELECT * FROM TT..USERS
</pre>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_17.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/configuring_authentication_for_mssql_2008_17.jpg" alt="" title="configuring_authentication_for_mssql_2008_17" width="275" height="203" class="alignnone size-medium wp-image-1734" /></a></p>
<p>Once you run the select statement, the screen in the middle will show you the results returned as above. You can now do the above steps for each user (inserting them with the query). Once you do that your table is completed. This will conclude this tutorial. Next, we will look at using Visual Basic to call this table and verify a user has permissions.</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://teamtutorials.com/database-tutorials/configuring-and-creating-a-database-in-ms-sql-2008" title="Configuring and Creating a Database in MS SQL 2008">Configuring and Creating a Database in MS SQL 2008</a></li><li><a href="http://teamtutorials.com/windows-tutorials/installing-microsoft-sql-2008-express-edition" title="Installing Microsoft SQL 2008 Express Edition">Installing Microsoft SQL 2008 Express Edition</a></li><li><a href="http://teamtutorials.com/windows-tutorials/downloading-and-installing-heidi-sql" title="Downloading and Installing Heidi SQL">Downloading and Installing Heidi SQL</a></li><li><a href="http://teamtutorials.com/web-development-tutorials/sending-e-mail-to-validate-user-sign-up" title="Sending E-Mail to validate User Sign-up">Sending E-Mail to validate User Sign-up</a></li><li><a href="http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database" title="Creating a Form that will Search a MySQL Database">Creating a Form that will Search a MySQL Database</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://teamtutorials.com/database-tutorials/configuring-authentication-on-ms-sql-2008/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Configuring and Creating a Database in MS SQL 2008</title>
		<link>http://teamtutorials.com/database-tutorials/configuring-and-creating-a-database-in-ms-sql-2008?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=configuring-and-creating-a-database-in-ms-sql-2008</link>
		<comments>http://teamtutorials.com/database-tutorials/configuring-and-creating-a-database-in-ms-sql-2008#comments</comments>
		<pubDate>Tue, 11 Nov 2008 03:59:58 +0000</pubDate>
		<dc:creator>Mike Maguire</dc:creator>
				<category><![CDATA[Database Tutorials]]></category>
		<category><![CDATA[Microsoft SQL 2008]]></category>
		<category><![CDATA[express edition]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://teamtutorials.com/?p=1713</guid>
		<description><![CDATA[This tutorial will walk you through what you need to do to start using the <a href="http://teamtutorials.com/windows-tutorials/installing-microsoft-sql-2008-express-edition">installation of Microsoft SQL 2008 Express Edition</a> that we did in the last tutorial. We will need to configure the services to allow incoming connections and we will also go through creating the database as well as some tables to insert information.]]></description>
			<content:encoded><![CDATA[<p>This tutorial will walk you through what you need to do to start using the <a href="http://teamtutorials.com/windows-tutorials/installing-microsoft-sql-2008-express-edition">installation of Microsoft SQL 2008 Express Edition</a> that we did in the last tutorial. We will need to configure the services to allow incoming connections and we will also go through creating the database as well as some tables to insert information. Let’s get started. </p>
<p>First, it is important to note, that for security reasons, MS SQL comes with all connections via TCP/IP and Named Pipes disabled. Named pipes is a way for the connection to distinguish which instance of SQL you are trying to connect to (sort of like a port would act for TCP/IP).  Named Pipes is not a network protocol though. It is a type of transmission that occurs over TCP/IP. We will be working with TCP/IP connections in the tutorials on this site, so we will not be enabling named pipes connections, however, when the point comes that you would do that, I will make note of it for you.</p>
<p>	The first thing we need to configure are the connection properties that tell our server how people will be connecting to it. To do this we need to use the SQL Server Configuration Manager.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_01.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_01.jpg" alt="" title="database_configuration_and_creation_01" width="700" height="313" class="alignnone size-medium wp-image-1715" /></a></p>
<p>Goto Start ->All Programs -> Microsoft SQL Server 2008->Configuration Tools->SQL Server Configuration Manager.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_02.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_02.jpg" alt="" title="database_configuration_and_creation_02" width="527" height="351" class="alignnone size-medium wp-image-1716" /></a></p>
<p>This window will come up. This is the tool that allows you to configure how application will “talk” with your server. You will see the SQL Server Network Configuration category with a plus next to it. Expand this field.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_03.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_03.jpg" alt="" title="database_configuration_and_creation_03" width="527" height="351" class="alignnone size-medium wp-image-1717" /></a></p>
<p>In here you will see a category called Protocols for “your instance name here”. Whatever you called the instance you created during the installation will show there. By default it is called SQLExpress. Select this category and the pane to the right will populate with the connection setting for that instance. (Note – if you have more than once instance installed, each instance will have it’s own category under SQL Server Network Configuration)</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_04.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_04.jpg" alt="" title="database_configuration_and_creation_04" width="526" height="346" class="alignnone size-medium wp-image-1718" /></a></p>
<p>All you need to do to enable the connections to the server is right-click on TCP/IP and click on enable. </p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_05.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_05.jpg" alt="" title="database_configuration_and_creation_05" width="605" height="126" class="alignnone size-medium wp-image-1719" /></a></p>
<p>This window will pop up to alert you that your changes will not take effect until we restart the service for this particular instance that we are modifying. Next, select the option in the left pane that says SQL Server Service.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_06.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_06.jpg" alt="" title="database_configuration_and_creation_06" width="527" height="351" class="alignnone size-medium wp-image-1720" /></a></p>
<p>This pane show you the services for all instances that are currently on your machine. Right now, we only have the three since we only have on instance installed. The SQL Server Browser is used across all instances but each instance will have an SQL Server and SQL Server Agent. All we need to do to make our TCP/IP changes take effect is to restart the SQL Server.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_07.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_07.jpg" alt="" title="database_configuration_and_creation_07" width="526" height="349" class="alignnone size-medium wp-image-1721" /></a></p>
<p>To restart the service simply right-click on it and select restart; a screen will appear that show you the progress of stopping the service and then starting it back up. After it does that, you can close out of that window as we are done with it. Next, we need to create the database that we will be using. To do this we are going to use one of the included tools that came with the software: SQL Server Management Studio.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_08.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_08.jpg" alt="" title="database_configuration_and_creation_08" width="573" height="369" class="alignnone size-medium wp-image-1722" /></a></p>
<p>Start->All Programs->Microsoft SQL Server 2008->SQL Server Management Studio</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_09.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_09.jpg" alt="" title="database_configuration_and_creation_09" width="416" height="315" class="alignnone size-medium wp-image-1723" /></a></p>
<p>This screen will come up asking for authentication. You will need to be logged in as the user you added during installation in order for windows authentication to go through. The first thing we need to do in here, is create out database that we will be using. </p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_10.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_10.jpg" alt="" title="database_configuration_and_creation_10" width="699" height="500" class="alignnone size-medium wp-image-1724" /></a></p>
<p>This is the main window of the management studio. </p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_11.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_11.jpg" alt="" title="database_configuration_and_creation_11" width="698" height="500" class="alignnone size-medium wp-image-1725" /></a></p>
<p>To create our database, right-click on the Databases folder and click on New Database.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_12.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_12.jpg" alt="" title="database_configuration_and_creation_12" width="700" height="628" class="alignnone size-medium wp-image-1726" /></a></p>
<p>This screen let’s you configure and name your database. All we need to do is select a name for our database and type it in. I called mine ‘TeamTutorials’. Click on OK to create the database.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_13.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_13.jpg" alt="" title="database_configuration_and_creation_13" width="699" height="500" class="alignnone size-medium wp-image-1727" /></a></p>
<p>Now in our Management Studio if we expand the Databases folder, we will see our database that we created in there. Next we are going to change a setting that will be helpful down the road. </p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_14.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_14.jpg" alt="" title="database_configuration_and_creation_14" width="697" height="491" class="alignnone size-medium wp-image-1728" /></a></p>
<p>At the top of the window, click on Tools and select Options from the menu. </p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_15.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/database_configuration_and_creation_15.jpg" alt="" title="database_configuration_and_creation_15" width="644" height="382" class="alignnone size-medium wp-image-1714" /></a></p>
<p>This window will appear, click on the designers category (you do not need to expand the field). Once you are there un-check the box next to “Prevent saving changes that require table re-creation.” This will allow you to make changes to your tables after you have built them and put data in them. This is more of a protective measure than anything. Just to be safe, I wouldn’t recommend turning this off if you plan on keep very private or important information in the database that you can’t afford to lose. Next we need to create the tables we will be using. Our tool here will allow us to create them using a graphical interface so you don’t have to write any code, this is acceptable but I might recommend at least keeping the scripts it generates for reference. This way if you need to do it again sometime, you can just run the script to create the database and make changes as necessary. We will cover creating the tables and setting them up in a way that suites our needs in the next tutorial. I hope this tutorial was easy to follow and helps you. Thanks for reading.</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://teamtutorials.com/database-tutorials/configuring-authentication-on-ms-sql-2008" title="Configuring Authentication on MS SQL 2008">Configuring Authentication on MS SQL 2008</a></li><li><a href="http://teamtutorials.com/windows-tutorials/installing-microsoft-sql-2008-express-edition" title="Installing Microsoft SQL 2008 Express Edition">Installing Microsoft SQL 2008 Express Edition</a></li><li><a href="http://teamtutorials.com/windows-tutorials/downloading-and-installing-heidi-sql" title="Downloading and Installing Heidi SQL">Downloading and Installing Heidi SQL</a></li><li><a href="http://teamtutorials.com/web-development-tutorials/sending-e-mail-to-validate-user-sign-up" title="Sending E-Mail to validate User Sign-up">Sending E-Mail to validate User Sign-up</a></li><li><a href="http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database" title="Creating a Form that will Search a MySQL Database">Creating a Form that will Search a MySQL Database</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://teamtutorials.com/database-tutorials/configuring-and-creating-a-database-in-ms-sql-2008/feed</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Installing Microsoft SQL 2008 Express Edition</title>
		<link>http://teamtutorials.com/windows-tutorials/installing-microsoft-sql-2008-express-edition?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-microsoft-sql-2008-express-edition</link>
		<comments>http://teamtutorials.com/windows-tutorials/installing-microsoft-sql-2008-express-edition#comments</comments>
		<pubDate>Sun, 09 Nov 2008 05:19:53 +0000</pubDate>
		<dc:creator>Mike Maguire</dc:creator>
				<category><![CDATA[Programming Tutorials]]></category>
		<category><![CDATA[Windows Tutorials]]></category>
		<category><![CDATA[express edition]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://teamtutorials.com/?p=1688</guid>
		<description><![CDATA[This tutorial will walk you through installing Microsoft’s SQL Server 2008 Express Edition. This will allow us to create a database and start writing more advanced applications in Visual Basic that require a database. ]]></description>
			<content:encoded><![CDATA[<p>This tutorial will walk you through installing Microsoft’s SQL Server 2008 Express Edition. This will allow us to create a database and start writing more advanced applications in Visual Basic that require a database. Microsoft has the express edition available free for download at <a href="http://www.microsoft.com/sqlserver/2008/en/us/express.aspx">http://www.microsoft.com/sqlserver/2008/en/us/express.aspx</a> . This version will allow you to do anything you will need for most personal and small business databases. The database size is limited to 4 gigs but most small business and stuff won&#8217;t even get close to that. If that is too small for you, you should really consider buying the software. Let’s get started. </p>
<p>***NOTE*** The first several steps are only required if you don’t have .NET 3.5 installed on your machine already. There is also extra windows (not all of which are pictured in this tutorial) for PowerShell and Windows Installer 4.5. It won’t require you to download them and install it if you already have them.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_01.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_01.jpg" alt="" title="installing_ms_sql_2008_express_01" width="358" height="180" class="alignnone size-medium wp-image-1690" /></a></p>
<p>Once you are at the pager, click on the Free Download button and it will take you to a login page. You need to register or already have a live account. It is free to register so go ahead. Once you get past that and log in, it will ask you to verify some information Once you verify the information and click on continue you will go to the download page.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_02.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_02.jpg" alt="" title="installing_ms_sql_2008_express_02" width="338" height="90" class="alignnone size-medium wp-image-1691" /></a></p>
<p>Near the top of the download page, you should see the download now image. Click on this to begin the download. This will download a 605 kilobyte file that will download and install the software for you. Once this file downloads, launch it and you can start the installation process.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_03.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_03.jpg" alt="" title="installing_ms_sql_2008_express_03" width="378" height="459" class="alignnone size-medium wp-image-1692" /></a></p>
<p>You will be given a window that has the EULA for .NET Framework 3.5. Review this document and agree to continue. </p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_04.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_04.jpg" alt="" title="installing_ms_sql_2008_express_04" width="452" height="185" class="alignnone size-medium wp-image-1693" /></a></p>
<p>Next, this window will appear and start downloading the .Net Framework.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_05.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_05.jpg" alt="" title="installing_ms_sql_2008_express_05" width="452" height="185" class="alignnone size-medium wp-image-1694" /></a></p>
<p>Once you are done downloading, it will automatically begin installing it for you.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_06.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_06.jpg" alt="" title="installing_ms_sql_2008_express_06" width="493" height="168" class="alignnone size-medium wp-image-1695" /></a></p>
<p>This window will come up during the process….this part may take some time, so please be patient and let it complete. </p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_07.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_07.jpg" alt="" title="installing_ms_sql_2008_express_07" width="452" height="185" class="alignnone size-medium wp-image-1696" /></a></p>
<p>You will get the above window alerting you that your machine must be rebooted before continuing. Save and close out of anything you are doing (and bookmark this page to come back an finish) and the give it the ok to reboot. Once windows reboots it may or may not restart the installation. If it doesn’t, just click on the setup icon and it will resume.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_08.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_08.jpg" alt="" title="installing_ms_sql_2008_express_08" width="381" height="178" class="alignnone size-medium wp-image-1697" /></a></p>
<p>It should begin to download another file like shown above. Just download the file and then run it to resume the rest of the installation. </p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_091.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_091.jpg" alt="" title="installing_ms_sql_2008_express_091" width="536" height="402" class="alignnone size-medium wp-image-1711" /></a></p>
<p>This window lets you pick which version you want to install. The options for additional services and with tools both will also install Windows PowerShell which is a scripting utility. I am going to go with the tools as well. This will give us the manager which will allow us to create databases, columns, and information.  Click on install to begin installing the needed software.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_10.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_10.jpg" alt="" title="installing_ms_sql_2008_express_10" width="536" height="402" class="alignnone size-medium wp-image-1699" /></a></p>
<p>This window will then come up and show you the progress of your install. You will then be prompted to restart your computer. Tell it to restart again. Once you reboot it will come back to the installation screen and continue installing again. </p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_11.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_11.jpg" alt="" title="installing_ms_sql_2008_express_11" width="700" height="525" class="alignnone size-medium wp-image-1700" /></a></p>
<p>This screen will appear and test your machine to make sure it can run SQL 2008. If anything in here fails, it will need to be resolved before installation can continue.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_12.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_12.jpg" alt="" title="installing_ms_sql_2008_express_12" width="700" height="525" class="alignnone size-medium wp-image-1701" /></a></p>
<p>This screen is were you select what type of install you want to use but seeing as we downloaded the express edition that is already marked for us and it is all grayed out. Just go ahead and click next.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_13.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_13.jpg" alt="" title="installing_ms_sql_2008_express_13" width="700" height="525" class="alignnone size-medium wp-image-1702" /></a></p>
<p>This screen gives us the Terms of Service for SQL 2008. Read and understand these terms and check to box saying that you agree with them. Once you have done that, click on next to continue.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_14.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_14.jpg" alt="" title="installing_ms_sql_2008_express_14" width="700" height="525" class="alignnone size-medium wp-image-1703" /></a></p>
<p>This window shows you what needs to be installed for everything to work. Click on install to begin the process.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_15.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_15.jpg" alt="" title="installing_ms_sql_2008_express_15" width="700" height="525" class="alignnone size-medium wp-image-1704" /></a></p>
<p>This screen lets you pick extra features that you can install if you would like. For this tutorial I am selecting all of them. Click the select all button and then click next to continue.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_16.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_16.jpg" alt="" title="installing_ms_sql_2008_express_16" width="700" height="525" class="alignnone size-medium wp-image-1705" /></a></p>
<p>This screen lets you pick the name of the instance and where to put it. An instance name will allow you to install several different instances of SQL and call them independently. You can name it anything you would like. Click next to continue.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_17.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_17.jpg" alt="" title="installing_ms_sql_2008_express_17" width="700" height="525" class="alignnone size-medium wp-image-1706" /></a></p>
<p>This screen checks to ensure you have enough hard drive space for the installation to continue. Click next to continue.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_18.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_18.jpg" alt="" title="installing_ms_sql_2008_express_18" width="700" height="525" class="alignnone size-medium wp-image-1707" /></a></p>
<p>This window let’s you pick what account on your computer should run the service for the SQL server. Select the system account for the top service and make sure that both of them are set to automatic.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_19.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_19.jpg" alt="" title="installing_ms_sql_2008_express_19" width="700" height="525" class="alignnone size-medium wp-image-1708" /></a></p>
<p>This window lets you pick whether you want to authenticate users using windows authentication or using database credentials separately. Check the box that uses both and add you current user for the windows part and then type in the password twice that you want to be associated to the built-in database administrators account.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_20.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_20.jpg" alt="" title="installing_ms_sql_2008_express_20" width="700" height="525" class="alignnone size-medium wp-image-1709" /></a></p>
<p>This windows lets you select whether or not you would like to send error messages to Microsoft for reporting. You can also opt to send operating information to Microsoft to help them make better products. Click next and it will go through another system check to ensure more things are ready for the install. Click next on that screen as well.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_21.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_21.jpg" alt="" title="installing_ms_sql_2008_express_21" width="700" height="525" class="alignnone size-medium wp-image-1710" /></a></p>
<p>This window reviews all of the configuration options that we selected. Make sure everything looks the same as it should and then click next to finish the installation process.</p>
<p><a href="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_22.jpg"><img src="http://teamtutorials.com/wp-content/uploads/2008/11/installing_ms_sql_2008_express_22.jpg" alt="" title="installing_ms_sql_2008_express_22" width="700" height="525" class="alignnone size-medium wp-image-1689" /></a></p>
<p>This screen shows the installation process and will continue once the installation is completed. Click next to go to the final screen. The final screen gives you some information that may be helpful to you so read through it. Click on close once you are finished. I hope this tutorial was easy to follow and you learned from it. Next tutorial will walk you through configuring your database for access and creating the tables for it as well. </p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://teamtutorials.com/database-tutorials/configuring-authentication-on-ms-sql-2008" title="Configuring Authentication on MS SQL 2008">Configuring Authentication on MS SQL 2008</a></li><li><a href="http://teamtutorials.com/database-tutorials/configuring-and-creating-a-database-in-ms-sql-2008" title="Configuring and Creating a Database in MS SQL 2008">Configuring and Creating a Database in MS SQL 2008</a></li><li><a href="http://teamtutorials.com/windows-tutorials/downloading-and-installing-heidi-sql" title="Downloading and Installing Heidi SQL">Downloading and Installing Heidi SQL</a></li><li><a href="http://teamtutorials.com/web-development-tutorials/sending-e-mail-to-validate-user-sign-up" title="Sending E-Mail to validate User Sign-up">Sending E-Mail to validate User Sign-up</a></li><li><a href="http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database" title="Creating a Form that will Search a MySQL Database">Creating a Form that will Search a MySQL Database</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://teamtutorials.com/windows-tutorials/installing-microsoft-sql-2008-express-edition/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

