Stops the message that shows the count of the number of rows affected by a Transact-SQL statement or stored procedure from being returned as part of the result set.Syntax: SET NOCOUNT { ON | OFF } RemarksWhen SET NOCOUNT is ON, the count is not returned. When SET NOCOUNT is OFF, the count is returned.The...
Sunday, 14 December 2014
Wednesday, 10 December 2014
Built-in Functions (Transact-SQL)
CHARINDEX - Searches an expression for another expression and returns its starting position if found.
DECLARE @FullName VARCHAR(100)
SET @FullName = 'Clark Kent'
select CHARINDEX(' ', @FullName)
Output – 6
STUFF - The STUFF function inserts a string into
another string. It deletes a specified...
Monday, 21 July 2014
Different Types of SQL Joins
S
ql joins are used to fetch/retrieve data from two or more
data tables, based on a join condition. A join condition is a relationship
among some columns in the data tables that take...
Basics of SQL Commands
SQL commands are a set of instructions that are used to
interact with the database like Sql Server, MySql, Oracle etc. SQL commands are
responsible to create and to do all the manipulation on the database. These are
also responsible to give/take out access rights on a particular database
Sql Commands...