SQL Server 2008 - Simon Sabin UK SQL Consultant's Blog

Browse by Tags

All Tags » SQL Server 2008 (RSS)

SSIS - XML Source Script

The XML Source in SSIS is great if you have a 1 to 1 mapping between entity and table. You can do more complex mapping but it becomes very messy and won't perform. What other options do you have? The challenge with XML processing is to not need a...

SQLBits Videos available now available

You can watch all the sessions from SQLBits V now. They are available for download or for viewing online. If there is a delay then just wait, the videos are high quality and so are very large. These are the links to all the sessions A whistlestop tour...

Time is no use for recording Time

I was asked by a client about the new Time datatype in SQL 2008. They wanted to store the duration of some work so they could use the nice date time functions to get the hours, minutes, seconds etc. However you can't use the Time date type for that...

XML Validation in SQL Server Intergration Services

I've been workig with XML in SQL Server Integration services this week and to say the XML task in SQL Server Integration services sucks is an understatement. Its buggy, the documentation is woefully inadequate in some cases wrong. I believe this was...

User defined function performance is awful, Micorosft please sort this out

User defined functions looked like something great when they were introduced in SQL 2005. They are a very logical step to make more code reuseable by wrapping common code in functions. It is an approach that is in development 101 and something everyone does and looks to doing.

So what is the problem with SQL Server.

Well the issue is that ......

...

Could not connect to computer '.' - Debugging requires you to connect by name on windows 7

One shortcut for connecting to the local instance of SQL Server is to use a period as the name i.e."." (no quotes). However on Windows 7 I found today that if you do that, debugging in management studio doesn't work. It says "-----...

Does debugging in SQL 2008 require sysadmin priviledges

I was asked a the London PASS usergroup meeting (http://www.sqlpass.org.uk/Events/September2009Meeting/tabid/59/Default.aspx) if you could debug if you weren't sysadmin.

Well you ...

...
Posted by simonsabin | 2 comment(s)
Filed under:

SQL 2008 Express Download - Getting the exe

If you want to install SQL Express 2008 it seems that you have to use the Web Platform Installer. This I don't think is a good experience. I wanted to install it myself and be able to configure things like instance name, data file location, collation...
Posted by simonsabin | with no comments

INSERT and UPDATE loading practice - The impact of forwarding pointers.

Ever since I’ve been working with databases I have come across the following pattern of programming. The pattern is an INSERT and LOTS of UPDATEs. The reason for this pattern is reasonable, and is generally due to the desired data set being complex to generate from the source database.

For this reason a base set of data is generated and then updated by a number of updates.

I’ve seen this is two main scenarios, integration and warehousing. The former is due to a target system wanting something that the soruce system had in a different structure or a differnt level and the latter generally wants calculated data like number of children, or name of last dentist visited.

You might think these should easily be solved by one query, and if there was only on of these bits of infomation required that would be easy. However more often than not there are many, and even worse they are depenent, i.e. given the last dentist someone visted, give me the number of people that have sued said dentist.

So logically people break this down into manageable chunks. And do something like .....

...

SQL Bits session subsmission

Don't forget to submit sessions for SQLBits V in November.

For anyone that hasn't spoken before, as a speaker you will get....

...

Where is the intelligence in Business Intelligence?

Many people believe that if they go ahead and implement a Business Intelligence solution they will suddenly have an intelligent business that will tell them how it is operating and what they need to do. Customers they need contacting will be flagged, orders that are likely to be late are notified so as to keep the customers happy, and the boss is alerted as to the reason profits have fallen from 15% to 10%.

The expectation is that the system, the data warehouse, the reports will provide this intelligence.

This is just wrong.

Just because you give .............

...

Enforcing parent child relationship with Path Hierarchy model

With the classic adjacency model its dead easy to validate that a parent exists, its a bit more difficult with path model. The adjacency model you have a table with a self join you can easily add a foreign key between the two columns. When you store a...

Converting Mappoint routes to SqlGeography

The mapping services from microsoft aren't limited displaying maps in Virtual Earth, and not only limited to websites. There are numerous webservices for, resolving locations to longtiudes and latitudes as well as a routing api. I am working on something...
Posted by simonsabin | with no comments

The future of TSQL - London UG meeting

Do you use TSQL and find it clunky. If you want to have your say on what Microsoft are thnking about the planned changes to TSQL then you need to come along to the next SQL Usergroup meeting in London on the 19th December http://sqlserverfaq.com/events...

Gotchas in Management Studio 2008

If you script objects in management studio 2008 be careful its a bit forgetful. If you are using a case insensitive collation and you have objects that refer to other objects but use different case for the object names then when you try and script objects...
Posted by simonsabin | 1 comment(s)
Filed under: ,
More Posts Next page »