adspace


How do I create a stored procedure in dbml?

Answer Posted / Anil Kumar Kumar

{"create_stored_procedure": [n {"name": "sp_MyStoredProcedure", "parameters": [n {"parameter_name": "@param1", "data_type": "int", "is_input": true}, n {"parameter_name": "@param2", "data_type": "varchar(50)", "is_output": true}n ]}, n {"sql_statement": "CREATE PROCEDURE sp_MyStoredProcedure @param1 int, @param2 varchar(50) AS SELECT Column1, Column2 FROM Table_Name WHERE Column3 = @param1"}n]}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?

2565


Does view occupy space?

1018


What are the source of constraints?

1008


Why we use the openxml clause?

1078


What is the difference between for xml raw and for xml auto?

1114


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1022


What are the different types of subquery?

1233


do you know how to configure db2 side of the application? : Sql server database administration

1123


List out the different types of locks available in sql server?

1049


How do I find the sql server version?

1101


Why and when do stored procedure recompile?

1057


How to remove duplicate rows from table except one?

1087


what is the Ticketing tool used in Wipro technologies at Bangalore...???

8227


How do I find query history in sql server?

1022


What is an indexed view?

1021