Hi there,I have a stored procedure that selects the value of the order date in a table named Order and i am currently experiencing some problems with it. I have a record (orderID=5 primary key) that i want to retrieve in an application (Tibco Staffware). Executing the stored procedure in the Enterprise manager/ SQL Query analyzer or retrieving the order date in Staffware with OrderID value "1" work fine, however running the sp with the input as "5" for the orderid in Staffware the ODBC SQL server driver gives the error message:ODBC SQL Server Driver: "Indicator variable required but not supplied"Detail:CREATE PROCEDURE cus_lookuporder ( @OrderID int, @orderdate char(8) output)AS set @orderdate = (Select CONVERT(CHAR(8), orderdate, 3) from "Order" where OrderID = @OrderID)GO
Table design:OrderID int 4 Orderdate datetime FK_ProductID int 4 FK_CustomerID int 4 FK_ScheduleID int 4Data: 1 8-4-2006 2 8-4-2006 3 5-4-2006 4 4-4-2006 5 1-5-2006 *The other 3 columns have null values for all records.