June 29, 2011 at 12:31 pm
I was reading an article from MSDN which says that a stored procedure created with managed code can run on a client computer, I've been looking for several sites in the MSDN and the web and have not found how to achieve it, I hope some of you may guide me or give me a reference where I can achieve this, thanks for your kind attention.
Regards.
June 29, 2011 at 1:07 pm
ChacMoll (6/29/2011)
I was reading an article from MSDN which says that a stored procedure created with managed code can run on a client computer, I've been looking for several sites in the MSDN and the web and have not found how to achieve it, I hope some of you may guide me or give me a reference where I can achieve this, thanks for your kind attention.Regards.
The section in question:
Choosing Between Execution in the Server and Execution in the Client
Another factor in your decision about whether to use Transact-SQL or managed code is where you would like your code to reside, the server computer or the client computer. Both Transact-SQL and managed code can be run on the server. This places code and data close together, and allows you to take advantage of the processing power of the server. On the other hand, you may wish to avoid placing processor intensive tasks on your database server. Most client computers today are very powerful, and you may wish to take advantage of this processing power by placing as much code as possible on the client. Managed code can run on a client computer, while Transact-SQL cannot.
This is talking about managed code in general. Examples would be a Windows Console App or a Windows Forms App written in C#. It is poorly worded IMO but they are not implying that managed code written for and hosted inside a SQL Server database can be executed on a client computer.
The conversation is more towards where to put your application code, i.e. the separation of responsibilities.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
June 29, 2011 at 1:16 pm
I agree with opc.three's read on your question, SQLCLR code is always run on the machine running SQL Server. What you can do is something related to Service Broker called "External Activation" where you can trigger code external to the database, you cannot really call it directly but you can cause it to be triggered. I know .
See this url: http://msdn.microsoft.com/en-us/library/ms171617.aspx
CEWII
June 29, 2011 at 2:47 pm
Thank you very much!
You are right, indeed this was a problem of understanding in my reading, but I'm interested to support me if you know of any technology or method (other than an App) that allows me to exploit the resources of the client in terms of access to the database.
June 29, 2011 at 2:52 pm
ChacMoll (6/29/2011)
Thank you very much!You are right, indeed this was a problem of understanding in my reading, but I'm interested to support me if you know of any technology or method (other than an App) that allows me to exploit the resources of the client in terms of access to the database.
Not to my knowledge. RDBMS platforms are typically server/client, not distributed. What is motivating these questions? What are you trying to do?
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply