Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 131923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:10:54+00:00 2026-05-11T06:10:54+00:00

I have a service broker activated stored procdedure that runs fine when executed in

  • 0

I have a service broker activated stored procdedure that runs fine when executed in management studio. However, when it is activated on the queue, the sql server error log shows the following message:

'The activated proc [dbo].[FileUploadAsyncWorker] running on queue AsyncProcessing.dbo.FileUploadRequestQueue output the following:  'You do not have permission to use the bulk load statement.' 

I think that the ‘offending’ statement in FileUploadAsyncWorker is: insert into FileContent (filename, content) select @filename, content from openrowset (bulk…

How do I tell under which user account the stored procedure is running?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:10:55+00:00Added an answer on May 11, 2026 at 6:10 am

    Let the stored procedure insert the username into a table:

    CREATE TABLE mytemptable (username varchar(max))     INSERT INTO [MyTempTable] SELECT user 

    My guess is that the SP will run as the SQL Server Service account.

    You can also use the SQL Profiler to find out the account which is executing your sp.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using SQL Service Broker. I have a queue that another process is
I've written a stored procedure that takes 15 min when executed from Management Studio.
We currently have an application that uses service broker to queue messages to sent
I'm writing a high load application that uses SQL Server Service Broker. I have
I have a SQL Server 2005 Service Broker queue ProductChangeMessages and a Service Broker
Sql Service Broker uses the following heuristic to determine when you have messages in
I have setup multiple SQL Service Broker Queues in a database but have not
I am using Service Broker external activation. I have created event notification for queue
I have a service broker which calls a stores procedure sp_dequeue queue --> ACTIVATION
I have a table with a complex trigger that eventually calls the Service Broker

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.