title: How to temporarily give sysadmin to a user?
body: <p>Below code is in a stored procedure and gives the following error when run under user: premfguser.
  Access to the remote server is denied because the current security context is not trusted.</p>
  
  <pre><code>SET @provider = 'Microsoft.Jet.OLEDB.4.0'
  SET @ExcelString = 'Excel 8.0;Database=' + @fn
  
  EXEC('INSERT INTO OPENROWSET(''' + @provider + ''',''' + @ExcelString + ''',''SELECT * FROM [Sheet1$A2:L2]'') 
  SELECT [ITEMNUMBER],'''',[ITEM_DESCRIPTION],[CASEPACK],[UNIT PRICE],[CASE PRICE],[WEIGHT],[CUBE],[CASE DIMS],[UPC],[CASE UPC],[Q Comments] FROM [ORDER SUMMERY] WHERE [Order #] = ''' + @OrderNumber + '''')
  </code></pre>
  
  <p>When I add premfguser to sysadmin it works. How can I run this code without permanently giving sysadmin to premfguser? </p>