Hi All,
Hope you can help me with this. I know very little about access, but have been asked to retrieve some data from the SQL Server through access. I have a stored procedure on the SQL server side that accepts a username as a parameter, and returns a list of roles associated with that user.
This works fine from SQL server.
I have set up an ODBC connection, and can query SQL server tables from access.
If I try to run the stored procedure WITHOUT the parameter, I get this error
EXEC rc.dbo.GetUserSecurityLevels
ODBC--call failed
[Microsoft][ODBC SQL Server Driver][SQL Server]Procedure or function 'GetSecurityLevels' expects parameter '@UserName', which was not supplied. (#201)
This indicates that access it at least seeing my stored procedure. But I don't know how to specify the parameter. I've tried all types of syntax:
EXEC rc.dbo.GetUserSecurityLevels('fred')
EXEC rc.dbo.GetUserSecurityLevels("fred")
EXEC rc.dbo.GetUserSecurityLevels(fred)
Would someone be able to point me in the right direction here?
Thanks,
J
Hope you can help me with this. I know very little about access, but have been asked to retrieve some data from the SQL Server through access. I have a stored procedure on the SQL server side that accepts a username as a parameter, and returns a list of roles associated with that user.
This works fine from SQL server.
I have set up an ODBC connection, and can query SQL server tables from access.
If I try to run the stored procedure WITHOUT the parameter, I get this error
EXEC rc.dbo.GetUserSecurityLevels
ODBC--call failed
[Microsoft][ODBC SQL Server Driver][SQL Server]Procedure or function 'GetSecurityLevels' expects parameter '@UserName', which was not supplied. (#201)
This indicates that access it at least seeing my stored procedure. But I don't know how to specify the parameter. I've tried all types of syntax:
EXEC rc.dbo.GetUserSecurityLevels('fred')
EXEC rc.dbo.GetUserSecurityLevels("fred")
EXEC rc.dbo.GetUserSecurityLevels(fred)
Would someone be able to point me in the right direction here?
Thanks,
J