ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories >> Software >> Databases
 
  SQL-Server (547)  MS-Access (6)  MySQL (108)  Postgre (3)  Sybase (8)
  DB-Administration (82)  DB-Development (27)  SQL-PLSQL (402)  Databases-AllOther (38)
 


 

Back to Questions Page
 
Question
Can you link only other SQL Servers or any database servers
such as Oracle?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
We can link any server provided we have the OLE-DB provider
from Microsoft to allow a link. For Oracle we have a OLE-DB
provider for oracle that microsoft provides to add it as a
linked server to the sql server group.
 
0
Guest
 
 
Question
What is a Linked Server?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
Linked Servers is a concept in SQL Server by which we can
add other SQL Server to a Group and query both the SQL
Server dbs using T-SQL Statements.
 
0
Guest
 
 
Question
When do you use SQL Profiler?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
SQL Profiler utility allows us to basically track
connections to the SQL Server and also determine activities
such as which SQL Scripts are running, failed jobs etc..
 
0
Guest
 
 
 
Answer
Profiler help us to view the changes happened in the back 
end process.
 
0
Seyed Riswan
 
 
Question
Can you explain the types of Joins that we can have with Sql
Server?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
There are three types of joins: Inner Join, Outer Join,
Cross Join
 
0
Guest
 
 
Answer
In some situations we may need to pull data from one or 
more related tables at a time. In such cases we use JOINs 
to extract data from more than one table at a time and 
display the information in a single result set.
There are several types of joins.(1)Inner Join 
                                                   (2)Outer 
Join------Right Outer Join,Left Outer Join, Full Outer Join
Inner join is used to link tables on a common column and 
return records that match in those columns.
Right Outer Join displays all records from the table on 
right most side of the JOIN clause whether or not there are 
matching records in the Left table.
Left Outer Join  displays all records from the table on the 
left most side of the JOIN clause whether or not there are 
matching records on the Right table.
Full Outer Join diplays all records from both right and 
left tables.
Example: If we have a HR database with employee information 
table, salary information table, sick days table etc, and 
if we want to know which employee
have used more than 15 sick days, we would need the 
information form sick days table and employee information 
table in a single result set.
 
0
Hokar
 
 
Question
What is a Join in SQL Server?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
Join actually puts data from two or more tables into a
single result set.
 
0
Guest
 
 
Question
What do you mean by COLLATION?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
Collation is basically the sort order. There are three types
of sort order Dictionary case sensitive, Dictonary - case
insensitive and Binary.
 
0
Guest
 
 
Answer
collation is a set of rules to determine how data is 
sorted  and compared.
 
0
Koti ,khammam
 
 
Answer
Collation refers to a set of rules that determine how data 
is sorted and compared. Character data is sorted using 
rules that define the correct character sequence, with 
options for specifying case-sensitivity, accent marks, kana 
character types and character width.
 
0
Dinesh Sharma
 
 
Answer
collation is a set of rules determine the how data is 
sorted and compared.

Case sensitity collation
Accent Sensitity collation
Kane sensitiy collation
 
0
Hari
 
 
Question
What is the difference between a HAVING CLAUSE and a WHERE
CLAUSE?
Rank Answer Posted By  
 Question Submitted By :: Guest
This Interview Question Asked @   Yardi-Software , Worldtech, Worldtech
I also faced this Question!!   © ALL Interview .com
Answer
Having Clause is basically used only with the GROUP BY
function in a query. WHERE Clause is applied to each row
before they are part of the GROUP BY function in a query.
 
2
Guest
 
 
Answer
HAVING CLAUSE is used for evaluating a condition with an 
aggregate function, i.e., GROUP BY whereas WHERE CLAUSE is 
used for general conditions.
 
2
Srinivas
 
 
Question
Well sometimes sp_reanmedb may not work you know because if
some one is using the db it will not accept this command so
what do you think you can do in such cases?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
In such cases we can first bring to db to single user using
sp_dboptions and then we can rename that db and then we can
rerun the sp_dboptions command to remove the single user mode.
 
0
Guest
 
 
Answer
In This case you take following action

1. Alter DataBase <dbname> set single_user with rollback 
immediate

2. Sp_renamedb 'olddb','newdb'

3. Alter DataBase <dbname> set multi_user

 By
Kumar.T
 
0
Kumar
 
 
Question
What is the use of DBCC commands?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
DBCC stands for database consistency checker. We use these
commands to check the consistency of the databases, i.e.,
maintenance, validation task and status checks.
 
0
Guest
 
 
Question
Can we use Truncate command on a table which is referenced
by FOREIGN KEY?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
No. We cannot use Truncate command on a table with Foreign
Key because of referential integrity.
 
0
Guest
 
 
Question
Can you tell me the difference between DELETE & TRUNCATE
commands?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
Delete command removes the rows from a table based on the
condition that we provide with a WHERE clause. Truncate will
actually remove all the rows from a table and there will be
no data in the table after we run the truncate command.
 
