API Query Permissions

Hi

 

I have some code where I use the api query object to call a stored procedure.

 

string result = api.query(@"dbo.get_manu_list", ref res);

 

This works on some of our machines but not others?  I presume this is down to permission problem.

 

In this scenario what account does the query method pass to the SQL server?

 

TIA.