Subject: Help
Posted By: Alina Post Date: 9/19/2006 1:19:44 PM
I have a sql procedure
string strCreare="CREATE PROCEDURE pret_select (@param INTEGER, @par INTEGER) AS "+" SELECT sum(pret)as suma FROM contracte WHERE datepart('yyyy',[data])=@param and datepart('m',[data])=@par ";

And a want to print this result in a textBox and i did this:
textBox2.Text=Convert.ToString(dr["suma"]);

but it's not working. What i've done wrong?
I test it in Acces and it work's.

Reply By: ashu_from_india Reply Date: 10/3/2006 3:57:39 AM
whts is the error message tht u get??
can u post ur complete code


Go to topic 50527

Return to index page 158
Return to index page 157
Return to index page 156
Return to index page 155
Return to index page 154
Return to index page 153
Return to index page 152
Return to index page 151
Return to index page 150
Return to index page 149