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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories >> Software
 
  HR-Questions (231)
 


 

Back to Questions Page
 
Question
Can we execute Truncate from inside a procedure?
Rank Answer Posted By  
 Question Submitted By :: Guest
This Interview Question Asked @   TCS
I also faced this Question!!   © ALL Interview .com
Answer
We can execute Truncate from inside a procedure using 
EXECUTE_IMMEDIATE.
 
0
Guest
 
 
Question
How to run a report in background??and if we try to run in 
foreground it says"this report sud be run in 
background".what can be done in this case??

2-And how sud we stop a report running in background??
Rank Answer Posted By  
 Question Submitted By :: G.shankar
This Interview Question Asked @   Cap-Gemini
I also faced this Question!!   © ALL Interview .com
Answer
if u want to run the programm in backgrond by using the
standard program RSBDCSUB by executing .
 
0
Venkateswarlu
 
 
Question
What is Files and Filegroups in SQL Server & it's 
implementation.
Rank Answer Posted By  
 Question Submitted By :: Compmastbipin@yahoo.com
This Interview Question Asked @   Zenith
I also faced this Question!!   © ALL Interview .com
Answer
Usage of different filegroups is a very good feature that 
is available in SQL Server as well as many other RDBMS 
(though in other RDBMS like Oracle and DB2 UDB, the concept 
is a bit different for tablespaces but similar feature 
exists).  Filegroups allow files to be grouped together for 
administrative and data allocation/placement purposes. For 
example, three files (data1.ndf, data2.ndf, and data3.ndf) 
can be created on three disk drives, respectively, and 
assigned to the filegroup fgroup1. A table can then be 
created specifically on the filegroup fgroup1. Queries for 
data from the table will be spread across the three disks, 
thereby improving performance. 

The same performance improvement can be accomplished with a 
single file created on a RAID/SAN stripe set. Files and 
filegroups, however, allow you to easily add new files on 
new disks. Additionally, if your database exceeds the 
maximum size for a single Windows file, you can use 
secondary data files to allow your database to continue to 
grow.  The advantage of using such an approach is that for 
large database systems you can keep the filegroups on 
separate disks, thus increasing response time for your 
queries.

One other advantage relates to quick backup and recovery. 
You can take the backup of separate filegroups and hence 
restore only a particular filegroup and continue working. 
This can be particularly useful in cases of production 
databases where these activities are time critical and, of 
course, minimizing downtime is always desirable.

You should never store objects in the primary filegroup 
which is also used for storing the system objects in the 
user database.  Filegroups are also a good choice if you 
have decided to implement partitioning for Very Large 
Databases (VLDBs).  Where RAID disk technology is being 
used, multiple filegroups can be set up to span different 
stripe sets.  The objective here is to spread the I/O as 
evenly as possible across the physical disk devices.

When you are using filegroups, how often have you seen 
scenarios where-in you have a multi-processor powerful box 
but all the processors are not being utilized ?  You take a 
look at the processor usage, either through task manager or 
Performance (System) Monitor, and notice only one processor 
seems to be hard at work, the others are just idling.  
Well,  before you start cursing Microsoft, have a look at 
how many files you have for your database out on disk.  Is 
it one .mdf and one .ldf – the default ?  Yes?  Well that’s 
most likely your problem – you can only write to one file 
with one thread.  Your database has become IO bound as only 
one processor can write to the database at any one time.

The solution is to create a new database (or add to the 
existing database) with as many data files (all  the same 
size) as you have processors and transfer the data from the 
old database into this new one – this is to ensure you get 
an even proportional fill across the files.

You can still run into issues at times though even after 
you do this.  If you do create the files properly and still 
see this issue, then you have had automatic database growth 
turned on for this database.  Assuming when you created the 
database you created it with all the database data files 
the same size, then in such a scenario,  at least one of 
those files would have now grown beyond that size?  If this 
is the case then I think your problem is you’ve 
lost ‘proportional fill’.  Look at the following excerpt 
from Books Online (BOL).
 From Books Online: As data is written to the filegroup, 
Microsoft® SQL Server™ writes an amount proportional to the 
free space in the file to each file within the filegroup, 
rather than writing all the data to the first file until 
full and then writing to the next file.  As soon as all the 
files in a filegroup are full, SQL Server automatically 
expands one file at a time in a round-robin fashion to 
accommodate more data (provided that the database is set to 
grow automatically).

You can loose proportional fill because now you only have 
the one, newly expanded, file to write to; all the others 
are full!  With only one file to write to, you are 
essentially only able to use one CPU

Solution is to avoid automatic database growth on multi-
processor system and have alerts in place to notify you 
well in advance when the size is going to become an issue.
 
0
Compmastbipin@yahoo.com
 
 
 
Question
about triggers?
Rank Answer Posted By  
 Question Submitted By :: Guest
This Interview Question Asked @   CSC
I also faced this Question!!   © ALL Interview .com
Answer
Trigger is special kind of stored proceser
 
0
Guest
 
 
Question
Can you use multi format LF in CL program?
Rank Answer Posted By  
 Question Submitted By :: Syam
I also faced this Question!!   © ALL Interview .com
Answer
No.Only Single Record format file we can use.
 
0
S.kumar
 
 
Question
How many MONMSG commands can declare in a CL program?
Rank Answer Posted By  
 Question Submitted By :: Syam
I also faced this Question!!   © ALL Interview .com
Answer
100 Program Level and 100  Command level MONMSG we can 
declared.
 
0
S.kumar
 
 
Question
How many Printer Files can Declare in a CL Program?
Rank Answer Posted By  
 Question Submitted By :: X
I also faced this Question!!   © ALL Interview .com
Answer
We can't Declare Printer file in Cl program.
 
0
S.kumar
 
 
Question
What is the Difference between JMS queue reciever and JMS 
queue requestor?
Rank Answer Posted By  
 Question Submitted By :: Guest
This Interview Question Asked @   Accenture
I also faced this Question!!   © ALL Interview .com
Answer
Jms queue reciever is responsible for consuming the message 
from the JMS in a queue. While JMS queue requestor is 
similar to requset reply in soap. it waits fro a reply in 
reply/to queue.
 
0
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