Which code segment should you use?

Correct Answer for the following Question is given below

You need to create the object used by the parameter of usp_UpdateEmployeeName.Which code segment should you use?Example Usage of Table-Valued Parameters (Database Engine) http://msdn.microsoft.com/en-us/library/bb510489.aspx (Benefits of using Table-Valued Parameters)/* Create a table type. */CREATE TYPE LocationTableType AS TABLE( LocationName VARCHAR(50), CostRate INT );GO/* Create a procedure to receive data for the table-valued parameter. */ CREATE PROCEDURE dbo. [email protected] LocationTableType READONLYASSET NOCOUNT ONINSERT INTO AdventureWorks2012.Production.Location(Name,CostRate,Availability,ModifiedDate)SELECT *, 0, GETDATE()FROM @TVP;GOAlso:http://msdn.microsoft.com/en-us/library/ms175007.aspx(CREATE TYPE *tabletypename* AS TABLE)http://msdn.microsoft.com/en-us/library/ms175010.aspx(table data types) Wrong Answers:http://msdn.microsoft.com/en-us/library/ms174979.aspx(CREATE TABLE) http://msdn.microsoft.com/en-us/library/ms189462.aspx(CREATE SCHEMA)http://msdn.microsoft.com/en-us/library/ms176009.aspx(CREATE XML SCHEMA COLLECTION)


Which code segment should you use?



CREATE TYPE EmployeesInfo AS Table


CREATE TABLE EmployeesInfo

Correct Answer

The Correct Answer for this Question is

CREATE TYPE EmployeesInfo AS Table


The Question – Which code segment should you use? has been answered correctly and answers for the question is CREATE TYPE EmployeesInfo AS Table

More about these Exams

These Exam Questions and the order of these questions keep changing. but the answers are obviously same. so if you don’t find a question after another we suggest you search it in the search box and we are sure you’ll find it. you can bookmark this site for Quick access in future.

We hope you found it helpful don’t forget to leave a comment if you feel a need to correct or ask we’re always here to help.

you can find more here at mnccertified

Feel free to contact via comment or email.

Happy Learning

Cheers, Team MNCcertified

Leave a Comment