Memory Managment in SQL Server

Posted by beakersoft | Posted in SQL Server | Posted on 30-03-2007

0

For quite a while, we have had a problem with our main instance of SQL server not using all the memory available to it on the server. We have finally found out what the problem was thanks to this article - http://www.sql-server-performance.com/sql_server_performance_audit5.asp

The scenario is we have a clustered instance of SQL, that can run on one of 3 identically spec’d server running Windows2003 Enterprise, SQL 2000 Enterprise and with 16gig of ram.

The sqlsvr process had only been running at about 3gig of memory, and was causing us some performance issues on busy days. We had found some articles about changing boot.ini that told windows to use the extra memory, but it didn’t seam to help. Here are the steps:

  1. Open up boot.ini (its normally hidden but lives in the root of c:\)
  2. At the end of the line for the OS you boot to, add /3GB /PAE. This basicly tells Windows 2003 that it and SQL server have access to more than 4gig of Ram, and they can use it
  3. Next you have to set the ‘awe enable’ option of SQL server to 1. This enables the API in SQL server and give it access to the extra memory
  4. Open up SQL query analyser, and type:
    sp_configure ‘awe enabled’, 1
    go
    Reconfigure with overide
    go
  5. When you have done this, restart the server. When you bring it back up, SQL server should have access to all the memory available in the system. You can now tell SQL server how much memory to use in the servers properties, but you now have to specify a a specific amount and not a range.

Also something else I found while doing this, the port that a clustered instance of SQL runs on is 1267, the port it runs on when not clustered is 1433.

Exchange and Patches equals much confusion

Posted by beakersoft | Posted in Exchange | Posted on 21-03-2007

0

We had installed some patches last month on our Exchange 2003 server that had some undesired effects, and also mislead me when trying to fix another problem.

The issue with the patches was all to do with shared mailbox access. We have a number of sales teams that all share one email account. The idea being that if a couple of members are on holiday on a call etc, then rest of the team can still pick up the emails.

The new patches (i’m not sure exactly witch one) tightened up some of the security settings, and meant that any users who used the shared mailbox and did not have there own individual mail account were unable to send mail. They kept getting errors like ‘Resource not found’, and ‘You don’t have permission to send on behalf of this user’

The way round it was to create mailbox’s for these people, but hide them in the global address list so they see no difference. Looks like Microsoft implemented this to crack down on people using Exchange without a valid CAL.(note to self, setup a mirror of all our system in order to test all patches!!)

At the same time this happened, we also started to get errors from a couple of our users when sending email out using SMTP in an application we wrote. There didn’t seam to be any pattern as to what was happening as some people saw no problems. The error was:
’550 5.7.1 Cannot Relay for name@domain.com.

After much head scratching I finally realized that we had moved a couple of our terminal servers to our new subnet, and a quick check in Exchange system manager revealed that those subnets indeed weren’t allowed to relay through the mail server. How easily we think something is a bigger problem than it actually is!

On another note I have had a play around with Flickr, the photo sharing site. I have to say i’m very impressed with what it can do. You can check out my one and only photo (so far) here http://www.flickr.com/photos/beakersoft. The most impressive aspect of it is the Geotagging, that lets you give a co-ordinate to where the pics were taken, then view them in Google earth or other mapping systems.

All I need now is a digital camera with a GPS device and i’m set!

Adding Column headers to Reporting Services Matrix

Posted by beakersoft | Posted in SQL Reporting Services | Posted on 18-03-2007

1

Found out a very useful tip (thanks to Bob at Microsoft – http://blogs.msdn.com/bobmeyers/) that allows you to add a heading to a column in a SQL reporting services Matrix.

You simply need to add a new column group to the top of your Matrix, and set its expression to be something like ‘DummyExpression‘, and make sure you omit the normal leading ‘=’, like below:

Now, you can move the group to be the top one in the properties of the Matrix, and type in the text box what ever header you need.

Simple but effective, I didn’t even realise you could put dummy data into an expression, I thought the IDE would kick it back

On an entirely different note, I was very excited(being the big geek I am) to discover today that Buffy the Vampire slayer season 8 is coming back in comic book form, and is written by no less than Joss Whedon himself!
Check it out at Dark Horse comics here http://www.darkhorse.com/
I cant wait till my next visit to the comic shop!

Listening to: Saves the Day, Stay what you are.

Code Project and VMware

Posted by beakersoft | Posted in VMWare | Posted on 13-03-2007

4

Just a quick post to let you all know I have uploaded my first ever article to the code project website! You can find it at http://www.codeproject.com/useritems/SimplePop3Class.asp

There must be loads of people using that site, i’ve had over 60 views of it so far and its only been up there half an hour or so.

Been playing about with VMWare virtual server. I think we are going to move away from clustering technology’s and start using this instead. The only problem I can see so far is you need quite a lot of disk space on the server to run all the virtual machines, but that is offset by its advantages.

You can get some software for it that will allow you to move the server from one physical device to another, with users on the server and they wont notice anything. Now thats the future!

Also looking more into sharepoint, I think i’m going to try and add the reports services modules into it and create a portal using it for our sales people to use. When I get it setup ill post my findings on here.