Sir/Madam,
I have doubt with calling stored procedure from front end.
Create Procedure ProcedureName
(@Input1 DataType
@Input2 DataType)
AS
Begin
SELECT * FROM Table1
Insert INTO Table1 VALUES(@Input1, @Input2)
End
In the above procedure how to get value for select command.
With Regards,
Gomathi.P
Loading

R JPosted Sep 21, 2010, 7:15 AM
(@Input1 DataType
@Input2 DataType)
AS
Begin
SELECT * FROM Table1
Insert INTO Table1 VALUES(@Input1, @Input2)
SELECT * FROM Table1
End
-------
now execute the stored procedure like this
Gomathi PalaniswamyPosted Sep 21, 2010, 6:52 AM
Is it possible to exec select command alone with this procedure?
With Regards,
Gomathi.P
R JPosted Sep 21, 2010, 6:45 AM
to call the stored procedure from front end... follow this
1. Create a new C# Windows Application project.
2. From the Toolbox, drag and drop a DataGrid onto the Form. Resize it as necessary.
3. Double-click on the Form to generate the Form_Load event handler. Before entering any code, add "using System.Data.SqlClient" at the top of the file.
Enter the following code:
Manikavelu VelayuthamPosted Sep 21, 2010, 6:36 AM
Create Procedure ProcedureName
(@Input1 DataType
@Input2 DataType)
AS
Begin
SELECT * FROM Table1
Insert INTO Table1 VALUES(@Input1, @Input2)
SELECT * FROM Table1
End