<?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>WinBlogs.... &#187; MSSQL</title>
	<atom:link href="http://www.winblogs.net/index.php/tag/mssql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.winblogs.net</link>
	<description>Just another Windows geek blog...</description>
	<lastBuildDate>Thu, 27 Oct 2011 21:56:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Remote MSSQL&#8230;oh, you imbecil! :)</title>
		<link>http://www.winblogs.net/index.php/2011/09/09/remote-mssql-oh-you-imbecil/</link>
		<comments>http://www.winblogs.net/index.php/2011/09/09/remote-mssql-oh-you-imbecil/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 08:00:09 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[access database]]></category>
		<category><![CDATA[error 916]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[mssql 2005]]></category>
		<category><![CDATA[mssql 2008]]></category>
		<category><![CDATA[mssql 2008r2]]></category>
		<category><![CDATA[mssql error]]></category>
		<category><![CDATA[remote mssql]]></category>
		<category><![CDATA[server principal]]></category>
		<category><![CDATA[The server principal “” is not able to access the database "” under the current security context.]]></category>
		<category><![CDATA[windows 2008]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=500</guid>
		<description><![CDATA[Not very often, you will get the following error: Error: The server principal “” is not able to access the database &#8220;” under the current security context. This is because the MS SQL Server is attempting to execute a SQL query to retrieve a list of databases along with  some other formation about those databases. [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p style="text-align: center;"><a href="http://www.winblogs.net/wp-content/uploads/2011/09/mssqlprincipal.png"><img class="aligncenter size-full wp-image-501" title="mssqlprincipal" src="http://www.winblogs.net/wp-content/uploads/2011/09/mssqlprincipal.png" alt="" width="567" height="189" /></a><a href="http://www.winblogs.net/wp-content/uploads/2011/09/mssqlprincipal.png"><br />
</a></p>
<p>Not very often, you will get the following error:</p>
<blockquote><p>Error:<br />
The server principal “” is not able to access the database &#8220;” under the current security context.</p></blockquote>
<p>This is because the MS SQL Server is attempting to execute a SQL query to retrieve a list of databases along with  some other formation about those databases. Some of  that information is “Collation”, which, ofcourse you don&#8217;t have permission to view for all databases, since  you’re in a shared hosting environment and you can only have access to your database..</p>
<p>Solution is pretty straight forward :<br />
1. In Object Explorer, click on Databases<br />
2. Display Object Explorer Details (F7) or View &gt; Object Explorer Details<br />
3. Right click the column headers and de-select “Collation”</p>
<p>4. Refresh Databases or reconnect to ste machine.</p>
<p>Thats it <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>Bye bye  <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="shr-publisher-500"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2011/09/09/remote-mssql-oh-you-imbecil/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SpamBots+bad application+SQL server = PROBLEMS!</title>
		<link>http://www.winblogs.net/index.php/2010/10/25/spambotsbad-applicationsql-server-problems/</link>
		<comments>http://www.winblogs.net/index.php/2010/10/25/spambotsbad-applicationsql-server-problems/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 18:45:19 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows and Powershell]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 2008]]></category>
		<category><![CDATA[windows 2008 r2]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=413</guid>
		<description><![CDATA[So&#8230;today I had a very interesting issue. All of a sudden Nagios went red with the message: CRITICAL : &#8211; total: 232.82 Gb &#8211; used: 212.67 Gb (91%) &#8211; free 20.15 Gb (9%) on one of our SQL server. I was like..&#8221;NO! It cannot be. I clearly remember that this machine had over 150 Gb [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>So&#8230;today I had a very interesting issue. All of a sudden Nagios went red with the message: <strong>CRITICAL : &#8211; total: 232.82 Gb &#8211; used: 212.67 Gb (91%) &#8211; free 20.15 Gb (9%)</strong> on one of our SQL server. I was like..&#8221;NO! It cannot be. I clearly remember that this machine had over 150 Gb of free space yesterday!&#8221;</p>
<p>I log in to the machine, and automatically go to the data folder of SQL server thinking that some customer has a HUGE! log file on his database; so, right click &#8211; Select All -&gt; Properties&#8230; only 50 Gbs of data&#8230;hmm&#8230;not here!</p>
<p>At that moment I notice that the server isnt &#8220;jumpy&#8221; as usual, so I start Performance monitor and see that the Avg. Disk Queue is off the chart! <strong> That definatelly isnt right&#8230;</strong></p>
<p>Since that machine is using Windows 2003, theres no too good way to see what application is using so much disk I/O ( beside FileMon ) , I start the FileMon and se that the SQL service is writing HUGE amount of data to its ERRORLOG file.</p>
<p>By navigating to the folder, I see that the ERRORLOG file is over 120 Gb big so opening it in Notepad, Context or some other file was out of the question, since it would kill the machine completely.</p>
<p>So, lets turn to powershell once more. In order to be sure to not kill the machine, since its in production , I have moved the file to an empty machine to opened it there.</p>
<p>Powershell : cat errorlog +ENTER <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  after that powershell started to list the entire content of the file, and it took about 15 mins until it reached the end. AMAZING</p>
<p>By examining the log, I notice ( it was hard to NOT notice it ) litterally millions of these entries:</p>
<p><strong>Could not allocate space for object &#8216;dbo.tblComments&#8217;.'tblComments&#8217; in database &#8216;DATABASEname&#8217; because the &#8216;PRIMARY&#8217; filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.</strong></p>
<p><strong>What happened here? </strong></p>
<p>The site that was using that database is poorly written and was allowing everyone to post comments on the articles without any security check, so it soon reached the size limit set on the database.  By further digging on the issue, I saw that the bots are posting about 4-5 comments each second which comes to about 18000 comments/hour&#8230;multiply that by 15-16 hours it took to fill the error log to that size, we roughly come to 280000 comments&#8230;that&#8217;s A LOT of comments! <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>After disabling the site and sending the email to the customer, situation on the machine looks like this :</p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2010/10/mssql.jpg"><img class="alignleft size-medium wp-image-414" title="mssql" src="http://www.winblogs.net/wp-content/uploads/2010/10/mssql-300x213.jpg" alt="" width="300" height="213" /></a></p>
<p><strong>The big drop on the green line is the moment where I disabled the problematic web site.</strong></p>
<div class="shr-publisher-413"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2010/10/25/spambotsbad-applicationsql-server-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automating backup of databases in SQL Express.</title>
		<link>http://www.winblogs.net/index.php/2009/11/22/automating-backup-of-databases-in-sql-20052008-express/</link>
		<comments>http://www.winblogs.net/index.php/2009/11/22/automating-backup-of-databases-in-sql-20052008-express/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 15:45:29 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows and Powershell]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[backup sql database]]></category>
		<category><![CDATA[backup sql express database]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[sql express]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 2008]]></category>
		<category><![CDATA[windows 2008 r2]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=224</guid>
		<description><![CDATA[Microsoft SQL Server 2005/2008 Express is a free edition of SQL Server that is ideal for learning, developing and powering desktop, web and small server applications, and for redistribution by ISVs. Top Features Supports stored procedures, triggers, functions, and views Store all kinds of business data with native support for relational data, XML, FILESTREAM and spatial [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.winblogs.net/wp-content/uploads/2009/11/mssql-logo.jpg"><img class="alignleft size-full wp-image-253" style="margin: 5px;" title="mssql-logo" src="http://www.winblogs.net/wp-content/uploads/2009/11/mssql-logo.jpg" alt="mssql-logo" width="122" height="73" /></a>Microsoft SQL Server 2005/2008 Express is a free edition of SQL Server that is ideal for learning, developing and powering desktop, web and small server applications, and for redistribution by ISVs.</p>
<h3>Top Features</h3>
<div>
<ul>
<li>Supports stored procedures, triggers, functions, and views</li>
<li>Store all kinds of business data with native support for relational data, XML, FILESTREAM and spatial data</li>
<li>Improved performance, usability, visualization, in addition to integration with the Microsoft 2007 Office System in SQL Server Reporting Services</li>
<li>Simplify development efforts by leveraging existing T-SQL skills, ADO.NET Entity Framework and LINQ</li>
<li>Closely integrated with Visual Studio and Visual Web Developer</li>
</ul>
<p>Because there&#8217;s no &#8220;SQL Agent&#8221; in SQL Express Editions, in order to create scheduled backups on SQL server Express edition, we need to user couple of tricks  <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<div><span id="more-224"></span></div>
<div>First, we need to have a query that will backup all databases to one folder&#8230; Well, here it is <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<p><code><br />
DECLARE @name VARCHAR(50) -- database name<br />
DECLARE @path VARCHAR(256) -- path for backup files<br />
DECLARE @fileName VARCHAR(256) -- filename for backup<br />
DECLARE @fileDate VARCHAR(20) -- used for file name<br />
SET @path = 'E:\sqlbackups\' --path to the backup folder<br />
SELECT @fileDate = CONVERT(VARCHAR(20),GETDATE(),112)<br />
DECLARE db_cursor CURSOR FOR<br />
SELECT name<br />
FROM master.dbo.sysdatabases<br />
WHERE name NOT IN ('tempdb')<br />
OPEN db_cursor<br />
FETCH NEXT FROM db_cursor INTO @name<br />
WHILE @@FETCH_STATUS = 0<br />
BEGIN<br />
SET @fileName = @path + @name + '_' + @fileDate + '.BAK'<br />
BACKUP DATABASE @name TO DISK = @fileName<br />
FETCH NEXT FROM db_cursor INTO @name<br />
END<br />
CLOSE db_cursor<br />
DEALLOCATE db_cursor</code></p>
<p>This will backup everything except the &#8220;Temdb&#8221; database. So, lets take a look at the current state of our backup folder.</p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2009/11/sqlbackup1.PNG"><img class="aligncenter size-medium wp-image-230" title="sqlbackup1" src="http://www.winblogs.net/wp-content/uploads/2009/11/sqlbackup1-300x99.PNG" alt="sqlbackup1" width="300" height="99" /></a></p>
<p>As we can see, only the backups from 21.11.2009 exist. So, what happens when we run the query using SQL Management Studio.</p>
<p>Here&#8217;s the query pasted in &#8220;New query window&#8221;.</p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2009/11/sqlquery.PNG"><img class="aligncenter size-medium wp-image-232" title="sqlquery" src="http://www.winblogs.net/wp-content/uploads/2009/11/sqlquery-300x288.PNG" alt="sqlquery" width="300" height="288" /></a>Sooo&#8230;if everything went smoothly, we should get a message similar to this one :</p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2009/11/sqlquery2.PNG"><img class="aligncenter size-medium wp-image-233" title="sqlquery2" src="http://www.winblogs.net/wp-content/uploads/2009/11/sqlquery2-300x141.PNG" alt="sqlquery2" width="300" height="141" /></a>Awesome! <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Now, lets take a look at our backup folder, are there any changes? Sure hope there is, because this post will totally suck if the backup didn&#8217;t complete <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2009/11/sqlbackup2.PNG"><img class="aligncenter size-medium wp-image-234" title="sqlbackup2" src="http://www.winblogs.net/wp-content/uploads/2009/11/sqlbackup2-300x132.PNG" alt="sqlbackup2" width="300" height="132" /></a></p>
<p>As we can see, this post will not suck after all <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Notice the new files, created on the 22.11.2009 . IT WORKS! <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  All we have to do now is to automate the backup, so we don&#8217;t have to run the query everyday by hand.</p>
<p>We will do that using Task Scheduler (or Scheduled tasks in Windows 2003). We have to add a task to execute everyday in 3 AM.</p>
<p>The command we have to run is:</p>
<p>&#8220;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\SQLCMD.EXE&#8221; -i &#8220;c:\pathtosqlquery\sqlbackup.sql&#8221;</p>
<p>Where &#8220;sqlbackup.sql&#8221; is the name of the file you have pasted the code mentioned before.</p>
<p>Here are a couple of pictures so you can see how to do it:</p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2009/11/schedule.PNG"><img class="aligncenter size-medium wp-image-235" title="schedule" src="http://www.winblogs.net/wp-content/uploads/2009/11/schedule-300x177.PNG" alt="schedule" width="300" height="177" /></a></p>
<p>Now, click on &#8220;Create task&#8221;. That will click will start the task wizard. Enter the name of the task ( i.e &#8220;SQL Backups&#8221;.</p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2009/11/task1.PNG"><img class="aligncenter size-medium wp-image-237" title="task1" src="http://www.winblogs.net/wp-content/uploads/2009/11/task1-300x223.PNG" alt="task1" width="300" height="223" /></a>After entering the name and choosing the option &#8220;Run wheneter user is logged on or not&#8221;, click on &#8220;Triggers&#8221;.</p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2009/11/TASK2.PNG"><img class="aligncenter size-medium wp-image-238" title="TASK2" src="http://www.winblogs.net/wp-content/uploads/2009/11/TASK2-300x224.PNG" alt="TASK2" width="300" height="224" /></a></p>
<p>Click on &#8220;New&#8221;. It will bring up a new window</p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2009/11/TASK3.PNG"><img class="aligncenter size-medium wp-image-240" title="TASK3" src="http://www.winblogs.net/wp-content/uploads/2009/11/TASK3-300x256.PNG" alt="TASK3" width="300" height="256" /></a>Choose the &#8220;Daily&#8221; option, and set the time when you want the task to run. I have set it to 3 AM .</p>
<p><strong>ONE IMPORTANT THING!!! Dont forget to check the &#8220;Enable&#8221; checkbox <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  , otherwise, you will end up scratching your head and cursing Microsoft and uncle Bill <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  hehe.</strong></p>
<p>After that, click on &#8220;Actions&#8221;, where we will define the program that should be runned&#8230; Click on &#8220;New&#8221;&#8230;</p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2009/11/TASK4.PNG"><img class="aligncenter size-medium wp-image-241" title="TASK4" src="http://www.winblogs.net/wp-content/uploads/2009/11/TASK4-300x234.PNG" alt="TASK4" width="300" height="234" /></a></p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2009/11/TASK5.PNG"><img class="aligncenter size-medium wp-image-242" title="TASK5" src="http://www.winblogs.net/wp-content/uploads/2009/11/TASK5-276x300.PNG" alt="TASK5" width="276" height="300" /></a>Paste this into the &#8220;Program/Script&#8221; box.</p>
<p><code>“C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\SQLCMD.EXE”</code></p>
<p><strong>NOTE! &#8211; path to the &#8220;SQLCMD.exe&#8221; may be different on your system!!!</strong></p>
<p>All that is left to do is to &#8220;Add arguments&#8221;</p>
<p><code>-i “c:\pathtosqlqueryfile\sqlbackup.sql” </code></p>
<p>Click on &#8220;OK&#8221;, enter the system password and thats it. Enjoy your daily backup.</p>
<p><strong>HINT!!!! If you&#8217;re lazy like I am, you can use a powershell script to delete backup files older than X days. I have also covered that with a blog post. More info about that on this <a href="http://www.winblogs.net/index.php/2009/10/01/delete-files-older-from-in-powershell/">link</a>.</strong></p>
<p>Bye bye! <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="shr-publisher-224"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2009/11/22/automating-backup-of-databases-in-sql-20052008-express/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setuping a server for web hosting &#8211; part 2: Installing SQL 2008 Express</title>
		<link>http://www.winblogs.net/index.php/2009/10/24/setuping-a-server-for-web-hosting-part-2-installing-sql-2008-express/</link>
		<comments>http://www.winblogs.net/index.php/2009/10/24/setuping-a-server-for-web-hosting-part-2-installing-sql-2008-express/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 03:19:23 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[Windows and Powershell]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[installing mssql]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[server setup]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[video tutorial]]></category>
		<category><![CDATA[web platform installer]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 2008]]></category>
		<category><![CDATA[windows 2008 r2]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=185</guid>
		<description><![CDATA[Hello there&#8230; In order to  install SQL 2008 Express, we have to download it first . Fire up your favorite browser and point it to http://www.microsoft.com/express/download/ . After that, find the box with the SQL 2008 Express, and click download. On the next step you have the option to register with Microsoft or download the [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Hello there&#8230;</p>
<p>In order to  install SQL 2008 Express, we have to download it first . Fire up your favorite browser and point it to<a href="http://www.microsoft.com/express/download/"> http://www.microsoft.com/express/download/</a> . After that, find the box with the SQL 2008 Express, and click download.</p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2009/10/sqlexpress.PNG"><img class="aligncenter size-full wp-image-186" title="sqlexpress" src="http://www.winblogs.net/wp-content/uploads/2009/10/sqlexpress.PNG" alt="sqlexpress" width="369" height="232" /></a></p>
<p>On the next step you have the option to register with Microsoft or download the software without registration.  I will choose the &#8220;no registration part&#8221;.</p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2009/10/sqlexpressdownloadpage.PNG"><img class="aligncenter size-full wp-image-188" title="sqlexpressdownloadpage" src="http://www.winblogs.net/wp-content/uploads/2009/10/sqlexpressdownloadpage.PNG" alt="sqlexpressdownloadpage" width="471" height="160" /></a></p>
<p>In the new window, choose the version you would like to install. Personally, I will choose &#8220;<strong>Runtime with advanced services</strong>&#8220;. By clicking on install, Microsoft will ask to install the <strong>Microsoft Web Platform installer</strong>. If you dont have it installed, click on the picture to install it.</p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2009/10/webplatforminstaller.PNG"><img class="aligncenter size-full wp-image-187" title="webplatforminstaller" src="http://www.winblogs.net/wp-content/uploads/2009/10/webplatforminstaller.PNG" alt="webplatforminstaller" width="199" height="54" /></a></p>
<p>Choose<strong> &#8220;Run&#8221;</strong>, and after the download, again, choose<strong> &#8220;Run</strong>&#8220;. Wait for the installtion to finish and look at the top of the browser, a little bar will pop up and ask us if we want to run Active X control.  <strong>Make sure the publisher is &#8220;Microsoft Corporation&#8221;</strong>. Click on &#8220;<strong>Run</strong>&#8220;, and then on<strong> Allow</strong>.</p>
<p>Now, look at the video of the installation I have made for you. The video will show you the process of installing<strong> SQL Server 2008 Express.</strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/lWUjAG8Ab7I&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/lWUjAG8Ab7I&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>After that, all you need to do is run the <strong>&#8220;SQL Server Configuration Manager</strong>&#8221; under<strong> &#8220;Configuration Tools&#8221;</strong> and configure it the way you want it.</p>
<p>BTW, the track used is <span id="now-playing-info"><strong>La Noche</strong> by Coca &amp; Villa .IT&#8217;s AWESOME!!!</span></p>
<p><span>Have fun&#8230;bye!<br />
</span></p>
<div class="shr-publisher-185"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2009/10/24/setuping-a-server-for-web-hosting-part-2-installing-sql-2008-express/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing IIS on Windows server 2008 R2 Standard &#8211; video tutorial.</title>
		<link>http://www.winblogs.net/index.php/2009/10/20/installing-iis-on-windows-server-2008-r2-standard/</link>
		<comments>http://www.winblogs.net/index.php/2009/10/20/installing-iis-on-windows-server-2008-r2-standard/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 00:28:34 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows and Powershell]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[installing iis]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[server setup]]></category>
		<category><![CDATA[video tutorial]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 2008 r2]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=129</guid>
		<description><![CDATA[Hi, last couple of days I have setuped over 10 Windows 2008 servers for hosting services for testing or production, so I am pretty bored with repeating the same stuff all over again , but, here&#8217;s a recorded video tutorial of one installation process. Because the video is pretty straightforward, I&#8217;ve decided that there is [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Hi, last couple of days I have setuped over 10 Windows 2008 servers for hosting services for testing or production, so I am pretty bored with repeating the same stuff all over again <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  , but, here&#8217;s a recorded video tutorial of one installation process.  Because the video is pretty straightforward,  I&#8217;ve decided that there is no need to explain every step of the installation.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="525" height="444" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/A1VR3kgOLcE&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="550" height="469" src="http://www.youtube.com/v/A1VR3kgOLcE&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Click on the HD button and put the video into full screen mode, so you can see all the details.</p>
<p>In the next post, I will show you how to install Microsoft SQL server 2008 Express .</p>
<p>Cheers!</p>
<div class="shr-publisher-129"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2009/10/20/installing-iis-on-windows-server-2008-r2-standard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is your server stable enough?</title>
		<link>http://www.winblogs.net/index.php/2009/10/13/is-you-server-stable-enough/</link>
		<comments>http://www.winblogs.net/index.php/2009/10/13/is-you-server-stable-enough/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 00:05:09 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows and Powershell]]></category>
		<category><![CDATA[burn test]]></category>
		<category><![CDATA[hyper]]></category>
		<category><![CDATA[hyper v]]></category>
		<category><![CDATA[HyperV]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[load testing]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[siege]]></category>
		<category><![CDATA[stable]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 2008 r2]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=72</guid>
		<description><![CDATA[How many time did you find yourself in a situation where you need a reliable, stable and strong server? How to even determine if your server is stable enough? How to know what kind of continous load can it handle? Will it crash if it gets under heavy load for a couple of hours?  Well, [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>How many time did you find yourself in a situation where you need a reliable, stable and strong server? How to even determine if your server is stable enough? How to know what kind of continous load can it handle? Will it crash if it gets under heavy load for a couple of hours?  Well, today, I&#8217;ve found myself in a situation like that. I have installed HyperV on some server we have at the office and wanted to see how it will perfom under extreme heavy load and how stable everyhing was .</p>
<p>By extreme heavy load I assume about 200 concurent users clicking every 1-3 seconds on a random page that is being served on the server . When you look at the number of 200 concurrent users, you can say: &#8221; Hey, 200 users isnt that big of a number for a server to handle&#8221; &#8230;and you would be absolutely right <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> &#8230; if the server i was trying to &#8220;kill&#8221; didnt have 1 cpu core and 1 gb of ram assigned to it <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<p>So..the point was to simulate real life conditions as much as possible. To do that, once more, I turned to Linux and the little piece of awesome software called &#8220;Siege&#8221;. You can download it<a href="http://www.joedog.org/index/siege-home"> here</a>.  The software is able to simulate almost real user like behavior on a web page.  It can randomly open link in a specified interval, simulate 200+ users at the same time without any problems and so on.</p>
<p>To do some proper testing I&#8217;ve installed some php+mysql and asp.net+sql2008 applications to simulate a real-life scenario as much as possible. As we all know, one of pretty hungry applications for Linux is Joomla for the PHP+MYSQL combination and DotNetNuke for ASP.Net and MSSql combination. All cacheing  techniques on the application and the IIS were turned off so we can maximize the load to the server.</p>
<p>The server is based on Windows 2008 Server R2 Standard Edition and SQL Express 2008 .</p>
<p>I&#8217;ve told Siege to simulate 100 users on the Joomla site and 100 users on the ASP.Net site for 24 hours.  At this moment, tests are running for 6 hours and everything seems to be in perfect order. Here&#8217;s a couple of pictures <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2009/10/process.PNG"><img class="alignleft size-medium wp-image-74" title="process" src="http://www.winblogs.net/wp-content/uploads/2009/10/process-300x278.PNG" alt="process" width="250" height="232" /></a><a href="http://www.winblogs.net/wp-content/uploads/2009/10/cpu.PNG"><img class="size-medium wp-image-73 alignnone" title="cpu" src="http://www.winblogs.net/wp-content/uploads/2009/10/cpu-300x279.PNG" alt="cpu" width="250" height="232" /></a></p>
<p>As we like to say it..BURN BABY BURN! About 16 more hours to go under 100% cpu <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Results are coming soon&#8230;in about 20 hours <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  more or less &#8230;.</p>
<div class="shr-publisher-72"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2009/10/13/is-you-server-stable-enough/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

