<?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"
	>

<channel>
	<title>University Log</title>
	<atom:link href="http://www.craigk.org/uni/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.craigk.org/uni</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Tue, 18 Nov 2008 14:46:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Minor to Major</title>
		<link>http://www.craigk.org/uni/2008/11/18/minor-to-major/</link>
		<comments>http://www.craigk.org/uni/2008/11/18/minor-to-major/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 13:24:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Apache]]></category>

		<category><![CDATA[benchmarking]]></category>

		<category><![CDATA[connections]]></category>

		<category><![CDATA[IIS]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.craigk.org/uni/?p=10</guid>
		<description><![CDATA[OK, so it has been a long time since I have updated this. This doesn&#8217;t mean that I haven&#8217;t been doing anything, it just means I haven&#8217;t had the time to update or haven&#8217;t felt what I was doing worth an update.
So last time I left this blog I was struggling with getting PHP to [...]]]></description>
			<content:encoded><![CDATA[<p>OK, so it has been a long time since I have updated this. This doesn&#8217;t mean that I haven&#8217;t been doing anything, it just means I haven&#8217;t had the time to update or haven&#8217;t felt what I was doing worth an update.</p>
<p>So last time I left this blog I was struggling with getting PHP to be able to run queries on MSSQL at the university. This turned out to be considerably more complicated than I first though.</p>
<p>The first issue I came across was that the University was running PHP on an IIS web-server. I have never really used PHP on IIS before and there are a couple of small but important differences. Thankfully these didn&#8217;t hold me up for too long. When my first few tests of connection strings didn&#8217;t work I began to research this on the web to see what methods worked for others. Having tried many permutations and combinations of methods I found online I eventually found some articles suggesting that this was due to a driver issue.</p>
<p><a href="http://coffeeonthekeyboard.com/connecting-php-iis-6-and-sql-server-2005-129/">http://coffeeonthekeyboard.com/connecting-php-iis-6-and-sql-server-2005-129/</a></p>
<p>Unfortunately the technicians for the CMIS computer suit were not too interested in installing these as they had a known setup.</p>
<p>With a little more research I then found an article suggesting that the reason the connection wasn&#8217;t working was because of a change to default network settings for SQL Server 2005 over 2000.</p>
<p><a href="http://techrepublic.com.com/5208-6230-0.html?forumID=101&amp;threadID=227248&amp;messageID=2266046">http://techrepublic.com.com/5208-6230-0.html?forumID=101&amp;threadID=227248&amp;messageID=2266046</a></p>
<p>Clearly, again the computing staff were not keen on changing their setup, but did agree to help me debug this. I wrote a test script which would confirm the connection when run and the technicians build two virtual servers for testing. After making the suggested changes still it didn&#8217;t work.</p>
<p>I left this with the technician for a week or so to see if he could come up with a solution. Unfortunately at current there still isn&#8217;t one.</p>
<p>Thankfully this doesn&#8217;t spell the end for my research, like any good student I had a backup plan. This involves taking an old dev machine of my own and installing Server 2003, a web server and SQL server 2005 all from the universities MSDN subscription. As of current I have the Server 2003 installed, Apache installed, PHP, install but not yet fully working and SQL server installed and working.</p>
<p>Once I get PHP up and running i hope to be able to go back to connection strings. As they are now on the same server and I can tweak the setup all I like without the university&#8217;s restrictions this should progress quickly and I hope to have a working connection by the end of the week.</p>
<p>Of course, connection issues are not the old thing this solution solves. You see, my project relies heavily on me being able to accurately benchmark my system to ensure I am getting the performance gains I am after. If I was to be running this on the university setup I would have an unknown load on the server at any one time. This is because the university web server is connected to the Internet. As such I would never be able to have the controlled environment I require for benchmarking.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craigk.org/uni/2008/11/18/minor-to-major/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Deferred success</title>
		<link>http://www.craigk.org/uni/2008/10/11/deferred-success/</link>
		<comments>http://www.craigk.org/uni/2008/10/11/deferred-success/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 10:04:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[project]]></category>

		<guid isPermaLink="false">http://www.craigk.org/uni/?p=7</guid>
		<description><![CDATA[So, first week of Uni over and as such, first week of my project over. It has been a fairly successful week in some ways, although mildly frustrating in others.
On Monday morning (AKA, first day back) I went and spoke to Brian Spencer to make my pitch to him. He was fairly impressed and most [...]]]></description>
			<content:encoded><![CDATA[<p>So, first week of Uni over and as such, first week of my project over. It has been a fairly successful week in some ways, although mildly frustrating in others.</p>
<p>On Monday morning (AKA, first day back) I went and spoke to Brian Spencer to make my pitch to him. He was fairly impressed and most importantly, interested in my idea. He has said he will take it on and I just need to send him a project summary and he will confirm. I have written most of the summary now, just playing with some of the details.</p>
<p>So, I would like to try and explain what my project actually is so that later comments should mean more to people.</p>
<p>CMS&#8217;s (Content Management Systems) are some form of web based application which allows pages to be generated from database content. So normally you see something like index.php?id=42 in a URL. This means the variable &#8220;42&#8243; is being passed into the script. Some checks are performed on it to make sure it is a valid number etc and then it collects the content (title, page details, place in the menu etc) from the database, and using that constructs the page using some form of template and gives it back to you.</p>
<p>So this means the page you are viewing doesn&#8217;t actually exist as a file, but it is generated from database content. The real beauty of this system is that means you can write an admin interface which can edit this content in the database and as such, non technical people can update pages.</p>
<p>This is all very well and normally such a system does all the logic (so, checking if the ID is a number, not text, dealing with errors like that ID that was requested not being in the database). This means you have a database that is just used for storing data and an application in something like C# or PHP that does all the &#8220;thought&#8221;.</p>
<p>Now modern database systems have basically become programming languages in their own right. They have a log of powerful functionality in them.</p>
<p>My project aims to research moving this balance of power and functionality from the application to the database and getting the database system itself to do some of the &#8220;thought&#8221; and not just mindlessly passing data back.</p>
<p>This is a research project mainly because I have some idea of how much this can be done and how to do it, but really, I&#8217;m not aware of this being done before and everyone I have talked to about it who has any idea what I&#8217;m talking about agrees this is an interesting concept and I would be nice to see how far it can be pushed, but really, we have no idea.</p>
<p>For now thought I just need to start with the basics. I need to have PHP (my chosen language) connecting and talking to MSSQL (my chosen database system) before I can go much further. This is proving more challenging than first thought. Watch this space&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craigk.org/uni/2008/10/11/deferred-success/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Print &#34;Hello World&#34;</title>
		<link>http://www.craigk.org/uni/2008/10/09/print-hello-world/</link>
		<comments>http://www.craigk.org/uni/2008/10/09/print-hello-world/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 00:34:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[project]]></category>

		<guid isPermaLink="false">http://www.craigk.org/uni/?p=5</guid>
		<description><![CDATA[This is the new section of my site dedicated to my University work. It is actually mainly for the purpose of a log for my final year project, but it may also serve as an out for other University work related thoughts. As a bit of a sum up, my project will be an investigation [...]]]></description>
			<content:encoded><![CDATA[<p>This is the new section of my site dedicated to my University work. It is actually mainly for the purpose of a log for my final year project, but it may also serve as an out for other University work related thoughts. As a bit of a sum up, my project will be an investigation into moving the functionality of a <a href="http://en.wikipedia.org/wiki/Content_management_system">CMS</a> from within the front end scripting language (such as <a href="http://php.net/">PHP</a> or <a href="http://en.wikipedia.org/wiki/C_Sharp_%28programming_language%29">C#</a>) into the database engine itself taking advantage of the new levels of power and control in modern query processing engines and <a href="http://en.wikipedia.org/wiki/TSQL">T-SQL</a>.</p>
<p>This is an almost unheard of subject as far as I know and as such I hope that at the very least it will provide some original work and an insight into the hidden power of T-SQL and database servers in general that is often kept locked away.</p>
<p>I plan to be focusing on MSSQL as it is the system I am most familiar with of the 3 major database engines (DB2 and Oracle being the other two).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craigk.org/uni/2008/10/09/print-hello-world/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
