BIDSHelper: DeployMDXScript feature enhanced

Have you ever renamed a deployed database in SSMS and then tried to deploy changes using BIDS? I don't imagine that it is too common an occurrence as it does not work!

I renamed the "Adventure Works DW" sample to "Adventure Works DW1" in SSMS and then told BIDS to deploy to the "Adventure Works DW1" database and got an error that the "Adventure Works DW1" database already exists - of course it does.

image

If you capture the XML/A that BIDS is sending you will notice something strange. The ID and the Name properties are the same!

What I would expect to happen is for BIDS to check on the target server if a database with the specified target name already exists. If it does BIDS should get the ID and deploy to that - am I wrong? Have I missed something here?

I logged the issue in connect here, vote for it if you think it should be fixed.

And while you're at it check out the new Ajax features on the connect site. When you are logged in you can vote for an issue just by clicking on one of the stars on the item itself - no navigating off to a separate page.

Want to know something else? If you leave your target database set to "Adventure Works DW" can you guess what happens? That's right, the database gets renamed back to plain old "Adventure Works DW"

By the way, as you may have guessed by the title of this post, this issue has been addressed in the DeployMDXScript feature of BIDSHelper and version 1.1.0.1 is now available for download. Because the DeployMDXScript feature is going against an existing database by definition I have taken the approach of looking up the database by name and then getting the ID and using that to build the alter XMLA command.

Technorati Tags: , ,

Print | posted on Wednesday, June 6, 2007 11:24 PM

Comments on this post

# re: BIDSHelper: DeployMDXScript feature enhanced

Requesting Gravatar...
Darren,
you ar absolutely spot on.

This really p!sses me off. Why on earth does it use immutable IDs to refer to everything. And why are IDs not something meaningless - such as oo, er...a GUID???

It annoys me no end and I said so here: http://blogs.conchango.com/jamiethomson/archive/2006/06/20/4106.aspx


Stupid stupid stupid!
-Jamie
Left by Jamie Thomson on Jun 07, 2007 2:56 AM

Your comment:

 (will show your gravatar)