It will accept strings, numbers or objects. To set default value for the drop down list, you need to create a general drop down list first, and then use a formula. If the previously declared variable has no initial value, both the SET and SELECT statement will act in the same way, assigning NULL value to that variable. To illustrate: DECLARE @SETVariable INT, @SELECTVariable INT SET @SETVariable = 1 SELECT @SELECTVariable = 2. Great article, very simple to understand, direct to the point! SET and SELECT may be used to assign values to variables through T-SQL. In reactive form we can use setValue and patchValue of FormGroup and in template-driven form we can use ngModel to set value in select box dynamically. please help Posted 6-Mar-17 19:06pm Both single select and multi-select optionsets are saved automatically with the SubmitForm(). 2 years ago. Here are a few examples discussed. I searched on google but didn't found the satisfactory answer. Create a drop down list. Just like SET, we can also use SELECT to assign values to the variables, post declaring a variable using DECLARE. Reply. SET is used to assign a value to a variable and SELECT is used to assign a value or to select value from a variable/table/view etc. The page is loaded with real data, and the dropdown selection is set to a value that user had chosen previously. Company Name ----- Generic Name B. Return Value: A String, representing the value of the value attribute of an