Tuesday, February 27, 2007
Bob Beauchemin coming to the DevDays
Yet another difference in Vista Home Premium
I was trying to expose 2 drives as 1 which is possible by using dynamic disks. I'm a big fan of diskpart so I tried converting the disk using this command line utility:
diskpart
select disk 1
convert dynamic
Error: Dynamic disks are not supported by your edition
This is not a new limitation, it was actually the same for Windows XP Home Edition.
Thursday, February 22, 2007
Tuesday, February 20, 2007
Monday, February 19, 2007
Friday, February 09, 2007
The not so visible differences between Vista Editions
Apparently there are more differences between the Vista editions as there are mentioned on the website.
Windows Authentication is not available on the Home Editions :-( I also noticed that the good old user manager is not available either (only the wizard interface).
More info about IIS features here
Windows Vista
There is a website however that can help you with configuring everything to make SQL Server work on your Vista PC. So if you can't wait for Service Pack 2 check out this website.
There is also a little post-SP1 download for Visual Studio 2005 available.
And for the people who want to run Virtual Server 2005 R2 there is this link.
Saturday, January 27, 2007
Oops I got tagged
- My nickname dis4ea comes from a documentary about coffee, disphoria is extreme unhappiness and people who are addicted to coffee might suffer from it when they lack coffee.
- One of my grandmothers was actually Dutch and my father lived in The Netherlands during the first years of his life.
- My brother is a system engineer, my father worked as a manager in the technical department of a computer hardware retailer and my mother worked as a sales representative in a computer hardware retailer.
- I don't drink alcohol either (respect Bart) and it is indeed very difficult to convince people that you really don't...
- My favorite instrument is the guitar and I love all kinds of music where the guitar is the important instrument (especially blues). My favorite artists are Stevie Ray Vaughan, Joe Satriani, Buddy Guy, Jimi Hendrix and Metallica.
My turn to tag:
Wednesday, January 24, 2007
Big Procedure Cache in SQL Server 2005
Align SQL Server 2005 plan cache size limit to a size similar to that of SQL Server 2000: The maximum size limit of the SQL Server 2005 Plan Cache in RTM and SP1 is significantly larger than in SQL Server 2000. To reduce the SQL Server 2005 plan cache maximum size limit to a size similar to that of SQL Server 2000, the limit for signaling internal memory pressure on a cache is changed from that of SQL Server 2005 RTM and SP1. The following table shows how the maximum limit of the plan cache is determined for each version of SQL Server:
SQL Server 2005 RTM & SP1: 75% of server memory from 0-8GB + 50% of server memory from 8Gb-64GB + 25% of server memory > 64GB
SQL Server 2005 SP2: 75% of server memory from 0-4GB + 10% of server memory from 4Gb-64GB + 5% of server memory > 64GB
Example:
For a SQL Server with 32Gb total SQL server memory,
SQL Server 2005 RTM and SP1 cachestore limit will be 75% X 8 + 50% X (32 - 8) = 18GB
SQL Server 2005 SP2 cachestore limit will be 75% X 4 + 10% X (32-4) = 5.8GB
I suppose I was not the only one who thought this was just too much. I love the way SQL Server is self tuning for a great part but maybe it would be nice to allow expert users to configure some aspects themselfs anyway, especially with x64 where memory usage is lifted to a whole new dimension. When looking at the fixlist for Service Pack 2 I am getting more and more convinced to wait for it before installing SQL Server 2005 in large production environments.
Troubleshooting Query Performance Issues Related to Plan Cache in SQL 2005 RTM and SP1
They could help you isolate performance issues very fast and we all know this can be the difference between success or catastrophic failure.
Saturday, January 20, 2007
Performance Impact of Enabling Page Checksum and Default Trace
Wednesday, January 17, 2007
SQL Server 2005 Compact Edition
There finally is some information about the Best Practices Analyzer for SQL Server 2005. It will be released with Service Pack 2. More information here.
We have set a new date for our SQL Server 2005 Migration and we are going to production in April if all goes well.
Monday, January 08, 2007
xml datatype and distributed queries
I tried to execute a query against a remote server when I got the following error:
Msg 9514, Level 16, State 1, Line 1
Xml data type is not supported in distributed queries. Remote object 'OPENROWSET' has xml column(s).
I came across the following remark in the Books Online (Guidelines for Using Distributed Queries):
Tables that have xml columns cannot be queried, even if the query accesses non-xml columns of the table.
This statement is not entirely true, when querying only non-xml fields it seems to work just fine.
Repro script (SQLCMD mode)
:CONNECT myServer
use myDB
GO
CREATE TABLE myXml
(ID int, someXml xml)
GO
:CONNECT myRemoteServer
SELECT * FROM OPENROWSET('SQLNCLI', 'Server=myServer;Trusted_Connection=yes;',
'SELECT ID from myDB.dbo.myXml') -- should work just fine
GO
SELECT * FROM OPENROWSET('SQLNCLI', 'Server=myServer;Trusted_Connection=yes;',
'SELECT ID, someXml from myDB.dbo.myXml') -- raises the above mentioned error
GO
SELECT * FROM OPENROWSET('SQLNCLI', 'Server=myServer;Trusted_Connection=yes;', 'SELECT ID, CAST(someXml as varchar(max)) from myDB.dbo.myXml') -- workaround?
GO
If I find an explanation for this limitation I will post an update but I haven't figured out why this is not possible yet.
Sunday, December 31, 2006
Another year (almost) over
It will be the year of SQL Server 2005 SP2, Windows 2003 Server SP2, yet another SQL Server 2005 migration, the year they start building my house, elections in Belgium, the last year in my twenties, our 10th anniversary, ...
Let's hope it will not be a year of disasters and violence but that's probably too much to ask :-(
Hope to see you all again next year!
Thursday, December 21, 2006
Wednesday, December 20, 2006
Trace Flag 1200
There is a little behavior change between SQL Server 2000 and SQL Server 2005 however. In SQL Server 2000 it was a session wide flag so DBCC TRACEON (1200) was enough to get you going while SQL Server 2005 considers it a server wide flag meaning you have to use DBCC TRACEON (1200, -1) to get it going again.
Thanks to Dirk G from MCS Belgium for clearing out the difference in behavior between SQL Server 2000 and SQL Server 2005.
For SQL Server 2000 you do the following:
DBCC TRACEON (3604)
DBCC TRACEON (1200)
For SQL Server 2005 you do the following:
DBCC TRACEON (3604)
DBCC TRACEON (1200, -1)
Monday, December 11, 2006
A query cannot update a text column and a clustering key
"The query processor could not produce a query plan from the optimizer because a query cannot update a text, ntext, or image column and a clustering key at the same time."
The message is clear but should actually read:
"The query processor could not produce a query plan from the optimizer because a query cannot update a text, ntext, or image column and a clustering key at the same time when multiple rows might be affected."
It is mentioned in the Books Online in the notes of the UPDATE statement. There is a little change in behavior between SQL Server 2000 and SQL Server 2005 however.
The books online for SQL Server 2000 state:
"If an update query could alter more than one row while updating both the clustering key and one or more text, image, or Unicode columns, the update operation fails and SQL Server returns an error message."
The books online for SQL Server 2005 state:
"If the UPDATE statement could change more than one row while updating both the clustering key and one or more text, ntext, or image columns, the partial update to these columns is executed as a full replacement of the values."
So the restriction is a bit less drastic in SQL Server 2005 but it might have a performance impact though. Obviously updating the clustering key is something you wouldn't want to do too often either.
I was wondering where this restriction was coming from so I decided to ask the only person who would know the answer since the internet had really no reference to why this was happening and I couldn't come up with a reason myself either. Paul Randal was nice enough to share that it was necessary to prevent replication from breaking.
Thursday, December 07, 2006
Visual Studio Team Edition for Database Professionals
Unlike my love for ISQLw over Management Studio I do feel VSTE for DBPros was a missing piece from our toolkit. It finally brings some features our way that have been around for a long time for .NET developers like Unit Testing, Refactoring, Team Foundation Server integration, ...
Another nice feature is "Data Generator". Random data can be easily generated (even based on regular expressions) and can be configured to take into account the ratio between related tables.
Monday, December 04, 2006
Ad hoc queries take a longer time to finish running when the size of the TokenAndPermUserStore cache grows in SQL Server 2005
Check out the KB article here
We are carefully playing around with new SQL Server 2005 features however since we are planning to go for it again in Q1 2007.
- Database mirroring
- Database snapshots
- Analysis services
Very exciting stuff! If I run into obscure behavior you will read about it.
The first one would be to beware of snapshots and statistics, remember that snapshots are read only so when you query a snapshot the statistics should exist (and be up-to-date) in the source database when the snapshot is created or your query plans may not be as optimal as you like ;-) It's pure logic but something to remember!
