.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

What is the purpose of the model database?

Posted By :Narayanan     Posted Date :August 29, 2011    Points :40   Category :Sql Server 
It works as Template Database for the Create Database Syntax

You can also find related Interview Question to What is the purpose of the model database?  below: 

What is Code first,Database first and Model First

  
Code first

.Very popular because hardcore programmers don't like any kind of designers and defining mapping in EDMX xml is too complex.
.Full control over the code (no autogenerated code which is hard to modify).
.General expectation is that you do not bother with DB. DB is just a storage with no logic. EF will handle creation and you don't want to know how it do the job.
.Manual changes to database will be most probably lost because your code defines the database.

Database first

.Very popular if you have DB designed by DBAs, developed separately or if you have existing DB.
.You will let EF create entities for you and after modification of mapping you will generate POCO entities.
.If you want additional features in POCO entities you must either T4 modify template or use partial classes.
.Manual changes to the database are possible because the database defines your domain model. You can always update model from database (this feature works quite good).
.I often use this together VS Database projects (only Premium and Ultimate version).

Model first

.IMHO popular if you are designer fan (= you don't like writing code or SQL).
.You will "draw" your model and let workflow to generate your database script and T4 template to generate yout POCO entities. You will lose part of control on both your entities and database but for small easy projects you will be very productive.
.If you want additional features in POCO entities you must either T4 modify template or use partial classes.
.Manual changes to database will be most probably lost because your model defines the database. This works better if you have Database generation power pack installed. It will allow you updating database schema (instead of recreating) or updating database projects in VS.
(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...)

What are the major data structures used in RDBMS, Network data model & Hierarchical data model.

  
RDBMS - Array (i.e. Array of structures)
Network data model - Graph
Hierarchical data model - Trees (More...)

What is a Database system?

  
The database and DBMS software together is called as Database system. (More...)

What is Data Model?

  
A collection of conceptual tools for describing data, data relationships data semantics and constraints. (More...)

What is E-R model?

  
This data model is based on real world that consists of basic objects called entities and of relationship among these objects. Entities are described in a database by a set of attributes. (More...)

What is Object Oriented model?

  
This model is based on collection of objects. An object contains values stored in instance variables with in the object. An object also contains bodies of code that operate on the object. These bodies of code are called methods. Objects that contain same types of values and the same methods are grouped together into classes. (More...)

What is the main purpose of having Conversation Group?

  
It's a way of grouping all the dialogs that are used for a particular task. All the dialogs associated with processing a particular order would be grouped into a single conversation group. The conversation group is implemented as a conversation group identifier, which is included with all messages in all dialogs contained in the conversation group. When a message is received from any of the dialogs in a conversation group, the conversation group is locked with a lock that is held by the receiving transaction. For the duration of the transaction, only the thread that holds the lock can receive messages from any of the dialogs in the conversation group. This makes our order entry application much easier to write because even though we use many threads for scalability, any particular order is only processed on one thread at a time. This means we don't have to make our application resilient to problems that are caused by the simultaneous processing of a single order on multiple threads. (More...)

Can SharePoint be linked to a SQL database?

  
This is possible via a custom application, but it not natively supported by SharePoint or SQLServer. (More...)

How many Files per database will accept?

  
32,767 files are the maximum number in SQL Server 2005 (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