Untitled document_1
Untitled document_1
What are the default system databases while installing sql server
master, model, msdb, and tempdb
2.what is replication
Replication in SQL Server is a set of technologies that allows users
to copy and distribute data and database objects from one database to
another. The goal of replication is to maintain consistency and integrity
between the databases by synchronizing the data.
3.types of replication
Snapshot Replication, Transactional Replication, peer-to-peer
replication, and Merge Replication
4.can you have different collation on different databases
Yes, We can change the database collation using SQL Server Management
Studio (SSMS), or Transact-SQL (T-SQL). You can specify the collation for a new
database or update the collation for an existing database by using SQL Server
Management Studio (SSMS)
5.how many sql server instances can be installed on one machine
50 instances on a stand-alone server. 25 failover cluster
instances when using a shared cluster disks as storage. 50 failover
cluster instances with SMB file shares as the storage option.
6.difference between backup, restore and detach file
Backup:
The process of creating a copy of data to be stored in a safe place. Backups are
important for protecting data from hardware failure, power outages, viruses, and
other issues.
Restore:
The process of retrieving data from a backup. For example, in Windows, System
Restore can be used to return a system to working order after data corruption or an
installation failure
Detach:
The process of removing columns from a data grid or unattaching a media file from
a submission. For example, in Oracle, detaching columns from a data grid displays
them in their own window. In the Media Library, detaching a media file from a
submission frees up the original media to be modified or removed.
11.how would you find out how many transactions per second sql server instance is
performing
To find out how many transactions per second an SQL Server
instance is performing, you can use the Transactions/sec counter from the
SQL Server Databases counter object:
SQL Server 2000: Use sysperfinfo to access the counter
SQL Server 2005 or later: Use sys.dm_os_performance_counters to access the
counter
12.how would you find orphan users and how would you fix them?
USE database_name EXEC sp_change_users_login report GO
USE DATABASENAME
sp_change_users_login AUTO_FIX, 'LoginName/UserName'
Go
13.how to create a maintenance plan that will backup all databases full backup in sql server
To create a database maintenance plan, open SQL Server
Management Studio (SSMS) and connect to the SQL Server
instance. Once connected to the instance, expand Management
Right-click on the Maintenance Plans Select New Maintenance Plan
14.how to debug permission issues for user in sql server
15.what is the difference between index rebuild and index reorganize
The main difference between index rebuild and index reorganize is
that rebuild creates a new index structure, while reorganize is a more
lightweight option that fixes the physical ordering of pages:
The following are the steps involved in setting the SQL Server replication when the
publisher in Always on Availability group.
33. How can you copy data from one table to another table
then it is possible by using the SELECT INTO statement in SQL. The SELECT INTO
statement in Structured Query Language copies the content from one existing table into the
new table.