<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7386334741025822419</id><updated>2011-06-27T14:56:38.969+05:30</updated><category term='Tables'/><category term='SQL Interview Questions'/><title type='text'>All About Oracle</title><subtitle type='html'>Oracle topics,interview questions,answers,doubts and all information about oracle</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>41</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-7686957310806467387</id><published>2008-05-10T14:56:00.004+05:30</published><updated>2008-05-10T14:57:05.280+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>Which command using Query Analyzer will give you the version of SQL server and operating</title><content type='html'>Which command using Query Analyzer will give you the version of SQL server and operating&lt;br /&gt;system?&lt;br /&gt;&lt;br /&gt;Ans:&lt;br /&gt;&lt;br /&gt;SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY&lt;br /&gt;('edition')&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-7686957310806467387?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/7686957310806467387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=7686957310806467387' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/7686957310806467387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/7686957310806467387'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/which-command-using-query-analyzer-will.html' title='Which command using Query Analyzer will give you the version of SQL server and operating'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-3178770551880137843</id><published>2008-05-10T14:56:00.003+05:30</published><updated>2008-05-10T14:56:47.970+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is SQL server agent?</title><content type='html'>SQL Server agent plays an important role in the day-to-day tasks of a database administrator (DBA). It&lt;br /&gt;is often overlooked as one of the main tools for SQL Server management. Its purpose is to ease the&lt;br /&gt;implementation of tasks for the DBA, with its full-function scheduling engine, which allows you to&lt;br /&gt;schedule your own jobs and scripts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-3178770551880137843?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/3178770551880137843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=3178770551880137843' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/3178770551880137843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/3178770551880137843'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-is-sql-server-agent.html' title='What is SQL server agent?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-460955625608039217</id><published>2008-05-10T14:56:00.001+05:30</published><updated>2008-05-10T14:56:31.611+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>Can a stored procedure call itself or recursive stored procedure? How many level SP nesting</title><content type='html'>Can a stored procedure call itself or recursive stored procedure? How many level SP nesting&lt;br /&gt;possible?&lt;br /&gt;&lt;br /&gt;Ans:&lt;br /&gt;&lt;br /&gt;Yes. Because Transact-SQL supports recursion, you can write stored procedures that call themselves.&lt;br /&gt;Recursion can be defined as a method of problem solving wherein the solution is arrived at by&lt;br /&gt;repetitively applying it to subsets of the problem. A common application of recursive logic is to perform&lt;br /&gt;numeric computations that lend themselves to repetitive evaluation by the same processing steps.&lt;br /&gt;Stored procedures are nested when one stored procedure calls another or executes managed code by&lt;br /&gt;referencing a CLR routine, type, or aggregate. You can nest stored procedures and managed code&lt;br /&gt;references up to 32 levels.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-460955625608039217?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/460955625608039217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=460955625608039217' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/460955625608039217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/460955625608039217'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/can-stored-procedure-call-itself-or.html' title='Can a stored procedure call itself or recursive stored procedure? How many level SP nesting'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-937671252246505661</id><published>2008-05-10T14:55:00.004+05:30</published><updated>2008-05-10T14:56:08.462+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is @@ERROR?</title><content type='html'>The @@ERROR automatic variable returns the error code of the last Transact-SQL statement. If there&lt;br /&gt;was no error, @@ERROR returns zero. Because @@ERROR is reset after each Transact-SQL statement,&lt;br /&gt;it must be saved to a variable if it is needed to process it further after checking it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-937671252246505661?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/937671252246505661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=937671252246505661' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/937671252246505661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/937671252246505661'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-is-error.html' title='What is @@ERROR?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-2157709573727532851</id><published>2008-05-10T14:55:00.003+05:30</published><updated>2008-05-10T14:55:46.664+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is Raiseerror?</title><content type='html'>Stored procedures report errors to client applications via the RAISERROR command. RAISERROR&lt;br /&gt;doesn't change the flow of a procedure; it merely displays an error message, sets the @@ERROR&lt;br /&gt;automatic variable, and optionally writes the message to the SQL Server error log and the NT&lt;br /&gt;application event log.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-2157709573727532851?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/2157709573727532851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=2157709573727532851' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2157709573727532851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2157709573727532851'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-is-raiseerror.html' title='What is Raiseerror?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-7006087657480971592</id><published>2008-05-10T14:55:00.001+05:30</published><updated>2008-05-10T14:55:28.589+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is log shipping?</title><content type='html'>Log shipping is the process of automating the backup of database and transaction log files on a&lt;br /&gt;production SQL server, and then restoring them onto a standby server. Enterprise Editions only&lt;br /&gt;supports log shipping. In log shipping the transactional log file from one server is automatically updated&lt;br /&gt;into the backup database on the other server. If one server fails, the other server will have the same db&lt;br /&gt;can be used this as the Disaster Recovery plan. The key feature of log shipping is that is will&lt;br /&gt;automatically backup transaction logs throughout the day and automatically restore them on the&lt;br /&gt;standby server at defined interval.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-7006087657480971592?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/7006087657480971592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=7006087657480971592' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/7006087657480971592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/7006087657480971592'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-is-log-shipping.html' title='What is log shipping?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-8081523916553930893</id><published>2008-05-10T14:54:00.004+05:30</published><updated>2008-05-10T14:55:10.057+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is the difference between a local and a global variable?</title><content type='html'>A local temporary table exists only for the duration of a connection or, if defined inside a compound&lt;br /&gt;statement, for the duration of the compound statement.&lt;br /&gt;A global temporary table remains in the database permanently, but the rows exist only within a given&lt;br /&gt;connection. When connection are closed, the data in the global temporary table disappears. However,&lt;br /&gt;the table definition remains with the database for access when database is opened next time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-8081523916553930893?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/8081523916553930893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=8081523916553930893' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/8081523916553930893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/8081523916553930893'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-is-difference-between-local-and.html' title='What is the difference between a local and a global variable?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-3250409019877765642</id><published>2008-05-10T14:54:00.003+05:30</published><updated>2008-05-10T14:54:50.053+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What command do we use to rename a db?</title><content type='html'>sp_renamedb ‘oldname’ , ‘newname’&lt;br /&gt;If someone is using db it will not accept sp_renmaedb. In that case first bring db to single user using&lt;br /&gt;sp_dboptions. Use sp_renamedb to rename database. Use sp_dboptions to bring database to multi user&lt;br /&gt;mode.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-3250409019877765642?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/3250409019877765642/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=3250409019877765642' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/3250409019877765642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/3250409019877765642'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-command-do-we-use-to-rename-db.html' title='What command do we use to rename a db?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-103916774984393574</id><published>2008-05-10T14:54:00.001+05:30</published><updated>2008-05-10T14:54:31.769+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is sp_configure commands and set commands?</title><content type='html'>Use sp_configure to display or change server-level settings. To change database-level settings, use&lt;br /&gt;ALTER DATABASE. To change settings that affect only the current user session, use the SET statement.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-103916774984393574?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/103916774984393574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=103916774984393574' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/103916774984393574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/103916774984393574'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-is-spconfigure-commands-and-set.html' title='What is sp_configure commands and set commands?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-2386298157302298202</id><published>2008-05-10T14:53:00.002+05:30</published><updated>2008-05-10T14:54:06.010+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What are the different types of replication? Explain.</title><content type='html'>The SQL Server 2000-supported replication types are as follows:&lt;br /&gt;· Transactional&lt;br /&gt;· Snapshot&lt;br /&gt;· Merge&lt;br /&gt;Snapshot replication distributes data exactly as it appears at a specific moment in time and does not&lt;br /&gt;monitor for updates to the data. Snapshot replication is best used as a method for replicating data that&lt;br /&gt;changes infrequently or where the most up-to-date values (low latency) are not a requirement. When&lt;br /&gt;synchronization occurs, the entire snapshot is generated and sent to Subscribers.&lt;br /&gt;Transactional replication, an initial snapshot of data is applied at Subscribers, and then when data&lt;br /&gt;modifications are made at the Publisher, the individual transactions are captured and propagated to&lt;br /&gt;Subscribers.&lt;br /&gt;Merge replication is the process of distributing data from Publisher to Subscribers, allowing the&lt;br /&gt;Publisher and Subscribers to make updates while connected or disconnected, and then merging the&lt;br /&gt;updates between sites when they are connected.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-2386298157302298202?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/2386298157302298202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=2386298157302298202' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2386298157302298202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2386298157302298202'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-are-different-types-of-replication.html' title='What are the different types of replication? Explain.'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-6630246317126089168</id><published>2008-05-10T14:53:00.001+05:30</published><updated>2008-05-10T14:53:33.974+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What are the OS services that the SQL Server installation adds?</title><content type='html'>MS SQL SERVER SERVICE, SQL AGENT SERVICE, DTC (Distribution transac co-ordinator)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-6630246317126089168?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/6630246317126089168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=6630246317126089168' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/6630246317126089168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/6630246317126089168'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-are-os-services-that-sql-server.html' title='What are the OS services that the SQL Server installation adds?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-3414641704015025572</id><published>2008-05-10T14:52:00.002+05:30</published><updated>2008-05-10T14:53:13.002+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What are three SQL keywords used to change or set someone’s permissions?</title><content type='html'>GRANT, DENY, and REVOKE.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-3414641704015025572?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/3414641704015025572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=3414641704015025572' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/3414641704015025572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/3414641704015025572'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-are-three-sql-keywords-used-to.html' title='What are three SQL keywords used to change or set someone’s permissions?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-7597808422092653302</id><published>2008-05-10T14:52:00.001+05:30</published><updated>2008-05-10T14:52:53.320+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What does it mean to have quoted_identifier on? What are the implications of having it off?</title><content type='html'>When SET QUOTED_IDENTIFIER is ON, identifiers can be delimited by double quotation marks, and&lt;br /&gt;literals must be delimited by single quotation marks. When SET QUOTED_IDENTIFIER is OFF, identifiers&lt;br /&gt;cannot be quoted and must follow all Transact-SQL rules for identifiers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-7597808422092653302?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/7597808422092653302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=7597808422092653302' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/7597808422092653302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/7597808422092653302'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-does-it-mean-to-have.html' title='What does it mean to have quoted_identifier on? What are the implications of having it off?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-4095538568697522802</id><published>2008-05-10T14:51:00.004+05:30</published><updated>2008-05-10T14:52:14.929+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is the STUFF function and how does it differ from the REPLACE function?</title><content type='html'>STUFF function to overwrite existing characters. Using this syntax, STUFF(string_expression, start,&lt;br /&gt;length, replacement_characters), string_expression is the string that will have characters substituted,&lt;br /&gt;start is the starting position, length is the number of characters in the string that are substituted, and&lt;br /&gt;replacement_characters are the new characters interjected into the string.&lt;br /&gt;REPLACE function to replace existing characters of all occurance. Using this syntax&lt;br /&gt;REPLACE(string_expression, search_string, replacement_string), where every incidence of&lt;br /&gt;search_string found in the string_expression will be replaced with replacement_string.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-4095538568697522802?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/4095538568697522802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=4095538568697522802' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/4095538568697522802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/4095538568697522802'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-is-stuff-function-and-how-does-it.html' title='What is the STUFF function and how does it differ from the REPLACE function?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-2013906412084808071</id><published>2008-05-10T14:51:00.003+05:30</published><updated>2008-05-10T14:51:53.283+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>Using query analyzer, name 3 ways to get an accurate count of the number of records in a</title><content type='html'>Using query analyzer, name 3 ways to get an accurate count of the number of records in a&lt;br /&gt;table?&lt;br /&gt;&lt;br /&gt;ANS:&lt;br /&gt;&lt;br /&gt;SELECT * FROM table1&lt;br /&gt;SELECT COUNT(*) FROM table1&lt;br /&gt;SELECT rows FROM sysindexes WHERE id = OBJECT_ID(table1) AND indid &lt; 2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-2013906412084808071?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/2013906412084808071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=2013906412084808071' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2013906412084808071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2013906412084808071'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/using-query-analyzer-name-3-ways-to-get.html' title='Using query analyzer, name 3 ways to get an accurate count of the number of records in a'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-3552086356417739059</id><published>2008-05-10T14:51:00.001+05:30</published><updated>2008-05-10T14:51:28.793+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>How to rebuild Master Database?</title><content type='html'>Shutdown Microsoft SQL Server 2000, and then run Rebuildm.exe. This is located in the Program&lt;br /&gt;Files\Microsoft SQL Server\80\Tools\Binn directory.&lt;br /&gt;In the Rebuild Master dialog box, click Browse.&lt;br /&gt;In the Browse for Folder dialog box, select the \Data folder on the SQL Server 2000 compact disc or in&lt;br /&gt;the shared network directory from which SQL Server 2000 was installed, and then click OK.&lt;br /&gt;Click Settings. In the Collation Settings dialog box, verify or change settings used for the master&lt;br /&gt;database and all other databases.&lt;br /&gt;Initially, the default collation settings are shown, but these may not match the collation selected during&lt;br /&gt;setup. You can select the same settings used during setup or select new collation settings. When done,&lt;br /&gt;click OK.&lt;br /&gt;In the Rebuild Master dialog box, click Rebuild to start the process.&lt;br /&gt;The Rebuild Master utility reinstalls the master database.&lt;br /&gt;To continue, you may need to stop a server that is running.&lt;br /&gt;Source: http://msdn2.microsoft.com/en-us/library/aa197950(SQL.80).aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-3552086356417739059?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/3552086356417739059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=3552086356417739059' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/3552086356417739059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/3552086356417739059'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/how-to-rebuild-master-database.html' title='How to rebuild Master Database?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-2614841923993868054</id><published>2008-05-10T14:50:00.003+05:30</published><updated>2008-05-10T14:50:57.046+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is the basic functions for master, msdb, model, tempdb databases?</title><content type='html'>The &lt;span style="font-weight: bold;"&gt;Master&lt;/span&gt; database holds information for all databases located on the SQL Server instance and is the&lt;br /&gt;glue that holds the engine together. Because SQL Server cannot start without a functioning master&lt;br /&gt;database, you must administer this database with care.&lt;br /&gt;The &lt;span style="font-weight: bold;"&gt;msdb&lt;/span&gt; database stores information regarding database backups, SQL Agent information, DTS&lt;br /&gt;packages, SQL Server jobs, and some replication information such as for log shipping.&lt;br /&gt;The &lt;span style="font-weight: bold;"&gt;tempdb&lt;/span&gt; holds temporary objects such as global and local temporary tables and stored procedures.&lt;br /&gt;The &lt;span style="font-weight: bold;"&gt;model&lt;/span&gt; is essentially a template database used in the creation of any new user database created in&lt;br /&gt;the instance.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-2614841923993868054?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/2614841923993868054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=2614841923993868054' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2614841923993868054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2614841923993868054'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-is-basic-functions-for-master-msdb.html' title='What is the basic functions for master, msdb, model, tempdb databases?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-1496887320061240212</id><published>2008-05-10T14:50:00.001+05:30</published><updated>2008-05-10T14:50:35.358+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What are primary keys and foreign keys?</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Primary keys&lt;/span&gt; are the unique identifiers for each row. They must contain unique values and cannot be&lt;br /&gt;null. Due to their importance in relational databases, Primary keys are the most fundamental of all keys&lt;br /&gt;and constraints. A table can have only one Primary key.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Foreign keys&lt;/span&gt; are both a method of ensuring data integrity and a manifestation of the relationship&lt;br /&gt;between tables.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-1496887320061240212?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/1496887320061240212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=1496887320061240212' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/1496887320061240212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/1496887320061240212'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-are-primary-keys-and-foreign-keys.html' title='What are primary keys and foreign keys?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-4544615330095322941</id><published>2008-05-10T14:49:00.000+05:30</published><updated>2008-05-10T14:50:04.150+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is data integrity? Explain constraints?</title><content type='html'>Data integrity is an important feature in SQL Server. When used properly, it ensures that data is&lt;br /&gt;accurate, correct, and valid. It also acts as a trap for otherwise undetectable bugs within applications.&lt;br /&gt;A &lt;span style="font-weight: bold;"&gt;PRIMARY KEY&lt;/span&gt; constraint is a unique identifier for a row within a database table. Every table should&lt;br /&gt;have a primary key constraint to uniquely identify each row and only one primary key constraint can be&lt;br /&gt;created for each table. The primary key constraints are used to enforce entity integrity.&lt;br /&gt;A &lt;span style="font-weight: bold;"&gt;UNIQUE&lt;/span&gt; constraint enforces the uniqueness of the values in a set of columns, so no duplicate values&lt;br /&gt;are entered. The unique key constraints are used to enforce entity integrity as the primary key&lt;br /&gt;constraints.&lt;br /&gt;A &lt;span style="font-weight: bold;"&gt;FOREIGN KEY&lt;/span&gt; constraint prevents any actions that would destroy links between tables with the&lt;br /&gt;corresponding data values. A foreign key in one table points to a primary key in another table. Foreign&lt;br /&gt;keys prevent actions that would leave rows with foreign key values when there are no primary keys&lt;br /&gt;with that value. The foreign key constraints are used to enforce referential integrity.&lt;br /&gt;A &lt;span style="font-weight: bold;"&gt;CHECK&lt;/span&gt; constraint is used to limit the values that can be placed in a column. The check constraints&lt;br /&gt;are used to enforce domain integrity.&lt;br /&gt;A &lt;span style="font-weight: bold;"&gt;NOT NULL&lt;/span&gt; constraint enforces that the column will not accept null values. The not null constraints&lt;br /&gt;are used to enforce domain integrity, as the check constraints.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-4544615330095322941?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/4544615330095322941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=4544615330095322941' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/4544615330095322941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/4544615330095322941'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-is-data-integrity-explain.html' title='What is data integrity? Explain constraints?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-7456932543353962619</id><published>2008-05-10T14:48:00.000+05:30</published><updated>2008-05-10T14:49:11.996+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What are the properties of the Relational tables?</title><content type='html'>Relational tables have six properties:&lt;br /&gt;· Values are atomic.&lt;br /&gt;· Column values are of the same kind.&lt;br /&gt;· Each row is unique.&lt;br /&gt;· The sequence of columns is insignificant.&lt;br /&gt;· The sequence of rows is insignificant.&lt;br /&gt;· Each column must have a unique name.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-7456932543353962619?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/7456932543353962619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=7456932543353962619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/7456932543353962619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/7456932543353962619'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/05/what-are-properties-of-relational.html' title='What are the properties of the Relational tables?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-6593689264669318129</id><published>2008-04-18T16:38:00.001+05:30</published><updated>2008-04-18T16:38:33.980+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is De-normalization?</title><content type='html'>De-normalization is the process of attempting to optimize the performance of a database by adding&lt;br /&gt;redundant data. It is sometimes necessary because current DBMSs implement the relational model&lt;br /&gt;poorly. A true relational DBMS would allow for a fully normalized database at the logical level, while&lt;br /&gt;providing physical storage of data that is tuned for high performance. De-normalization is a technique&lt;br /&gt;to move from higher to lower normal forms of database modeling in order to speed up database access.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-6593689264669318129?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/6593689264669318129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=6593689264669318129' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/6593689264669318129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/6593689264669318129'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/what-is-de-normalization.html' title='What is De-normalization?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-8016640759701220632</id><published>2008-04-18T16:37:00.005+05:30</published><updated>2008-04-18T16:37:56.393+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>How to get @@error and @@rowcount at the same time?</title><content type='html'>If @@Rowcount is checked after Error checking statement then it will have 0 as the value of&lt;br /&gt;@@Recordcount as it would have been reset.&lt;br /&gt;And if @@Recordcount is checked before the error-checking statement then @@Error would get reset.&lt;br /&gt;To get @@error and @@rowcount at the same time do both in same statement and store them in local&lt;br /&gt;variable. SELECT @RC = @@ROWCOUNT, @ER = @@ERROR&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-8016640759701220632?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/8016640759701220632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=8016640759701220632' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/8016640759701220632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/8016640759701220632'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/how-to-get-error-and-rowcount-at-same.html' title='How to get @@error and @@rowcount at the same time?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-7896000329579298990</id><published>2008-04-18T16:37:00.003+05:30</published><updated>2008-04-18T16:37:38.747+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is Identity?</title><content type='html'>Identity (or AutoNumber) is a column that automatically generates numeric values. A start and&lt;br /&gt;increment value can be set, but most DBA leave these at 1. A GUID column also generates numbers,&lt;br /&gt;the value of this cannot be controled. Identity/GUID columns do not need to be indexed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-7896000329579298990?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/7896000329579298990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=7896000329579298990' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/7896000329579298990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/7896000329579298990'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/what-is-identity.html' title='What is Identity?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-2512725246650402355</id><published>2008-04-18T16:37:00.001+05:30</published><updated>2008-04-18T16:37:25.572+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is a Scheduled Jobs or What is a Scheduled Tasks?</title><content type='html'>Scheduled tasks let user automate processes that run on regular or predictable cycles. User can&lt;br /&gt;schedule administrative tasks, such as cube processing, to run during times of slow business activity.&lt;br /&gt;User can also determine the order in which tasks run by creating job steps within a SQL Server Agent&lt;br /&gt;job. E.g. Back up database, Update Stats of Tables. Job steps give user control over flow of execution.&lt;br /&gt;&lt;br /&gt;If one job fails, user can configure SQL Server Agent to continue to run the remaining tasks or to stop&lt;br /&gt;execution.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-2512725246650402355?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/2512725246650402355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=2512725246650402355' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2512725246650402355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2512725246650402355'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/what-is-scheduled-jobs-or-what-is.html' title='What is a Scheduled Jobs or What is a Scheduled Tasks?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-1712935097122088921</id><published>2008-04-18T16:36:00.004+05:30</published><updated>2008-04-18T16:37:09.228+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is a table called, if it does not have neither Cluster nor Non-cluster Index? What is it</title><content type='html'>What is a table called, if it does not have neither Cluster nor Non-cluster Index? What is it&lt;br /&gt;used for?&lt;br /&gt;&lt;br /&gt;Ans:&lt;br /&gt;&lt;br /&gt;Unindexed table or Heap. Microsoft Press Books and Book On Line (BOL) refers it as Heap.&lt;br /&gt;A heap is a table that does not have a clustered index and, therefore, the pages are not linked by&lt;br /&gt;pointers. The IAM pages are the only structures that link the pages in a table together.&lt;br /&gt;Unindexed tables are good for fast storing of data. Many times it is better to drop all indexes from table&lt;br /&gt;and than do bulk of inserts and to restore those indexes after that.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-1712935097122088921?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/1712935097122088921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=1712935097122088921' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/1712935097122088921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/1712935097122088921'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/what-is-table-called-if-it-does-not.html' title='What is a table called, if it does not have neither Cluster nor Non-cluster Index? What is it'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-7768348967989606444</id><published>2008-04-18T16:36:00.003+05:30</published><updated>2008-04-18T16:36:41.061+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is BCP? When does it used?</title><content type='html'>BulkCopy is a tool used to copy huge amount of data from tables and views. BCP does not copy the&lt;br /&gt;structures same as source to destination.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-7768348967989606444?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/7768348967989606444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=7768348967989606444' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/7768348967989606444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/7768348967989606444'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/what-is-bcp-when-does-it-used.html' title='What is BCP? When does it used?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-2347901919225197583</id><published>2008-04-18T16:36:00.001+05:30</published><updated>2008-04-18T16:36:25.063+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>How do you load large data to the SQL server database?</title><content type='html'>BulkCopy is a tool used to copy huge amount of data from tables. BULK INSERT command helps to&lt;br /&gt;Imports a data file into a database table or view in a user-specified format.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-2347901919225197583?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/2347901919225197583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=2347901919225197583' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2347901919225197583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2347901919225197583'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/how-do-you-load-large-data-to-sql.html' title='How do you load large data to the SQL server database?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-3973991027573724661</id><published>2008-04-18T16:35:00.006+05:30</published><updated>2008-04-18T16:36:08.234+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>Can we rewrite subqueries into simple select statements or with joins?</title><content type='html'>Subqueries can often be re-written to use a standard outer join, resulting in faster performance. As we&lt;br /&gt;may know, an outer join uses the plus sign (+) operator to tell the database to return all non-matching&lt;br /&gt;rows with NULL values. Hence we combine the outer join with a NULL test in the WHERE clause to&lt;br /&gt;reproduce the result set without using a sub-query&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-3973991027573724661?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/3973991027573724661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=3973991027573724661' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/3973991027573724661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/3973991027573724661'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/can-we-rewrite-subqueries-into-simple.html' title='Can we rewrite subqueries into simple select statements or with joins?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-5062615068287887110</id><published>2008-04-18T16:35:00.005+05:30</published><updated>2008-04-18T16:35:53.769+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>Can SQL Servers linked to other servers like Oracle?</title><content type='html'>SQL Server can be lined to any server provided it has OLE-DB provider from Microsoft to allow a link.&lt;br /&gt;E.g. Oracle has a OLE-DB provider for oracle that Microsoft provides to add it as linked server to SQL&lt;br /&gt;Server group.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-5062615068287887110?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/5062615068287887110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=5062615068287887110' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/5062615068287887110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/5062615068287887110'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/can-sql-servers-linked-to-other-servers.html' title='Can SQL Servers linked to other servers like Oracle?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-3863603965825940245</id><published>2008-04-18T16:35:00.003+05:30</published><updated>2008-04-18T16:35:38.440+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>How to know which index a table is using?</title><content type='html'>SELECT table_name,index_name FROM user_constraints&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-3863603965825940245?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/3863603965825940245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=3863603965825940245' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/3863603965825940245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/3863603965825940245'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/how-to-know-which-index-table-is-using.html' title='How to know which index a table is using?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-8839099565031989684</id><published>2008-04-18T16:35:00.001+05:30</published><updated>2008-04-18T16:35:21.618+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>How to copy the tables, schema and views from one SQL server to another?</title><content type='html'>Microsoft SQL Server 2000 Data Transformation Services (DTS) is a set of graphical tools and&lt;br /&gt;programmable objects that lets user extract, transform, and consolidate data from disparate sources&lt;br /&gt;into single or multiple destinations.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-8839099565031989684?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/8839099565031989684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=8839099565031989684' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/8839099565031989684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/8839099565031989684'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/how-to-copy-tables-schema-and-views.html' title='How to copy the tables, schema and views from one SQL server to another?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-8102076641541280660</id><published>2008-04-18T16:34:00.004+05:30</published><updated>2008-04-18T16:35:00.518+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is Self Join?</title><content type='html'>This is a particular case when one table joins to itself, with one or two aliases to avoid confusion. A self&lt;br /&gt;join can be of any type, as long as the joined tables are the same. A self join is rather unique in that it&lt;br /&gt;involves a relationship with only one table. The common example is when company have a hierarchal&lt;br /&gt;reporting structure whereby one member of staff reports to another.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-8102076641541280660?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/8102076641541280660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=8102076641541280660' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/8102076641541280660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/8102076641541280660'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/what-is-self-join.html' title='What is Self Join?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-4345109784793292447</id><published>2008-04-18T16:34:00.003+05:30</published><updated>2008-04-18T16:34:45.585+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is Cross Join?</title><content type='html'>A cross join that does not have a WHERE clause produces the Cartesian product of the tables involved&lt;br /&gt;in the join. The size of a Cartesian product result set is the number of rows in the first table multiplied&lt;br /&gt;by the number of rows in the second table. The common example is when company wants to combine&lt;br /&gt;each product with a pricing table to analyze each product at each price.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-4345109784793292447?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/4345109784793292447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=4345109784793292447' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/4345109784793292447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/4345109784793292447'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/what-is-cross-join.html' title='What is Cross Join?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-2472142743203221485</id><published>2008-04-18T16:34:00.001+05:30</published><updated>2008-04-18T16:34:27.615+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>Which virtual table does a trigger use?</title><content type='html'>Inserted and Deleted.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-2472142743203221485?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/2472142743203221485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=2472142743203221485' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2472142743203221485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2472142743203221485'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/which-virtual-table-does-trigger-use.html' title='Which virtual table does a trigger use?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-6484742044282180581</id><published>2008-04-18T16:33:00.004+05:30</published><updated>2008-04-18T16:34:09.471+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>List few advantages of Stored Procedure.</title><content type='html'>· Stored procedure can reduced network traffic and latency, boosting application performance.&lt;br /&gt;· Stored procedure execution plans can be reused, staying cached in SQL Server's memory,&lt;br /&gt;reducing server overhead.&lt;br /&gt;· Stored procedures help promote code reuse.&lt;br /&gt;· Stored procedures can encapsulate logic. You can change stored procedure code without&lt;br /&gt;affecting clients.&lt;br /&gt;· Stored procedures provide better security to your data.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-6484742044282180581?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/6484742044282180581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=6484742044282180581' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/6484742044282180581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/6484742044282180581'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/list-few-advantages-of-stored-procedure.html' title='List few advantages of Stored Procedure.'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-4572905130330215401</id><published>2008-04-18T16:33:00.003+05:30</published><updated>2008-04-18T16:33:48.954+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is DataWarehousing?</title><content type='html'>·&lt;span style="font-weight: bold;"&gt; Subject-oriented&lt;/span&gt;, meaning that the data in the database is organized so that all the data&lt;br /&gt;elements relating to the same real-world event or object are linked together;&lt;br /&gt;· &lt;span style="font-weight: bold;"&gt;Time-variant&lt;/span&gt;, meaning that the changes to the data in the database are tracked and recorded&lt;br /&gt;so that reports can be produced showing changes over time;&lt;br /&gt;· &lt;span style="font-weight: bold;"&gt;Non-volatile&lt;/span&gt;, meaning that data in the database is never over-written or deleted, once&lt;br /&gt;committed, the data is static, read-only, but retained for future reporting;&lt;br /&gt;· &lt;span style="font-weight: bold;"&gt;Integrated&lt;/span&gt;, meaning that the database contains data from most or all of an organization's&lt;br /&gt;operational applications, and that this data is made consistent.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-4572905130330215401?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/4572905130330215401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=4572905130330215401' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/4572905130330215401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/4572905130330215401'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/what-is-datawarehousing.html' title='What is DataWarehousing?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-6397922390944638778</id><published>2008-04-18T16:33:00.001+05:30</published><updated>2008-04-18T16:33:28.238+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is OLTP(OnLine Transaction Processing)?</title><content type='html'>In OLTP - online transaction processing systems relational database design use the discipline of data&lt;br /&gt;modeling and generally follow the Codd rules of data normalization in order to ensure absolute data&lt;br /&gt;integrity. Using these rules complex information is broken down into its most simple structures (a table)&lt;br /&gt;where all of the individual atomic level elements relate to each other and satisfy the normalization&lt;br /&gt;rules.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-6397922390944638778?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/6397922390944638778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=6397922390944638778' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/6397922390944638778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/6397922390944638778'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/what-is-oltponline-transaction.html' title='What is OLTP(OnLine Transaction Processing)?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-4874859337061211940</id><published>2008-04-18T16:32:00.001+05:30</published><updated>2008-04-18T16:32:49.159+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>How do SQL server 2000 and XML linked? Can XML be used to access data?</title><content type='html'>How do SQL server 2000 and XML linked? Can XML be used to access data?&lt;br /&gt;FOR XML (ROW, AUTO, EXPLICIT)&lt;br /&gt;&lt;br /&gt;Ans:&lt;br /&gt;You can execute SQL queries against existing relational databases to return results as XML rather than&lt;br /&gt;standard rowsets. These queries can be executed directly or from within stored procedures. To retrieve&lt;br /&gt;XML results, use the FOR XML clause of the SELECT statement and specify an XML mode of RAW, AUTO,&lt;br /&gt;or EXPLICIT.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-4874859337061211940?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/4874859337061211940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=4874859337061211940' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/4874859337061211940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/4874859337061211940'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/how-do-sql-server-2000-and-xml-linked.html' title='How do SQL server 2000 and XML linked? Can XML be used to access data?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-2988586293205701864</id><published>2008-04-18T16:31:00.001+05:30</published><updated>2008-04-18T16:31:50.496+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>OPENXML</title><content type='html'>OPENXML is a Transact-SQL keyword that provides a relational/rowset view over an in-memory XML&lt;br /&gt;document. OPENXML is a rowset provider similar to a table or a view. OPENXML provides a way to&lt;br /&gt;access XML data within the Transact-SQL context by transferring data from an XML document into the&lt;br /&gt;relational tables. Thus, OPENXML allows you to manage an XML document and its interaction with the&lt;br /&gt;relational environment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-2988586293205701864?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/2988586293205701864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=2988586293205701864' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2988586293205701864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/2988586293205701864'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/openxml.html' title='OPENXML'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-5317706384422922524</id><published>2008-04-18T16:30:00.000+05:30</published><updated>2008-04-18T16:31:32.541+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Interview Questions'/><title type='text'>What is an execution plan? When would you use it? How would you view the execution plan?</title><content type='html'>An execution plan is basically a road map that graphically or textually shows the data retrieval methods&lt;br /&gt;chosen by the SQL Server query optimizer for a stored procedure or ad-hoc query and is a very useful&lt;br /&gt;tool for a developer to understand the performance characteristics of a query or stored procedure since&lt;br /&gt;the plan is the one that SQL Server will place in its cache and use to execute the stored procedure or&lt;br /&gt;query. From within Query Analyzer is an option called "Show Execution Plan" (located on the Query&lt;br /&gt;drop-down menu). If this option is turned on it will display query execution plan in separate window&lt;br /&gt;when query is ran again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-5317706384422922524?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/5317706384422922524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=5317706384422922524' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/5317706384422922524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/5317706384422922524'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/what-is-execution-plan-when-would-you.html' title='What is an execution plan? When would you use it? How would you view the execution plan?'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7386334741025822419.post-5932415054510240591</id><published>2008-04-07T21:12:00.001+05:30</published><updated>2008-05-08T13:40:47.181+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tables'/><title type='text'>Global Temporary Tables</title><content type='html'>I listened intently to the new Oracle programmer as he described all the struggles he's been having on his first big project. As I've done many times already in his short career, I interrupt with some words of wisdom.&lt;br /&gt;&lt;br /&gt;"It's time to add Global Temporary Tables to your toolbelt."&lt;br /&gt;&lt;br /&gt;"What are those?" he asks, as he opens the directory with the Oracle documentation.  I smile.  He has already learned where I always send him first.&lt;br /&gt;&lt;br /&gt;"They're the ultimate work tables," I continue. "They're permanent tables, where you can add and modify session-specific data without affecting other sessions."&lt;br /&gt;&lt;br /&gt;"What's so special about that?" he asks. "Even with regular tables, you can add and modify the data all you want without affecting other sessions. Just don't commit, and remember to rollback when your session is done."&lt;br /&gt;&lt;br /&gt;"Oh yeah?  And what about all the persistent work you're doing in your session?  How do you commit that?"&lt;br /&gt;&lt;br /&gt;"Oh yeah.  Does it allow for indexes, and triggers, and views with regular tables?"&lt;br /&gt;&lt;br /&gt;"Yep, all of that.  See for yourself, it's easy.  You've got the manual in front of you, so you drive."&lt;br /&gt;&lt;br /&gt;Then I watched as he opened one session, and created a global temporary table.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;SQL&gt; CREATE GLOBAL TEMPORARY TABLE worktable (x NUMBER(3));&lt;br /&gt;&lt;br /&gt;Table created.&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;He opened another session and was pleased to see the table there. He then added a row in the first session, committed it, and was planning to use the other session to see if the data was there. But instead he was in for a little surprise.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;SQL&gt; INSERT INTO worktable (x) VALUES (1);&lt;br /&gt;&lt;br /&gt;1 row created.&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT * FROM worktable;&lt;br /&gt;&lt;br /&gt;     X&lt;br /&gt;----------&lt;br /&gt;     1&lt;br /&gt;&lt;br /&gt;SQL&gt; commit;&lt;br /&gt;&lt;br /&gt;Commit complete.&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT * FROM worktable;&lt;br /&gt;&lt;br /&gt;no rows selected&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;"Hey!" he shouted.  Heads popped up in nearby cubicles.  "Where did it go?"&lt;br /&gt;&lt;br /&gt;"Keep reading," I said, gesturing towards the "ON COMMIT" options for Global Temporary Tables. "By default, every time you commit your data, it is assumed that you want to clear out your work tables. Try PRESERVE."&lt;br /&gt;&lt;br /&gt;He dropped the table, and tried again.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;SQL&gt; CREATE GLOBAL TEMPORARY TABLE worktable&lt;br /&gt;2  (x NUMBER(3))&lt;br /&gt;3  ON COMMIT PRESERVE ROWS;&lt;br /&gt;&lt;br /&gt;Table created.&lt;br /&gt;&lt;br /&gt;SQL&gt; INSERT INTO worktable (x) VALUES (1);&lt;br /&gt;&lt;br /&gt;1 row created.&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT * FROM worktable;&lt;br /&gt;&lt;br /&gt;     X&lt;br /&gt;----------&lt;br /&gt;     1&lt;br /&gt;&lt;br /&gt;SQL&gt; commit;&lt;br /&gt;&lt;br /&gt;Commit complete.&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT * FROM worktable;&lt;br /&gt;&lt;br /&gt;     X&lt;br /&gt;----------&lt;br /&gt;     1&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;"That's better," he smiled.  Now let's check the other session.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;SQL&gt; SELECT * FROM worktable;&lt;br /&gt;&lt;br /&gt;no rows selected&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;"Excellent.  So this data will remain there until my session ends?"&lt;br /&gt;&lt;br /&gt;"Yep. Try it." He exited his session, logged back in, and sure enough the data was gone. "This is great. But what if I want to get rid of the data at some point in my session?"&lt;br /&gt;&lt;br /&gt;"Truncate.  Truncating the work table will only truncate the data in your session, not all the data."&lt;br /&gt;&lt;br /&gt;"Hey neat.  Thanks, this will be very useful.  What are you doing for lunch later?"&lt;br /&gt;&lt;br /&gt;"Aren't you even going to try it? What, you're just going to trust me?" I said. I think he was a little surprised that I would I'd rather talk about work tables than lunch. Frankly, so am I. Thankfully, he worked quickly, typing first in his second session.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;SQL&gt; INSERT INTO worktable (x) VALUES (2)&lt;br /&gt;&lt;br /&gt;1 row created.&lt;br /&gt;&lt;br /&gt;SQL&gt; commit;&lt;br /&gt;&lt;br /&gt;Commit complete.&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT * FROM worktable;&lt;br /&gt;&lt;br /&gt;     X&lt;br /&gt;----------&lt;br /&gt;     2&lt;br /&gt;&lt;br /&gt;SQL&gt; TRUNCATE TABLE worktable;&lt;br /&gt;&lt;br /&gt;Table truncated.&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT * FROM worktable;&lt;br /&gt;&lt;br /&gt;no rows selected&lt;br /&gt;&lt;br /&gt;SQL&gt; commit;&lt;br /&gt;&lt;br /&gt;Commit complete.&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;"I don't think you need all those commits," I laughed. "But ok, now look back in your first session. If the row you added previously isn't there, then I'm a big fat liar. Otherwise, we can talk about lunch."&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;SQL&gt; SELECT * FROM worktable;&lt;br /&gt;&lt;br /&gt;     X&lt;br /&gt;----------&lt;br /&gt;     1&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;"So how about sushi?" he asked.&lt;br /&gt;&lt;br /&gt;"Sushi?" I groaned.  "Haven't you learned anything from me?"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7386334741025822419-5932415054510240591?l=oracleliveinfo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracleliveinfo.blogspot.com/feeds/5932415054510240591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7386334741025822419&amp;postID=5932415054510240591' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/5932415054510240591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7386334741025822419/posts/default/5932415054510240591'/><link rel='alternate' type='text/html' href='http://oracleliveinfo.blogspot.com/2008/04/global-temporary-tables.html' title='Global Temporary Tables'/><author><name>Educational Information</name><uri>http://www.blogger.com/profile/00157171674583777374</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
