HomePosts tagged โ€œSQL Serverโ€

SQL Server

Showing 1 - 20 of 42 results
If you want to return the current date time in SQL Server , the easiest way to do it is...
By default , the SQL Server listens to the port number 1433 and assume that if your server name is...
There are times when you might have a column names in your SQL Server database table that might looks like...
There are times when you want to add an column with a default value to the existing table in SQL...
You might have a scenario where you want to find out how much space that each of the tables in...
Hereโ€™s another tip where you could export the query result to .csv file in SQL Server. How to Export the...
SQL Server provides an function ISNULL if the value placed in the 2nd parameter if the first parameter passed to...
Below is a sample SQL query that demonstrates how to count the number of tables in a SQL Server database...
Last few weeks , I have been playing around with this cool tool called Open DBDiff . As the name...
To check if the table exists in a database in SQL Server , you can use the INFORMATION_SCHEMA view. How...
When we want to specify a alias for a column in SQL Query , we tend to use the double...
Microsoft SQL Server comes in different versions that includes SQL Server Enterprise SQL Server Business Intelligence SQL Server Standard SQL...
If you want to pause the execution of the code block until a specific time is reached , you can...
Assume a scenario where you are trying to get the records from the table where some of the records contains...
When we work on SQL Server query , we use the AS keyword to specify the alias name for a...
Below are few points that differentiate the DELETE and TRUNCATE command. Sl. No. DELETE TRUNCATE 1 This removes the rows...
You can create a Database Backup in SQL Server easily by using the SQL Scripts. Just specify the BACKUP DATABASE...
You might want to sort the results of an query in a different order from the traditional sort (Ascending/Descending) order....
Assume that you have a table named โ€œEmployeeโ€ in MS SQL Server and you would like to delete the top...
There are times when you donโ€™t have a specific value to find but you might have to use the general...