Hello
Below is the stored procedure that i had created
Code:
CREATE procedure POS_OrderLine
@newOrderID varchar(50),
@ItemID numeric (4),
@productClass numeric(4),
@MenuGroup varchar(50),
@ProductName varchar(50),
@LineNumber numeric(4),
@UnitPrice float(8),
@Extra bit(1),
@Qty numeric(4),
@comment varchar(200)
--@cnt numeric(4),
-- @totcnt numeric(4)
AS
Insert into OrderLine(OrderID, ItemID, ItemClass, MenuGroup, ProductName,LineNumber, UnitPrice, Extra, Quantity, Comment, CreatedOn )
Values
(@newOrderID,@ItemID,@productClass,@MenuGroup,@ProductName,@LineNumber,@UnitPrice,@Extra,@Qty,@Comment, getdate())
While compiling the Procedure it gives me an error
Invalid datatype for the parameter
And In the code in C# I have declared it as SqlDbType.Bit,
but the error i get is as below
"String was not recognized as a valid Boolean."
Vivek Shah