.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

You are creating a database on multiple disks that will be queried intensively by users. What are some steps that you can take to improve performance and avoid disk contention?

Posted By :Ravi Ranjan Kumar     Posted Date :July 24, 2011    Points :40   Category :Sql Server 
You could use disk striping (RAID) to increase performance.

A secondary strategy would be to use filegroups to improve performance, especially placing the transaction log file(s) on a separate disk from the data file(s) to avoid disk contention as SQL Server queries the database and records actions in the log. Also, filegroups could be used to separate a portion of the data files requiring frequent backups because they are actively modified.


You can also find related Interview Question to You are creating a database on multiple disks that will be queried intensively by users. What are some steps that you can take to improve performance and avoid disk contention?  below: 

Can multiple SharePoint installs point to the same DataBase?

  
Multiple SharePoint installs can use the same database server. Not literally the same database on that server. That server must be SQL Server 2000 or SQL Server 2005. It cannot be Oracle or another vendor. (More...)

How do you improve the performance of a server?

  
First check the processor and memory usage to see that processor is not above 80% utilization and memory not above 40-45% utilization then check the disk utilization using Performance Monitor, Secondly, use SQL Profiler to check for the users and current SQL activities and jobs running which might be a problem. Third would be to run UPDATE_STATISTICS command to update the indexes (More...)

what are the Steps to interact with database in connected architecture

  
1 import sql client.

2 create an obj for sql command

3 create an object for sql command by providing "query",cn.

4 open connection.

5 execute query.

6 close connetcion. (More...)

On a routine monitoring of the data files and transaction log, you notice that the transaction log is extremely close to being full. What will happen if the log fills? What steps can you take to avoid running out of transaction log space?

  
If the transaction log fills, you are unable to modify the data in the database until the log is archived or expanded. To avoid a full transaction log, you can monitor the log space regularly, expand the log whenever necessary, set the log to grow automatically, and create an alert to notify you when the available log space falls below a specified level (alerts are not covered in this training kit). Scheduling or performing frequent transaction log dumps is the best way to reclaim available space in the transaction log.
(More...)

What are the different steps to access a database through ADO.NET?

  
Create a connection to the database using a connection object.
Open the Database Connection.
Invoke a command to create a Dataset object using an adapter object.
Use the Dataset object in code to display data or to change items in the database.
Invoke a command to update the database from the Dataset object using an adapter object.
Close the database connection.

(More...)

What are the Steps of creating a Windows Process in .NET?

  
Create a new project > Go to File > New > Project > and Select Console Application.

code for a simple process in

http://dotnetinterviewquestion.wordpress.com/2011/08/02/c-and-net-interview-questions-steps-of-creating-a-windows-process-in-net/

using System.Diagnostics;
using System.ComponentModel;

Below is the full code snippet for the same.

namespace MyProcessSample
{
class MyProcess
{
void OpenApplication(string myFavoritesPath)
{
// Display the contents of the favorites folder in the browser.
Process.Start(myFavoritesPath);
}

// Opens urls using Internet Explorer.
void OpenWithArguments()
{
Process.Start("IExplore.exe", "www.indonepal.com");
}

// Uses the ProcessStartInfo class to start new processes,
void OpenWithStartInfo()
{
ProcessStartInfo startInfo = new ProcessStartInfo("firefox.exe");
startInfo.Arguments = "www.questpond.com/demo.html";
Process.Start(startInfo);
}

static void Main()
{
// Get the path that stores favorite links.
string myFavoritesPath = Environment.GetFolderPath(Environment
.SpecialFolder.Favorites);
MyProcess myProcess = new MyProcess();
myProcess.OpenApplication(myFavoritesPath);
myProcess.OpenWithArguments();
myProcess.OpenWithStartInfo();
}
}
} (More...)

How does SharePoint 2013 Improve Performance?

  
SharePoint 2013 has Improved Performance bt Introducing Minimal Download Strategy and Distributed Cache Service to Improve Page Load and Shredded Storage to Improve Storage required for saving files.

(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...)

Can we call a base class method without creating instance?

  
Its possible If its a static method.

Its possible by inheriting from that class also.

Its possible from derived classes using base keyword. (More...)

Can code inside multiple catch block be executed?

  
No, Code can not execute in mutiple catch block (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