i am trying to send a datatable into sql server 2008 table by a stored procedure.
here is my sql stored proc.
create type dbo.orderUDT AS Table
(   
    dealerid int,
    dealername varchar(50),
    productname varchar(50),
    packetqua int,
    productprice varchar(50),
    orderdatetime datetime2
)
GO
ALTER proc [dbo].[send_order]
(
    @datatable AS dbo.orderUDT READONLY
)
AS
Insert into Gopal_Namkeen.dbo.OrderTable 
    Select *,SYSDATETIME() from @datatable
i am getting the following error =
An explicit value for the identity column in table 'Gopal_Namkeen.dbo.OrderTable' can only be specified when a column list is used and IDENTITY_INSERT is ON.
also when i hover on the "@datatable AS dbo.orderUDT READONLY"..it shows that @datatable has an invalid datatype.
Please guide me where i am wrong. also note that i want to use stored procedure only. Thank you.