Hello All
I have a stored procedure with the following code
(extract):
CREATE TABLE #TmpForm29Part4 (F4_Type char (1),
F4_BankCode int, F4_RegionCode int, F4_RegionSubCode int)
INSERT #TmpForm29Part4
EXECUTE usp_ShowForm29Part4Base @intBankCode = 0, @datStartDate = @datStartDate,
@datEndDate = @datEndDate
SELECT * FROM #TmpForm29Part4Check
When I Run the Stored_Procedure from within the Access Project Database Window I get the following error:
Insert Error: Column name or number of supplied values does
not match table definition.
Fair enough you might say. But I have checked and rechecked the output from usp_ShowForm29Part4Base and it does agree with the table definition.
However the clincher here I think is the fact that the same stored procedure works OK when run from SQL Server Query Analyser and works OK when that stored procedure is set in the RecordSource of a form. This is only a problem when I Run the sp from the Database Window.
Has anyone else had this sort of problem?
Thanks in advance
Robert
I have a stored procedure with the following code
(extract):
CREATE TABLE #TmpForm29Part4 (F4_Type char (1),
F4_BankCode int, F4_RegionCode int, F4_RegionSubCode int)
INSERT #TmpForm29Part4
EXECUTE usp_ShowForm29Part4Base @intBankCode = 0, @datStartDate = @datStartDate,
@datEndDate = @datEndDate
SELECT * FROM #TmpForm29Part4Check
When I Run the Stored_Procedure from within the Access Project Database Window I get the following error:
Insert Error: Column name or number of supplied values does
not match table definition.
Fair enough you might say. But I have checked and rechecked the output from usp_ShowForm29Part4Base and it does agree with the table definition.
However the clincher here I think is the fact that the same stored procedure works OK when run from SQL Server Query Analyser and works OK when that stored procedure is set in the RecordSource of a form. This is only a problem when I Run the sp from the Database Window.
Has anyone else had this sort of problem?
Thanks in advance
Robert