.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> Sql Server >> Post New Question Subscribe to Interview Questions

Before you RESTORE or ATTACH the Database/backup file on Production server from other source, What are the things you should do ?

Posted By :Pandian     Posted Date :February 19, 2011    Points :15   Category :Sql Server 
The following are the basic recommendations when attaching or restoring Database(s) from other source:

1. Do not ATTACH or RESTORE databases from unknown sources.

2. These databases could contain malicious code that might execute unintended Transact-SQL code or cause errors by modifying the schema or the physical database structure.

3. Before you use a database from an unknown source, run DBCC CHECKDB on the database on a nonproduction server first.

4. Examine the code, like stored procedures or other user-defined code.

5. If you feel everything is fine thenonly proceed with production server.


You can also find related Interview Question to Before you RESTORE or ATTACH the Database/backup file on Production server from other source, What are the things you should do ?  below: 

How to Restore a site backup using Powershell command in SharePoint Server?

  
Use below Powershell script command
Restore-SPSite -Identity http://myserver -Path "c:\backup\file.bak" (More...)

Database Concurrency in Sql Server.

  
When two or more user try to update same type of data in a table then Database Concurrency helps in this situation.

There are 2 types of Database Concurrency

Pessimistic: When one user try to change the data with pessimistic concurrency then a lock is placed on the data in a table so that another user cannot change data. when one user finishes then other user can able to change.

Optimistic: When two user works on the same data in a table and one change that data first then second user cannot change that same data becasue the which he have using is allready changed so he cannot do the change becasue change apply to another data that is changed by first user. (More...)

How to send XML file on server using HTTP protocol?

  
Using SOAP we can send XML file on Serevr (More...)

Name of the command to view the current amount of free (unallocated) space in the database in SQL Server?

  
Name of command is :sp_spaceused

This command displays the database_size in MB, and it's also shows unallocated space for the database. (More...)

What is the command name to shrink the data file and log file size in SQL server 2005?

  
The command name is : DBCC SHRINKDATABASE (Database Name)

This command will shrink the data file and log file size. With this command you can specify that how much percentage space you want to free.

dbcc shrinkdatabase (TempDAabase,10)


This command will free only 10% space. (More...)

Let us say the SQL Server crashed and you are rebuilding the databases including the master database what procedure to you follow?

  
For restoring the master db we have to stop the SQL Server first and then from command line we can type SQLSERVER -m which will basically bring it into the maintenance mode after which we can restore the master db. (More...)

Which function is used to know the database property in SQL Server.

  
DATABASEPROPERTYEX(dtabase,property)

It will return the specified property of the specified database.
Example:-

SELECT DATABASEPROPERTYEX(Student,Version)

-->365

You can use this function to know other properties of your database. (More...)

Disadvantage in File Processing System in SQL Server?

  
Disadvantage in File Processing System in .SQL Server are

Less stability
Difficult in accessing data.
Data redundancy & inconsistency.
Data isolation and integrity.
Concurrent access is not possible.
Security Problems. (More...)

difference between backup file and .stp file in sharepoint site

  
A backup file is more like a DB snapshot (if you are talking about the backup operation of STSADM)

You can save a site with our without content as template and can create other sites based upon that site template. For that first you have to save your site as a template which will be saved with extension .STP, OOB there is limitation of 10MB in size but u can increase the size upto 2 GB using STSADM command. (More...)

How will you strink the Database in Sql Server?

  
We can shrink the Database by connecting to the instance of the SQL
Server and then Expanding the Database and then right click on the
Preferred database and then select tasks then Shrink database.

once you click the "Shrink Database", your database will get shrunk. (More...)

How will you set the compatibility level for your Sql Server Database?

  
we can set the compatibility level using the below command

for Sql Server 2000:

EXEC sp_dbcmptlevel databasename, 80;

for Sql Server 2005:

EXEC sp_dbcmptlevel databasename, 90;

for Sql Server 2008:

EXEC sp_dbcmptlevel databasename, 100; (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend