Solution: Example Stored Procedure. Create procedure Test (@ReturnValue Nvarchar(10…
I get this error Procedure expects parameter '@statement' of type 'ntext/…
Error establishing a database connection in WordPress Example: There are several …
List Out All Database Restore Date Time. WITH LastRestores AS ( SELECT Databa…
Sql cumulative sum Example: CREATE TABLE Test (id int,Number int); insert into tes…
how many sundays in month sql query Solution: Use this function. First Find out H…
I'm getting the error like this "The transaction log for database 'xxx…
Multiple SQL rows merge into single row if the Code is same Example: Create t…
I am getting below said collation error.. Example: Solution: These two collation…
Example: select convert(date,format(Getdate(),'yyyy')+'/'+format(Bir…
Get the list of an employee who have their birthdays today -- Sample Query Creat…
Solution: --Get the first numeric value from the alphanumeric string SELECT Naration…
How to get first day of the current month in Mysql Example: --First day of the curre…
We can use sys.objects catalog view as shown in the below script to get all the funct…
How to get first day of the next quarter in Mysql Example: --First day of the next q…
Example: --First day of the current quarter SELECT DATEADD(qq, DATEDIFF(qq, 0, GETDA…
Example: --First day of the previous quarter SELECT DATEADD(qq, DATEDIFF(qq, 0, GETD…
We can use the sys.sysdatabases catalog view to check the existence of a Database. H…
We can use the sys.procedures catalog view to check the existence of a stored proedur…
We can use the sys.Tables catalog view to check the existence of the Table. Here in …
Social Plugin