I am trying to write a view or query using Paramters.
I want the user to be prompted to enter a License Type and then be prompted to enter a county number. I want data to appear based on these parameters entered in by the user in paramter boxes as in Access. I know the SQL SERVER 2005 does this a different way. I am learning and wish to understand this major concept before moving forward.
Select StrLicType, License#, and County#
FROM TBLLicense
Where STRLICTYpe = "010", "020" , "030", and "040" and County# = "35";
I know the above SQL Statement will work this way with me listing the paramters, but I want the user to enter the LIcType and County in when prompted.
I want the user to be prompted to enter a License Type and then be prompted to enter a county number. I want data to appear based on these parameters entered in by the user in paramter boxes as in Access. I know the SQL SERVER 2005 does this a different way. I am learning and wish to understand this major concept before moving forward.
Select StrLicType, License#, and County#
FROM TBLLicense
Where STRLICTYpe = "010", "020" , "030", and "040" and County# = "35";
I know the above SQL Statement will work this way with me listing the paramters, but I want the user to enter the LIcType and County in when prompted.