c# - Calling stored function using user input variable -


Newbie here I am creating a web app in C # which uses the database to display results through a variable located within a dropdown.

So far, I have a procedure that looks like the following;

  Use [Energy Expansion] Go SET ANSI_NULLS Go to go to the conversion process QUOTED_IDENTIFIER [dbo]. [getbysID] @SchoolID int select as * invoice from energy where dateID by schoolID = @ schoolID;   

My question is, can the "School ID" represent a variable from the webpage? For example, the user selects a school from the dropdown, which sends a variable of "schoolID = 1" to represent a specific school. Does SQL school interpret properly? Or should I do some different way?

EDIT: Sorry for the awesome format here, I'm very new to this.



Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -