I checked and the authentication call is actually before the call to the stored procedure, so I don't think that is the issue.
Now I am wondering if the variables for my stored procedure are not defined correctly and therefore aren't pulling the results. If I run the command:
"sp_encrypt_text password, @returnencrypted"
in SQL, I get a statement that the command was completed successfully, but no encrpyted password displays.
If I execute the stored procedure using SQL functions, here is the logic it creates:
DECLARE @return_value int,
@return_encrypted varchar(255)
EXEC @return_value = [dbo].[sp_encrypt_text]
@unencrypted = N'password',
@return_encrypted = @return_encrypted OUTPUT
SELECT @return_encrypted as N'@return_encrypted'
SELECT 'Return Value' = @return_value
GO
Based on this, should my call to the stored procedure from PHP be phrased differently? Any suggestions?
I really appreciate the help!