Community discussion forum

Stored Procedure

  • 10 months ago
    I have a form with a text box, button, and a datagridview. I want to populate the datagridview by running a stored procedure that uses the value in the textbox as a parameter executes the stored procedure and then populates the datagridview. I am new so as much info would be great. An example would be AWESOME.
    Post was edited on 28/12/2008 23:33:27 Report abuse
  • 10 months ago
    http:///www.agbabanakliyat.com/
  • 10 months ago
    try this con=new sqlconnection( datasource=server1;internalcatalog=database1;intergrated security=true) cmd=new sqlcommand("UspDisplay",con) cmd.CommandType = CommandType.StoredProcedure con.Open() cmd.ExecuteNonQuery() con.Close() example sp: create procedure UspDisplay ( @id int, @Display bit output ) as begin select * from table where id=@id end
  • 3 months ago

    teku www.agbabanakliyat.com

Post a reply

Enter your message below

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter!