I'm attempting to deploy CLR Stored Procedures from Visual Studio 2005.
I have a VS Database project with stored procedures for all of the tables in our database. (I would really like to keep everything together in 1 DLL), everything seems fine except...
I keep receiving the following error when attempting to deploy to SQL Server:
Error 1 Timeout expired. The timeout period elapsed prior to completion of
the operation or the server is not responding.
After some experimentation I have determined that its because the DLL is too
large: 1.8 mb. (I also have a larger one).
I have looked through various documentation sources but have found none
concerning this problem other than specifing something aboug a 100ms
execution timeout (not sure if this is the same).
Deployment works if I trim down the size of the DLL (i.e., remove procedures from the solution)
Is there anyway to deploy large DLLs to SQL Server without having to break
them up? If so, where is the setting to allow a longer timeout period for
deployment?
Thanks for the reply.
Yes I know I could do that, but it is so much easier to use VS.
Also the major time consuming problem is the number of tables and procedures.
Heres the scenario.
We have 2 databases, 1 flat, 1 relational. (Same problem is occuring on both).
The flat database has been imported from FoxPro 2.6 DBF's for conversion into the relational to supply historic data to an application upgrade. Needless to say there are a large number of tables. I have utilized ApexSQL to generate CLR Stored Procedues for each table. (i.e., INSERT,UPDATE,DELETE,SELECT, and so on...)
VS Compiles the source with no errors, it is just during deployment to SQL Server. As a work around for now I have split the .CS files into somewhat logical groups and created a seperate VS solution for each, all of these deploy with no problems.
For documentation and maintenance I would rather keep everything together in one VS Solution for each Database.
Again thanks for your reply.
Glenn
No comments:
Post a Comment