Re: SQLOLEDB provider internally creates multiple connections to SQL server when commands executed asynchronous - can I control this?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On 13 авг, 17:59, "Bob Barrows [MVP]" <reb01...@xxxxxxxxxxxxxxx>
wrote:
I'm not sure I completely understand your description, but it seems that you
are misusing CONTEXT_INFO, which is intended to allow multiple batches to be
run on the same connection in order to facilitate the new MARS
functionality, not to allow multiple users to use the same user info. It
sounds as if you should be using the new "EXECUTE AS user" functionality to
accomplish your goal.
I am sorry I don't wrote it in the first post, I use MS SQL 2000
server, there is no EXECUTE AS functionality, and because I never know
about ADO internal connection pooling, our own server login procedure
stores user ID in context_info server storage to share the same user
context between all server procedures after our own user login. We
have many reasons to implement our own login procedure and we will use
it. I can use another storage for sharing user context info but what
is this storage?

I need to mark all connections (and their activities) that ADO creates
under the hood with the same tag on the server side from arbitrary
moment -- I named it as "our internal server login procedure".
First time @@SPID and dedicated table (master.dbo.sysprocesses with
context_info field) was good but ADO internal connection pooling is
bad because I want to execute parallel tasks in my application. And I
need to keep this mark on the server side, not as parameter in every
call to any of our security-depended server procedures.

I'll be glad to hear any succestions.
.



Relevant Pages

  • Re: Layout Advice
    ... Socket connections to the server would need to be initiated from the web server. ... "appearance" of a postback without going away from the client side JavaScript model. ... has arisen to tap some of the functionality from a webpage. ... Close Connection ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Outgoing POP3 email missing/lost/not received
    ... Funny thing is that I have had this ISP for 8 years and it has always been ... It looks like when you last ran CEICW, you set the ISP's mail server to: ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot connect client to server 2003
    ... you need to reconfigure the IP schema of your SBS ... On the SBS 2003 Server open the Server Management console. ... On the Connection Type page, click Broadband, and then click Next. ... Alternate DNS server, type the IP addresses that are provided by your ISP ...
    (microsoft.public.windows.server.sbs)
  • Re: Outgoing POP3 email missing/lost/not received
    ... ISP's mail server instead of the domain name on the ... SUMMARY OF SETTINGS FOR CONFIGURE E-MAIL AND INTERNET ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
    (microsoft.public.windows.server.sbs)
  • Re: Networking Question - VLANs on SBS 2003 Premium SP1
    ... port on the old router so I now have a segregated WLAN. ... be sure you do not enable any DHCP server in internal network. ... On the Connection Type page, click Broadband, and then click Next. ... On the Network Connection, You must enable and configure the network ...
    (microsoft.public.windows.server.sbs)