Sunday, September 16, 2007

Passing date as value in stored procedure

Salam ,
2day , whn I was working on web services , had a task to pass data as value in stored procedure,(I created sp in dataset).i didn’t knw how to pass date bt thx DANISH BHI onceagin,he helped me agin.

[WebMethod]
public void addemp(string name ,string date,int ptcl)
{
DateTime d = DateTime.Parse(date);
empTableAdapter e = new empTableAdapter();
e.InsertTest(name,d,ptcl);

}
Simple???
Danish bhi u rocks…n don’t forget to pas comments as m doing some marketing stuff tooo. heheheh

No comments: