Quantcast
Channel: Welcome To TechBrothersIT
Browsing all 1876 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

How to generate drop Unique Constraint scripts in SQL Server Database - SQL...

Scenario:You are working as SQL Server developer, you need to generate scripts to drop all Unique Constraints in SQL Server Database.Solution:The below syntax can be used to drop Unique Constraint on...

View Article


What are the different ways to insert data into SQL Server Table - SQL Server...

Scenario:As SQL Server Developer, you have to come with different ways to insert data into SQL Server Table.Sometime you have to simply insert static records, sometime you have to insert data from...

View Article


Image may be NSFW.
Clik here to view.

How to insert rows in SQL Server Table by Edit Table Rows GUI - SQL Server /...

Scenario:You are working as SQL Server developer, you need to insert couple of records into dbo.Customer table but you don't want to use TSQL scripts. How would you insert data into table without using...

View Article

Image may be NSFW.
Clik here to view.

How to insert Excel or CSV data into Table by using Graphical User Interface...

Scenario:You are working as SQL Server developer, you got an excel file or CSV file that contains data for dbo.Customer table. How can you insert Excel or CSV data to table by using Graphical user...

View Article

Image may be NSFW.
Clik here to view.

How to generate Insert Statements from Excel Data and Load into SQL Server...

Scenario:You are working as SQL Server Developer, you received data in an Excel file for dbo.Customer tables. You need to load this data into dbo.Customer table. How would you generate Insert Statement...

View Article


Image may be NSFW.
Clik here to view.

How to backup or create new table from Existing SQL Server Table in SQL...

Scenario:You are working as SQL Server developer, you need to provide some update or delete scripts to update or delete data from a table.You want to take the backup of those records or if the table is...

View Article

Image may be NSFW.
Clik here to view.

How to generate Insert Statements from Text Files for SQL Server Table in SQL...

Scenario:You are working as SQL Server developer, you get text files such as comma separate values, Tab delimited or pipe delimited files. It is one time task and you need to generate insert statements...

View Article

Image may be NSFW.
Clik here to view.

How to generate Select query with all the columns from a table quickly in SQL...

Scenario:You are new to SQL Server and you want to select all the columns from SQL Server Table to see the data in SSMS.Solution:There are multiple ways to quickly select all the columns from a table...

View Article


How to restore Databases from backups files automatically in SQL Server - SQL...

Scenario:Let's say that you are working as SQL Server DBA and you tons of backups files sitting in one of the folder, you need to restore all those backups files to newly created DEV , QA or UAT...

View Article


Image may be NSFW.
Clik here to view.

How to quickly write Select Query in SQL Server - SQL Server / TSQL Tutorial...

You just started working with SQL Server and interested to learn how to select data from a table. Here are some tips for you1) Select all the columns from a table/ View by using *You can always use...

View Article

Image may be NSFW.
Clik here to view.

How to use Sorting ( Order By) in Select Statement in SQL Server - SQL Server...

Scenario:You are working as SQL Server developer, you need to output sorted data. Which Key words you would like to use in T-SQL To output sorted data?Solution:The Order by Keyword can be used to sort...

View Article

Image may be NSFW.
Clik here to view.

How to use Where clause in Select Statement in SQL Server - SQL Server / TSQL...

In this post we will get familiar with Where Clause in TSQL.Where clause is used in DML statements such as select, update, delete to filter the records according to criteria we used in where...

View Article

Image may be NSFW.
Clik here to view.

How to filter Rows with Null Values in Select Statement in SQL Server - SQL...

Scenario:Let's say that you are working as SQL Server developer. You need to write two queriesĀ  1) Return all the records from dbo.Customer table where Address column has Null valuesĀ  2) Return only...

View Article


Image may be NSFW.
Clik here to view.

How to Replace Null values with "Unknown" in Select Statement in SQL Server -...

Scenario:You are working as SQL Server developer, you need to query dbo.Customer table and replace Null values in Name column to Ā "Unknown Name". Which SQL functions will you use to replace Null value...

View Article

Image may be NSFW.
Clik here to view.

How to get Distinct Records from a table in SQL Server - SQL Server / TSQL...

Scenario:You are working as SQL Server developer, you need to get distinct (different) records from a table. Which statement will you use to get unique records from a table.Solution:Select distinct can...

View Article


Image may be NSFW.
Clik here to view.

How to get Top / Bottom N Records from SQL Server Table in SQL Server - SQL...

Scenario:You are working as SQL Server or TSQL Developer, you need to get top/bottom x rows from a table. How would you do that?Solution:You can use TOP clause in your query to return top x records....

View Article

Image may be NSFW.
Clik here to view.

How to use Top with Ties in SQL Server - SQL Server / TSQL Tutorial Part 114

In last post, we learnt how to return top / bottom x rows from sql server table. In this post, we will learn Top with ties.According to BOLĀ "WITH TIESUsed when you want to return two or more rows that...

View Article


Image may be NSFW.
Clik here to view.

Understand Column Alias in Select Query in SQL Server - SQL Server / TSQL...

Scenario:You are working as SQL Server developer, you need to extract the data from dbo.Customer table and provide in an Excel Sheet. Your table has difference columns such as FName, LName but you want...

View Article

Image may be NSFW.
Clik here to view.

How to use Case Statement for Conditional Formatting in Select Query - SQL...

Scenario:You are working as SQL Server developer, you need to query dbo.Customer table that has CountryShortName column with country abbreviations. You want to generate another columns with Country...

View Article

Image may be NSFW.
Clik here to view.

How to get random rows from SQL Server Table - SQL Server / TSQL Tutorial...

Scenario:You are working as SQL Server developer. You are asked to provide sample random data from dbo.Customer table. You might asked to provide random 100 rows or some percent of total data from...

View Article
Browsing all 1876 articles
Browse latest View live