Quantcast
Channel: SQL Server Data Access forum
Viewing all articles
Browse latest Browse all 4164

How to use a store procedure from sql in asp.net and bind it to grid view?

$
0
0

HI

i write a store procedure in M-sql-server that select fields from my view and has a parameter.

now i want that my gridview in asp.net call the datas from that procedure (by coding not by wizard).

this is my procedure

USE [KDUIS-v1]
GO
/****** Object:  StoredProcedure [dbo].[Student_Registration]   
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE  [dbo].[Student_Registration] @SSID int
AS
SELECt TRoom ,DayOfWeek ,ET ,ST ,LNProfessor ,NProfessor ,Code ,  TLesson
 
FROM View_Student_Registration
WHERE View_Student_Registration.SubjectStudyId=@SSID


Viewing all articles
Browse latest Browse all 4164

Trending Articles