Group: StrataFrame Users
Posts: 430,
Visits: 507
|
Hi Edhy. Thanks for your reply.
I am still getting a Sql Exception--> Command failed when converting Date and/or Time from character string. I am initially taking the data from a SF Date Box. My Code is:
this.dateFrom is a SF DateBox
-- Client Code -- DateTime x = new DateTime(this.dateFrom.CurrentYear, this.dateFrom.CurrentMonth, this.dateFrom.CurrentDay); comm.Parameters.AddWithValue("@DateFrom", x).SqlDbType= SqlDbType.Date;
-- Sql SProc Code --
ALTER PROCEDURE [dbo].[sprSelectSalesFormTrans] @DateFrom Date, @DateTo Date, @TranFrom Char(10), @TranTo Char(10), @Post Char(1)
|