If you are creating dynamic application then must be used database. Before open the connection must to create connection string with the engine or database. Various database engine available in the market, which are SQL, MYSQL, OR...
Thursday, April 9, 2015
Sunday, February 1, 2015
Data Definition Language (DDL) Triggers in SQL
A DDL trigger is fired in response to DDL statements, such as CREATE TABLE or ALTER TABLE. DDL triggers can be used to perform administrative tasks, such as database auditing.
Database auditing helps in monitoring the DDL operat...
Sunday, November 9, 2014
Execute Batches multiple times using Stored Procedures in SQL
Batches are temporary in nature. To execute a batch more than once, you need to recreate SQL statements and submit them to the server. This leads to an increase in the overhead, as the server needs to compile and create the execu...
Implementing Triggers and its Types in SQL
In a relational database, data in a table is related to other tables. Therefore, while manipulating data in one table, you need to verify and validate its effect on data in the related tables. In addition, you might need to manip...
Wednesday, November 5, 2014
Creating Table-Valued Functions in SQL
A table-valued function returns a table as an output, which can be derived as a part of a SELECT statement. Table-valued function return the output as a table data type. The table data is a special data type used to store a set o...
Tuesday, November 4, 2014
Creating Scalar functions in SQL
In earlier article we have discussed about user defined functions that have the limited scope in sql programming in compare to stored procedures. User defined function have two types i.e. scalar function and table-valued function...
Wednesday, October 29, 2014
How to Implement User Defined Function in SQL
Similar to the stored procedures, you can also create functions to store a set of T-SQL statements permanently. These functions are also referred to as user-defined functions (UDFs). A UDF is a database object that contains a set...
Tuesday, October 14, 2014
Calling a Procedure from another Procedure: SQL
At times, you might need to use the values returned by a procedure in another procedure. For this, you can execute or call one procedure from within another procedure.
A procedure that calls or executes another procedure is know...