0
Guest
 
 
Answer
 Delete Command require Log file updation for each row of 
deleting process. But the Truncate command not.
So, the Truncate Command is so faster than Delete Command. 
 
0
Kmbkrishnan
 
 
Answer
Truncate will fail if the concerned table has foreign key 
constraints while delete doesnt.
 
5
Kumar
 
 
Answer
Truncate is DDL Command while Delete is DML Command
 
0
Sachin Patil
 
 
Answer
Truncate command result can be rolled back as it is not 
made an entry in the log where as Delete command result 
can't be rolled back
 
0
Saradhi
 
 
Answer
Delete command only delete the rows from the  table but the 
schema of the table yet remains.Whereas Truncate command 
delete the rows along with the tale's schema from the 
memory permanently.
 
0
Amita
 
 
Answer
Delete command deletes the data from the tables .. but can 
get back on issue of roll back whereas when you issue 
truncate deletes the records and oracle implicitly issues 
commit command and even when you issue rollback you won't 
get the data back
 
0
Mohsin Mohammed Abdul
 
 
Answer
http://weblogs.sqlteam.com/mladenp/archive/2007/10/03/SQL-
Server-Why-is-TRUNCATE-TABLE-a-DDL-and-not.aspx
 
0
Afzal_aziz
 
 
Answer
Truncate:

 - deallocates the data pages in a table and only this 
deallocation is stored in transaction log

 - aquires only table and page locks for the whole table. 
since no row locks are used less memory is required  (lock 
is a pure memory object)

 - resets identity column if there is one

 - removes ALL pages. NO empty pages are left behind in a 
table

 - fast(er)

 - doesn't fire delete triggers

Delete:

 - removes one row at the time and every deleted row is 
stored in the transaction log

 - aquires table and/or page and row locks for the whole 
table 

 - leaves identity column alone

 - can leave empty pages in a table since empty page 
removal requires a table lock which doesn't necessarily 
happen

 - slow(er)

 - fires delete triggers 


http://weblogs.sqlteam.com/mladenp/archive/2007/10/03/SQL-
Server-Why-is-TRUNCATE-TABLE-a-DDL-and-not.aspx
 
0
Afzal_aziz
 
 
Answer
truncate provide faster processing than delete because of 
truncate does'n require transaction log uddation
 
0
Gk Singh
 
 
Question
From where can you change the default port?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
From the Network Utility TCP/IP properties ?> Port
number.both on client and the server.
 
0
Guest
 
 
Answer
HOW TO CHANGE THE MICROSOFT SQL SERVER 2000 PORT ON THE 
SERVER
1.	Open the Microsoft SQL Server Enterprise Manager. 
2.	Right-click on your server instance (you may have 
to expand the server groups). 
3.	Choose Properties. 
4.	Under the General tab, click the button 
labeled "Network Configuration". The SQL Server Network 
Utility will be displayed. 
5.	On the right, under the Enabled Protocols, you 
should see TCP/IP. Select it and hit the Properties button. 
6.	The Network Protocol Default Value Setup dialog 
will ask for the Default Port for SQL Server (it will most 
likely be 1433). Changing this entry will change the port 
that SQL Server listens on. Make the change and hit OK to 
close the dialog. 
7.	Hit Apply on the SQL Server Network Utility screen, 
then OK. 
8.	The system will tell you that the changes are 
saved, but that they will not take effect until you stop 
and restart the SQL Server service. Hit OK. 
9.	Hit OK to close the Properties dialog. 
10.	Right-click on your server instance again, and 
choose to stop the SQL Server service. 
11.	Once it has stopped, right-click and choose to 
start the SQL Server service. Restarting it will now use 
the new port.
 
0
Javed Shaikh
 
 
Answer
HOW TO CHANGE THE MICROSOFT SQL SERVER 2000 PORT ON THE 
CLIENT
1.	Close the ILLiad Client and any Administrative 
tools (Customization Manager, User Manager, etc.). 
2.	On each ILLiad Client machine, go to the ILLiad 
program group and open the Client Network Utility under the 
Networking folder. 
3.	On the right, under the Enabled Protocols, you 
should see TCP/IP. Select it and hit the Properties button. 
4.	The Network Protocol Default Value Setup dialog 
will ask for the Default Port for SQL Server (it will most 
likely be 1433). Changing this entry will change the port 
that ILLiad connects to on the ILLiad/SQL Server. 
5.	Change the entry and hit OK to close. 
6.	Hit OK to close and save the changes
 
0
Javed Shaikh
 
 
Question
Which TCP/IP port does SQL Server run on?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
SQL Server runs on port 1433 but we can also change it for
better security.
 
0
Guest
 
 
Answer
1433
 
0
Hari
 
 
Question
When do we use the UPDATE_STATISTICS command?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
This command is basically used when we do a large processing
of data. If we do a large amount of deletions any
modification or Bulk Copy into the tables, we need to
basically update the indexes to take these changes into
account. UPDATE_STATISTICS updates the indexes on these
tables accordingly.
 
4
Guest
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com