Welcome to MSDN Blogs Sign in | Join | Help

Syndication

News

I am Isaac Kunen, a senior program manager for the SQL Server engine. This blog focuses on programmability aspects of the engine, with a concentration on spatial—because that's what I know best.

You can also follow me on Twitter.

Legalese: All postings are provided "AS IS" with no warranties, and confer no rights.


The Spatial Library without the Server: Bug and Workaround

Hi Folks,

Jason Follas recently ran across a lingering issue when using our spatial library without the server.  I mistakenly thought the fix had been shipped, but for now it remains.

The background is that the spatial library consists of a managed part and a native part.  Roughly, the core geometry library resides in the native code, and everything else is in the managed layer.  The native code requires the C++ runtime libraries.  This is installed with SQL Server, so everything works fine if you install SQL. 

The redistributable version we ship as part of the feature pack should redistribute the runtime as well, but it doesn’t.  That’s the bug.  So, if you install the library on a machine without the runtime, then it will fail.

The workaround is simple: install the runtime manually.  Annoying, but effective.  You’ll also be fine if you install another package—like the SQL Native Client—that includes the runtime, but unless you also want that component, I’d stick with the stand-alone install.

SP1 for SQL Server 2008 is coming up, but unfortunately, we’ve missed the cutoff to get this in.  We’ll try to get this into the next service pack, but that will take some time.  In the meantime, you’ll have to use this workaround.  I’ll try to get an official KB article published on this as well.

So, apologies for the inconvenience.  And thanks to Jason for raising the issue.

Cheers,
-Isaac

Published Tuesday, February 24, 2009 1:40 AM by isaac

Comments

# re: The Spatial Library without the Server: Bug and Workaround @ Tuesday, February 24, 2009 10:06 AM

Didn't realize that there were unmanaged DLLs in the redistributable... I think that atleast for now prevents it from being used on the azure cloud...is that correct?

Thank You,

Vish

Vish Uma

# re: The Spatial Library without the Server: Bug and Workaround @ Tuesday, February 24, 2009 11:08 AM

Hi Vish,

I am absolutely not an expert in Azure, but it sounds quite plausible.

(BTW, I *love* your URL.)

Cheers,

-Isaac

isaac

# re: The Spatial Library without the Server: Bug and Workaround @ Tuesday, February 24, 2009 4:26 PM

Thanks Isaac. Here is what I found on the forums for working with unmanaged DLLs in the cloud.

http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/399d05e7-b91d-469c-b2b2-3b13c4c5141f

Thank You,

Vish

Vish Uma

# re: The Spatial Library without the Server: Bug and Workaround @ Tuesday, February 24, 2009 5:00 PM

Well that sounds promising.  Thanks for digging it up.

-Isaac

isaac

New Comments to this post are disabled
Page view tracker