Professional Documents
Culture Documents
4. How can we check whether the port number is connecting or not on a Server DBA?
TELNET PORTNUMBER
TELNET PAXT3DEVSQL24 1433
TELNET PAXT3DEVSQL24 1434
Common Ports:
MSSQL Server: 1433
HTTP TCP 80
HTTPS TCP 443
In Microsoft SQL SERVER context, hotfixes are small patches designed to address
specific issues, most commonly to freshly-discovered security holes.
Ex: If a select query returns duplicate rows with aggregations, the result may be
wrong�.
11. Why Shrink file/ Shrink DB/ Auto Shrink is not preferable?
In the SHRINKFILE command, SQL Server isn�t careful about where it puts the pages
that are moved from end of the file to open pages towards the beginning of the
file.
12. What key provides the strongest encryption in SQL Server DBA?
AES (256 bit)
If we choose longer key, then encryption will be better, so choose longer keys for
more encryption. However there is a larger performance penalty for longer keys. DES
is a relatively old and weaker algorithm than AES.
AES: Advanced Encryption Standard
DES: Data Encryption Standard
13. What port do you need to open on your server firewall to enable named pipes
connections?
Port 445. Named pipes communicate across TCP port 445.
14. We have 300 SSIS packages need to be deployed to production, how can we make it
easier? What are the easy and short ways to deploy all SSIS packages at once?
We store this data as XML based files, not in the MSDB database.
With the configuration files, you can point the packages from prod to dev (and vice
versa) in just few seconds.
The packages and config files are stored in a directory of your choice.
Resources permitting create a standalone SSIS server away from the primary SQL
Server
15. How to decide the active and passive nodes?
Open Cluster Administrator checks the SQL Server group where you can see the
current owner. So current owner is the active node and other nodes are passive
16. What is the common trace flags used with SQL Server?
Deadlock Information: 1204, 1205, 1222
Network Database files: 1807
Log Record for Connections: 4013
Skip Startup Stored Procedures: 4022
Disable Locking Hints: 8755
Forces uniform extent allocations instead of mixed page allocations 1118 � (SQL
2005 and 2008) To reduces TempDB contention.
Become Master of SQL Server by going through this online SQL Server training.
Run Upgrade Analysis tool from Microsoft. Address any issues raised there, first.
Identify DTS packages. These must be migrated by hand, unless you buy Pragmatic
Works excellent software. Rebuild the DTS packages as SSIS.
Script out all SQL Agent jobs.
Script out all security
Backup the systems and validate the backups (preferably by restoring them to
another system)
Run the security script on the new system
Run the restore on the new system.
Validate the databases by running DBCC
Manually update all statistics
Run the SQL Agent script
20. Can you detach SQL Server 2005 database and attach it to a SQL Server 2008
server?
Yes. SQL Server 2005 databases are compatible with SQL Server 2008. Attaching a SQL
Server 2005 database to SQL Server 2008 automatically upgrades the SQL Server 2005
database to the latter and the database is then no longer usable by the SQL Server
2005 installation.
21. Can you detach a SQL Server 2008 database and attach it to a SQL Server 2005
server?
No. The only way to move a SQL Server 2008 database to a SQL Server 2005 server is
by transferring the data using a method such as Data Transformation Services
(Import/Export), SSIS, bcp, or use of a query between linked servers.
22. When you upgrade a SQL Server, the upgrade wizard seems to stop responding and
fails. Why?
If applications or services have open ODBC connections to the SQL Server 2005
during the conversion process, they may not allow the SQL Server to shut down
completely. The conversion process will not proceed to the next step if it does not
receive verification that the SQL Server has been completely stopped.
27. How long are locks held/retained within the REPEATABLE_READ and SERIALIZABLE
isolation levels, during a read operation and assuming row-level locking?
Within either of these isolation levels, locks are held for the duration of the
transaction unlike within the READ_COMMITTED isolation level.