This is a discussion on How to retrive values from Stored procedures in .net? within the SQL Server 2005 Tutorials forums, part of the Articles and Tutorials category; Hello anyone, Can anyone tell me how to retrive the values from "Stored Procedures" using .net. I know oneway is ...
|
|||||||
| SQL Server 2005 Tutorials SQL Server 2005 Tutorials and Articles discussions |
![]() |
| LinkBack | Thread Tools | Search this Thread |
|
|||
|
I would use sqldatareader.. so you can loop throug..
there is no need to define any out parameters in the procedure.. create procedure in parameters select * from table retruns all the records you need as datareader which you can loop through... |
|
|||
|
if u use sqlcommand for executing stored procedure by wizard, return value stored in sqlcommand.parameter(0).value after sqlcommand.executeScalar().
if you write the code by yourself, you must add a parameter as RETURN type in add parameter list. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with stored procedure | NareshShroff | SQL Server 2005 Tutorials | 1 | 07-06-2007 04:16 AM |
| .NET Certification List | lokeshm | MicroSoft Certification | 1 | 06-02-2006 06:21 AM |
| Microsoft .NET : An Introduction to the .NET FCL, Part 5 | techguru | Microsoft .NET Tutorials and Articles | 0 | 08-29-2005 03:25 PM |
| Visual Basic : Security Concerns for Visual Basic .NET and Visual C# .NET Programmers | techguru | Visual Basic Tutorials | 0 | 08-29-2005 01:27 AM |
| Free VB .NET Std Ed. and ASP.NET Develop. Book | sanereddy | Microsoft .NET Tutorials and Articles | 0 | 10-05-2004 01:59 PM |