Other Data Types SQL Server
Other data types allow for the storage of unique identifiers, cursors, tables and XML. Data types in the binary category include:cursor variables store references to cursors used for database...
View ArticleCREATE TABLE in SQL Server
The SQL CREATE TABLE StatementThe CREATE TABLE statement is used to create a table in a database.Tables are organized into rows and columns; and each table must have a name.Syntax to create: VENDOR...
View ArticleSet Field to Null in Sql Server
Using SQL Server Management Studio:To specify a default value for a column1. In Object Explorer, right-click the table with columns for which you want to change the scale and click Design.2....
View ArticleChecklist for Analyzing Slow-Running Queries in SQL Server
The SQL Server Database Engine can display how it navigates tables and uses indexes to access or process the data for a query or other DML statement, such as an update. This is a display of an...
View ArticleRepair a Failed SQL Server 2012 Installation
Repair operation can be used in the following scenarios:Repair an instance of SQL Server that is corrupted after it was successfully installed.Repair an instance of SQL Server if the upgrade operation...
View ArticleSQL Server 2012 Configuration Manager - Startup Parameters Tab
SQL Server 2012 brings a new way to configure startup options for the database engine. When you open SQL Server Configuration Management, make a right click on SQL Server service, select Properties,...
View ArticleSQL Server database Triggers Overview
What is a Trigger?A database trigger is a special kind of stored procedure that is invoked automatically when a predefined event occurs. Database triggers enable DBAs (Data Base Administrators) to...
View ArticleSchedule and Automate Backups in SQL Server
IntroductionThis tip lists how to schedule auto backup in SQL 2012.1. Open SSMS and connect to SQL Authentication.2. Open Management Tab, then Maintenance plan, new maintenance plan.3....
View ArticleAggregate Functions In SQL Server 2012
These functions are also referred to as group functions. They return a value based on the values in a column. (After all, you wouldn't ask for the average of a single field.) Aggregate functions...
View ArticleDr. E. F. Codd's 12 rules and Normalization
IntroductionRelational database was proposed by Edgar Codd (of IBM Research) around 1969. It has since become the dominant database model for commercial applications (in comparison with other database...
View ArticlePaging and Swapping in Operating System
Paging refers to copying in/out one or more pages of the address space. In particular, this is at a much finer grain. Paging is a memory management method used by operating systems. Paging allows the...
View ArticleTop SQL Server Monitoring Tools
Top SQL Server Monitoring Tools ToolDescriptionsp_trace_setfilter (Transact-SQL)SQL Server Profiler tracks engine process events, such as the start of a batch or a transaction, enabling you to...
View ArticleHow to install Microsoft Loopback Adapter : Installing the software on...
How to find the Hardware Wizard: While installing Oracle on Windows 7, you will go to control panel to search add hardware... you will not get it. I found out a method to find the hardware wizard / to...
View ArticleDBCC TRACEON in SQL Server
DBCC TRACEON is being used to enable the specified trace flags.Well, you can see the syntax for the TRACEON:DBCC TRACEON (trace# [,...n ][ , -1 ] ) [ WITH NO_INFOMSGS ]And for the TRACEOFF:DBCC...
View ArticleCHECKPOINT IN SQL SERVER
What is Checkpoint in SQL Server?A SQL Server checkpoint is the process of writing all dirty datafile pages out to disk. Checkpoint is an internal process that writes all dirty pages (modified pages)...
View ArticleMemory Management in OS
1 Introduction: One of the most complex and difficult tasks of an operating system is managing the limited physical memory present in a computer. For example an operating system must distribute the...
View ArticleData File Structure
SQL server divides the data file into 8 KB pages and page is the smallest unit of any IO operation. SQL server refer the first page in the data file as page number 0. In all the data file first 9...
View ArticleCommenting on table and column in SQL SERVER
Commenting on a table declare@CurrentUser sysnameselect@CurrentUser =user_name()executesp_addextendedproperty'MS_Description', ‘write Comment here', 'user',...
View ArticleRetrieving Table and Column descriptions/comments in SQL Server 2005 or higher
SQL Server stores column descriptions as so-called Extended Properties, using the extended property named ‘MS_Description’.Even though the user interface in Enterprise Manager or Management Studio does...
View ArticleLatches in SQL Server
Latches are lightweight internal structures used by SQL Server database engine to ensure physical data integrity. The large majority of latches are acquired when a data page is moved from the storage...
View ArticleFinding the Last Backup for All Databases in SQL Server
As data professionals (those responsible for supporting database environments) one of our most important task is making sure that we have proper backups. I regularly have to perform audits of SQL...
View ArticleTracing a SQL Server Deadlock: Trouble Shooting SQL Server Deadlock
Prior to SQL Server 2008, collecting deadlock information from SQL Server required enabling a trace flag, configuring a SQL Trace, Event Notifications, or using a WMI Alert. Trace Flags 1222, 1205, or...
View ArticleFind out Maximum value from multiple values
When you have 3 different variables, find out which of them have the maximum or highest value. Absolutely, here is the simple example which will work with SQL Server 2008 and later versions.Example 1:...
View ArticleDifference Between An INNER JOIN and WHERE Clause
Difference Between An INNER JOIN and WHERE ClausePerformance :SQL Server engine is much smarter that it will automatically re-write your quest in most of the cases so you will have no difference in...
View ArticleMonitor and analyze deadlocks
It is very common task for DBAs to analyze deadlocks that occur in SQL Server databases and developers (and managers) are keen to know why the deadlock occurred. It is possible to enable trace flag...
View Article
More Pages to Explore .....