C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




stored Procedure


Posted Date: 26 Sep 2006      Total Responses: 2

Posted By: Samuel chukudu       Member Level: Gold     Points: 2


Hi
Still having a problem

I am using ASP to connect to SQL Server 2000. So how do i retreive data from the table using stored procedure, infact i want to know how which methods are used to conect to and to retreive from a Stored Proceduce

Please provide with the complete program.

hope you u understand

Thanx in advance




Responses

Author: Rajaraman    26 Sep 2006Member Level: DiamondRating:     Points: 2
http://databases.aspfaq.com/database/using-stored-procedures.html

http://www.asp101.com/articles/wrox/asp30/26100903.asp


Author: SUBRAMANIAN    26 Sep 2006Member Level: SilverRating:     Points: 2
hai Friends
/* I have put some sample coding, I hope this is useful for u*/

imports system.data.sqlclient

Button_Click Event

Dim con as new sqlconnection("data source=sys1;uid=sa;pwd=sql;initial catalog=northwind")
dim da as new sqldataadapter("usp_customers",con)
da.selectcommand.commantype=commandtype.storedprocedure
dim ds as new dataset
da.fill(ds,"DataSetName")
me.datagrid1.datasource=ds

please Run this query in northwind database
use northwind
go
create procedure usp_customers
as
begin
select * from customers
end




Post Reply
You must Sign In to post a response.
Next : Any one know the interview questions in Sonota software?
Previous : Automation error : Logon failure: unknown user name or bad password
Return to Discussion Forum
Post New Message
Category: General

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

teleconferencing

Contact Us    Privacy Policy    Terms Of Use