How to get all tables those are having a primary key
How to get all the tables in database those are having primary key constraints ?
![]()
This website provides a SQL server Tutorial, SSRS, Power BI, Python, Azure basics and advanced tutorials for beginners and professionals .
You will find out a step-by-step walk through of the basics and advanced topics with practical and include numerous hands-on activities.
How to get all the tables in database those are having primary key constraints ?
![]()
SQL Server IF..ELSE block is a control-of-flow that allows you to execute or skip a statement block based on a specified condition.Ā Ā
SYNTAX
IF Boolean_expression
{ sql_statement | statement_block }
[ ELSE { sql_statement | statement_block } ]Ā Ā
SYNTAX
IF Boolean_expression
{ sql_statement | statement_block }
[ ELSE { sql_statement | statement_block } ]
![]()
SQL Server WHILE loop sets a condition for the repeated execution of an SQL statement or statement block.
![]()
SQL Server UNPIVOT allow us to transform columns of a table-valued expression into column values that is rotating columns into rows.
It performs a reverse operation of SQL Server PIVOT.
SYNTAX
SELECT …
FROM …
UNPIVOT (
FOR
[ … ]
![]()
What is the difference between SQL Server Stored Procedures and User Defined Functions (UDF)?
Following are the some major difference between Stored procedures and User Defined functions
Return a value
Stored procedure may or may not return a value while UDF function must return a value.
![]()
NCHAR data type is used to store Unicode string data of fixed-length.
NCHAR data type is used to store Unicode string data of fixed-length.
It stores data at 2 byte per character.
It supports up to 4000 characters.
![]()
SQLĀ Server NVARCHAR is used to store uniqcode string data of variable length, it can store both unicode and non unicode strings.
![]()
SQL Server VARCHAR Data Type is used to store non-unicode string data of varaible length.
![]()
How to Display calendar dates for any n numbers of years in SQL Server?
![]()
Following are the links to download SQL Server 2019 and Database sample files
![]()
SQL Server CHAR data type is used to store non-Unicode string data of fixed-length.
![]()
SQL Server OFFSET FETCH clauses are used to set the limit to number of rows returned by a query.Ā Ā
![]()
SQL Server PATINDEXĀ function is a string function that returns the starting position of the first occurrence of a pattern in a specified expression.
![]()
SQL Server @@Version is a configuration function that returns system and build information for the current installation of SQL Server. SYNTAX @@Version Return Type of… Read More »SQL Server @@Version
![]()
SP_MONITOR is a SQL Server Database Engine system stored procedure which is used to Display statistics about Microsoft SQL Server.
SYNTAX
EXEC sp_monitor
![]()
SQL Server SP_NAMEĀ is SQL Server Database Engine stored procedure that is used to Changes the name of a user-created object in the current database. This object can be a table, index column or alias datatype.
![]()
TheĀ SQL Format function is a SQL Server string function which is used to format the specified value in the given format such as to format the date/time values and number values.
![]()
How to Display currency symbol in SQL Sever?
Sometimes we are required to display a currency symbol along with the amount in query result set, It becomes challenge to displaying a currency symbol with amount.
![]()