Skip to content
  • Home
  • Roadways Time
  • Development
    • .Net
      • Asp.Net MVC
      • C#
      • Xamarin
      • Entity/LINQ
    • Worpress
      • Optimisation
      • Enhancing Functionality
    • Web Technologies
      • Javascript
      • JQuery
    • SQL Server
      • Stored Procedures
  • Networking
    • Firewalls
  • Books
  • Important Links
  • Symex
  • Linux
  • Interview Questions
    • .Net Core
    • .Net MVC
    • C#
    • Css
    • Design Patterns
    • Javascript
    • Jquery
    • Unit Testing
Technical Blog

Learning Means Growing

Category: SQL Server

Development SQL Server Stored Procedures

Continue

September 24, 2019September 24, 2019 by sumit

The CONTINUE statement stops the current iteration of the loop and starts the new one. The following illustrates the syntax of the CONTINUE statement: 1234567 WHILE Boolean_expressionBEGIN    — code to be executed    IF condition        CONTINUE;    — code will be skipped if the condition…

Development SQL Server Stored Procedures

Break

September 24, 2019September 24, 2019 by sumit

SQL Server BREAK statement overview In the previous tutorial, you have learned how to use the WHILE statement to create a loop. To exit the current iteration of a loop, you use the BREAK statement. The following illustrates the typical syntax…

Development SQL Server Stored Procedures

while Loop

September 24, 2019September 24, 2019 by sumit

Overview of WHILE statement The WHILE statement is a control-flow statement that allows you to execute a statement block repeatedly as long as a specified is TRUE. The following illustrates the syntax of the WHILE statement: 12 WHILE Boolean_expression        { sql_statement…

Development SQL Server Stored Procedures

IF Else

September 24, 2019September 24, 2019 by sumit

The IF…ELSE statement is a control-flow statement that allows you to execute or skip a statement block based on a specified condition.  IF statement The following illustrates the syntax of the IF statement: 1234 IF boolean_expression   BEGIN    { statement_block }END In this syntax, if…

Development SQL Server Stored Procedures

Begin END

September 24, 2019September 24, 2019 by sumit

Overview of the BEGIN…END Statement The BEGIN…END statement is used to define a statement block. A statement block consists of a set of SQL statements that execute together. A statement block is also known as a batch. In other…

Development SQL Server Stored Procedures

Output Parameters

September 24, 2019September 24, 2019 by sumit

Creating output parameters To create an output parameter for a stored procedure, you use the following syntax: 1 parameter_name data_type OUTPUT A stored procedure can have many output parameters. In addition, the output parameters can be…

Development SQL Server Stored Procedures

Stored Procedure Basics

September 24, 2019September 24, 2019 by sumit

Creating a simple stored procedure The following SELECT statement returns a list of products from the products table in the BikeStores sample database: 1234567 SELECT product_name, list_priceFROM production.productsORDER BY product_name; To create a stored procedure that wraps this query, you…

Development SQL Server Stored Procedures

Parameters

September 24, 2019September 24, 2019 by sumit

Creating a stored procedure with one parameter The following query returns a product list from the products table in the sample database: 1234567 SELECT    product_name,    list_priceFROM     production.productsORDER BY    list_price; You can create a stored procedure that wraps this query using the CREATE…

Development SQL Server Stored Procedures

Variables

September 24, 2019September 24, 2019 by sumit

What is a variable A variable is an object that holds a single value of a specific type e.g., integer, date, or varying character string. We typically use variables in the following cases: As a loop counter to count…

Development SQL Server

Saving Changes is not permitted

September 15, 2019September 24, 2019 by sumit

Open SQL Server Management Studio From the file menu, choose Tools à Options From the left menu, choose Designers Uncheck the box entitled Prevent saving changes that require table re-creation Press OK to save

Posts navigation

Newer posts
© 2023 Technical Blog | WordPress Theme Design by Superb