I'm developing an application locally, and after I complete major revisitions/bugfixes, I transfer the code/database changes to the client. If I change the code for a CLR stored procedure locally, I can just deploy the project to the local database, which handles everything for me.
Transferring to the client's database is more difficult, however. In order to update the CLR procedures, I need to drop my regular stored procedures, drop my functions, drop the CLR procs, and then re-add the CLR procs, functions and stored procedures to avoid errors based on dependencies. The stored procs/functions don't change, and it seems like there should be a way to just insert the new CLR stuff without dealing with the regular stored procedures or userdefined functions.
Basically, I'm asking whether there is a better way to do this, or if I'm stuck doing this excessive routine every time I need to update.
Thanks in advance
it sounds like your in the "debug" phase right now, so you could use multiple assemblies to seperate those SQLCLR routines that you know are still giving you problems and those that are not. Once fully tested you could then re-merge them back into one assembly.
You could also look at using the scripting wizard to script the assembly and all of it's dependencies from your local/dev box.
Derek
|||Have you tried using ALTER ASSEMBLY from T-SQL to deploy changes to the assembly.
Detailed documentation on ALTER ASSEMBLY is available at http://msdn2.microsoft.com/en-us/library/ms186711(d=ide).aspx
Thanks,
-Vineet
No comments:
Post a Comment