February 12, 2009 by nielsb
The other day when I posted about the sample how to call a WCF Service from a SQLCLR method, I mentioned that I had no place to host my demo-code. I did not want to create a project on CodePlex (like I did with the SQLCLRProject), as demo code is not really projects per se.
I discussed this with David Reed from Microsoft who is a PM on the SQL Server team, and has a lot to do with overseeing the SQL projects on Code Plex. He mentioned MSDN’s Code Gallery, which is a place where you can create resource pages and upload code for download. So, earlier today I created a new resource page on the Code Gallery, and uploaded the SQLCLR to WCF sample to there. My intention is to upload other SQL Server related samples as well as How-To articles to there.
Posted in SQL Server, SQLCLR | 4 Comments »
February 8, 2009 by nielsb
I sometimes (not as much as I would like) hang out at some of the user forums where people talk about SQL Server generally and the SQLCLR specifically. Ever so often the question is being asked how to call into a WCF service from SQLCLR (.NET code running inside SQL Server).
The other day I became tired of giving exactly (or thereabout) the same answer for the n:th time, so I decided to croft up some code and write a mini How-To about how to call into a WCF service from SQLCLR. So without any further ado, the How-To article can be found here. I do not have anywhere to host the code yet (my usual hosting place disappeared – don’t ask), so until I decide where to host you can drop me an email if you want to see the code.
Update: I have now created a Resource Page on MSDN’s code gallery, where the sample code for the article can be found. So if you want to get the code, go to here.
Posted in .NET, SQL 2008, SQLCLR | 1 Comment »
February 7, 2009 by nielsb
About a year ago, I wrote how I were about to re-surrect the SQLCLRProject tool, and in that process I created some new pages for it here at my WordPress blog.
This tool has had some interest, and it seems that quite a few of you are interested in helping out to take it forward. So due to that, and the fact that there are issues where I hosted it for download, I have today created a CodePlex project for it. You can find its new homepage here.
At the moment there are no source code there, just the binaries. I am in the process ofcleaning up the source code, and as soon that is done – I will upload it there as well.
So, go over there and have fun!!
Posted in .NET, SQLCLR | Leave a Comment »
July 16, 2008 by nielsb
As good as SQL 2005 was (well, still are), one disappointment was that you needed Visual Studio if you wanted to debug your stored procedures. Seriously, what was MS thinking when they did that, especially as in SQL 2000, Query Analyzer had debug capabilities?!!
Anyway, today I am playing around, errm – doing serious stuff in the RC0 release of SQL Server 2008, and just by coincidence notice that there is a debug menu entry in the toolbar(how blind can one be – I must have been looking at that toolbar quite a few times). So I wrote some T-SQL code, put in a couple of breakpoint and hit Alt + F5, and lo and behold – my bp’s were hit and I could step through the code. I then wrote a very basic stored proc, wrote some code that called the proc, put a bp at the call into the proc and executed. When the execution stopped at the bp I hit F11 and I stepped into the proc – WoHoo!!! Call me sad, but stuff like this make me happy!!
Now, let’s hope that MS will keep this feature in and not pull it at the last minute – anyone remember the XQuery designer in one of the very early SQL 2005 beta’s??
Posted in Katmai, SQL 2008, SQL Server | 1 Comment »
February 27, 2008 by nielsb
I have just released a new version – 2.6 – of the deployment tool for SQLCLR assemblies. It is a minor release, but it implements some changes that are fundamental for coming versions and also fixes a couple of minor bugs.
The download page for it is here, and if you want general information about what the SqlClr project is, you should go here.
Posted in Katmai, SQL 2008, SQL Server, SQLCLR | 2 Comments »
February 20, 2008 by nielsb
Euan posted late yesterday evening that SQL Server 2008 February CTP (CTP 6) has been released. Grab it from here (one of the pages are dated November 2007, but the link will take you to the correct download).
Posted in Katmai, SQL 2008, SQL Server | 1 Comment »
January 30, 2008 by nielsb
I’ve had some feed-back about SQLCLRProject (thanks Doug et al!), and based on that fixed some issues.
Read all about it, and get the updates on the download page.
As always, comments and suggestions for improvements are very welcome!!
Niels
Posted in Katmai, SQL 2008, SQL Server, SQLCLR | Leave a Comment »
January 14, 2008 by nielsb
Hi everyone, it’s been a while
(shame one me!)!!
As some of you may know, back in the days I developed a tool for deploying .NET assemblies to SQL Server 2005 (or, as it was called then, Yukon). Initially it was just a tool used from the command line. As time went by, it evolved into a project named SQLCLRProject, consisting of the command line tool (YukonDeploy), a stand-alone front-end GUI, DeployProperties, and an add-in (with project and item-templates) for Visual Studio, DeployAddIn.
The latest release of SQLCLRProject was back in February 2006 (wow, that was a long time ago
) , and up until a month or so, nothing much was done to it. I used it whenever I did any SQLCLR work and I know other developers were using it as well. Anyway, a while back I started receiving emails from people wondering if I could fix some “undocumented features” and/or implement some new features.
So, I decided to resurrect the project and the last weeks I have been working on fixing the issues and adding some more features. I’m fairly happy with it as it is right now, and today I release version 2.5. The download page for it is here.
So what has been done:
- The project has now it’s own web-pages, so I have a place to point people to when explaining what SQLCLRProject is.
- The Visual Studio add-in (and templates) supports both VS 2005 as well as VS 2008
- The VS add-in (as well as the other tools) supports both SQL Server 2005 as well as SQL Server 2008 (Katmai).
- The previous version of the tool allowed you to re-deploy a UDT without manually dropping tables with columns based on the UDT. The tool either dropped the whole table or just the column (based on a configurable setting), before re-deploying. In this version the choice is as before to either to drop the whole table or the column. However if choosing to drop the column:
- first the table is altered and a new column is added (varchar(max) or varbinary(max) – also based on a configurable setting),
- then the data from the original column is copied over to the new column
- finally the original column is dropped.
- In T-SQL we have the notion of procedure parameters with default values. In .NET we don’t have anything similar (well, VB.NET has optional parameters, but that is a compiler hack). The tool now allows you to, by using an attribute, defining parameters in your .NET code that will be created as T-SQL object with default values.
- Fixed a bug where the add-in for VS could not handle project with white spaces in the path.
So, if you are interested, go to here to read more about SQLCLRProject and if you want to download; the download page is here.
Comments etc are always welcome, post a comment here (or on the main page) or drop me an email.
Niels
Posted in .NET, Katmai, SQL 2008, SQL Server, SQLCLR | 1 Comment »
July 5, 2007 by nielsb
Well, right after having written my previous post about iPhone, I came across an article in The Times, saying that O2 has supposedly received the rights to sell IPhone in UK.
It will be interesting to see how users in UK will react to the iPhone, seeing that over here (in UK) users are generally more sophisticated and demanding when it comes to cell-phones than in the US.
Hmm, I happen to be an O2 customer, and I love gadgets – so even if I really can’t see the point of the iPhone … you never know
Posted in Apple | 2 Comments »
July 5, 2007 by nielsb
Seeing that I am a Mac switcher, you’d have thought that I’d be over the iPhone like a rash. However, I’m not! I just can’t see the point!! From everything I’ve seen and heard it is a gadget with a beautiful UI, and very limited phone capabilities. It sounds like an iPod (admittedly a wide-screen iPod) with a phone thrown in as an afterthought. Can someone please enlighten me?!!!
I wouldn’t mind though having the iPhone as a (like I mentioned before) wide-screen iPod, without the phone stuff, but including the other features, WiFi, etc, etc. … IF it would have a bigger hard-disk than its paltry 8 gig. Heck, my IPod Nano has 8 gig. Well I can dream, can’t I?!
Posted in Apple | 3 Comments »