<?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:blogger='http://schemas.google.com/blogger/2008' 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-218486656333916080</id><updated>2024-09-14T00:48:13.974+05:30</updated><category term="Interview Question and Answer"/><category term="PowerBuilder"/><category term="SQL Server"/><title type='text'>Enjoy, Entertain and Learn Something</title><subtitle type='html'>Common and frequently asked Question and Answer for PowerBuilder, SQL Server and Tableau and So On...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://expert-powerbuilder.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/218486656333916080/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://expert-powerbuilder.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Umesh Yadav</name><uri>http://www.blogger.com/profile/07880241385649999462</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQZoSzfFvXdfawUdtCQsmQx9daqqDOdbkFGx59yNTtI8C8MXR5bek4j5SLzJ-uq4vSgf-WlaA_QiFBvc3GkXUS6EyvncDGOgvWSN6t-dxeookMZ6oI9iDzuk9CY4OGPA/s113/durga.bmp'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-218486656333916080.post-5697834698186004676</id><published>2019-02-03T02:20:00.000+05:30</published><updated>2019-02-03T02:20:20.097+05:30</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.youtube.com/channel/UC-eNd9whFpYBz0Y8QirQVMQ&quot;&gt;http://www.youtube.com/channel/UC-eNd9whFpYBz0Y8QirQVMQ&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;fsm&quot;&gt;
&lt;a data-ft=&quot;{&amp;quot;tn&amp;quot;:&amp;quot;-U&amp;quot;}&quot; data-lynx-mode=&quot;hover&quot; data-lynx-uri=&quot;https://l.facebook.com/l.php?u=https%3A%2F%2Fyoutu.be%2FvpJLijJnXLs%3Ffbclid%3DIwAR0tcG5Rh9rlvkxRUEULgIYr6nviE1IU0p0GhYzh5Oi8Q75Hw69bYWUglLY&amp;amp;h=AT1-8inJInR-b7XC5GMw9TZSHDdu63rSiAsmUJqlUwPWn-5ZgnIJ6WIcGSrTLbuChaU7cbbYwTLTKA-3_yeUtRcUxyloZfCWgPaRmm8D6nsp6q75PqGKnS1r6Y0xa7ESDaoU4O4&quot; href=&quot;https://youtu.be/vpJLijJnXLs&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://youtu.be/vpJLijJnXLs&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;fsm&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;fsm&quot;&gt;
&lt;a href=&quot;https://www.youtube.com/watch?v=uFzjcwu_mzo&quot;&gt;https://www.youtube.com/watch?v=uFzjcwu_mzo&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;fsm&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;fsm&quot;&gt;
&lt;a href=&quot;https://www.youtube.com/watch?v=iSNnOdVPtJY&quot;&gt;https://www.youtube.com/watch?v=iSNnOdVPtJY&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;fsm&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;fsm&quot;&gt;
PowerBuilder, SQL Server and Tableau&amp;nbsp;Tutorial will come soon.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://expert-powerbuilder.blogspot.com/feeds/5697834698186004676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://expert-powerbuilder.blogspot.com/2019/02/httpwww.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/218486656333916080/posts/default/5697834698186004676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/218486656333916080/posts/default/5697834698186004676'/><link rel='alternate' type='text/html' href='http://expert-powerbuilder.blogspot.com/2019/02/httpwww.html' title=''/><author><name>Umesh Yadav</name><uri>http://www.blogger.com/profile/07880241385649999462</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQZoSzfFvXdfawUdtCQsmQx9daqqDOdbkFGx59yNTtI8C8MXR5bek4j5SLzJ-uq4vSgf-WlaA_QiFBvc3GkXUS6EyvncDGOgvWSN6t-dxeookMZ6oI9iDzuk9CY4OGPA/s113/durga.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-218486656333916080.post-4712383291633221521</id><published>2019-02-02T21:54:00.001+05:30</published><updated>2019-02-02T21:54:16.704+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Interview Question and Answer"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;1. What is normalization? Explain different levels of normalization?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Check out the article Q100139 from Microsoft knowledge base and of&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
course, there&#39;s much more information available in the net. It&#39;ll be a&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
good idea to get a hold of any RDBMS fundamentals text book,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
especially the one by C. J. Date. Most of the times, it will be okay&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
if you can explain till third normal form.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;2. What is denormalization and when would you go for it?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;As the name indicates, denormalization is the reverse process of&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
normalization. It&#39;s the controlled introduction of redundancy in to&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
the database design. It helps improve the query performance as the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
number of joins could be reduced.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;3. How do you implement one-to-one, one-to-many and many-to-many&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;relationships while designing tables?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;One-to-One relationship can be implemented as a single table and&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
rarely as two tables with primary and foreign key relationships.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
One-to-Many relationships are implemented by splitting the data into&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
two tables with primary key and foreign key relationships.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Many-to-Many relationships are implemented using a junction table with&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
the keys from both the tables forming the composite primary key of the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
junction table.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
It will be a good idea to read up a database designing fundamentals&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
text book.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;4. What&#39;s the difference between a primary key and a unique key?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Both primary key and unique enforce uniqueness of the column on which&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
they are defined. But by default primary key creates a clustered index&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
on the column, where are unique creates a nonclustered index by&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
default. Another major difference is that, primary key doesn&#39;t allow&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
NULLs, but unique key allows one NULL only.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;5. What are user defined datatypes and when you should go for them?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;User defined datatypes let you extend the base SQL Server datatypes by&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
providing a descriptive name, and format to the database. Take for&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
example, in your database, there is a column called Flight_Num which&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
appears in many tables. In all these tables it should be varchar(8).&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
In this case you could create a user defined datatype called&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Flight_num_type of varchar(8) and use it across all your tables.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
See sp_addtype, sp_droptype in books online.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;5. What is bit datatype and what&#39;s the information that can be stored&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;inside a bit column?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Bit datatype is used to store boolean information like 1 or 0 (true or&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
false). Untill SQL Server 6.5 bit datatype could hold either a 1 or 0&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
and there was no support for NULL. But from SQL Server 7.0 onwards,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
bit datatype can represent a third state, which is NULL.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;6. Define candidate key, alternate key, composite key.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;A candidate key is one that can identify each row of a table uniquely.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Generally a candidate key becomes the primary key of the table. If the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
table has more than one candidate key, one of them will become the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
primary key, and the rest are called alternate keys.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
A key formed by combining at least two or more columns is called&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
composite key.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;7. What are defaults? Is there a column to which a default can&#39;t be bound?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;A default is a value that will be used by a column, if no value is&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
supplied to that column while inserting data. IDENTITY columns and&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
timestamp columns can&#39;t have defaults bound to them. See CREATE&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
DEFUALT in books online.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Back to top&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
SQL Server architecture&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;(top)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;8. What is a transaction and what are ACID properties?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
A transaction is a logical unit of work in which, all the steps must&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
be performed or none. ACID stands for Atomicity, Consistency,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Isolation, Durability. These are the properties of a transaction. For&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
more information and explanation of these properties, see SQL Server&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
books online or any RDBMS fundamentals text book.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Explain different isolation levels&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
An isolation level determines the degree of isolation of data between&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
concurrent transactions. The default SQL Server isolation level is&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Read Committed. Here are the other isolation levels (in the ascending&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
order of isolation): Read Uncommitted, Read Committed, Repeatable&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Read, Serializable. See SQL Server books online for an explanation of&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
the isolation levels. Be sure to read about SET TRANSACTION ISOLATION&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
LEVEL, which lets you customize the isolation level at the connection&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
level.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
CREATE INDEX myIndex ON myTable(myColumn)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;9. What type of Index will get created after executing the above statement?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Non-clustered index. Important thing to note: By default a clustered&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
index gets created on the primary key, unless specified otherwise.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;What&#39;s the maximum size of a row?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
8060 bytes. Don&#39;t be surprised with questions like &#39;what is the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
maximum number of columns per table&#39;. Check out SQL Server books&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
online for the page titled: &quot;Maximum Capacity Specifications&quot;.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;10. Explain Active/Active and Active/Passive cluster configurations&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Hopefully you have experience setting up cluster servers. But if you&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
don&#39;t, at least be familiar with the way clustering works and the two&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
clusterning configurations Active/Active and Active/Passive. SQL&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Server books online has enough information on this topic and there is&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
a good white paper available on Microsoft site.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;11. Explain the architecture of SQL Server&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
This is a very important question and you better be able to answer it&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
if consider yourself a DBA. SQL Server books online is the best place&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
to read about SQL Server architecture. Read up the chapter dedicated&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
to SQL Server Architecture.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;12. What is lock escalation?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Lock escalation is the process of converting a lot of low level locks&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
(like row locks, page locks) into higher level locks (like table&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
locks). Every lock is a memory structure too many locks would mean,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
more memory being occupied by locks. To prevent this from happening,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
SQL Server escalates the many fine-grain locks to fewer coarse-grain&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
locks. Lock escalation threshold was definable in SQL Server 6.5, but&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
from SQL Server 7.0 onwards it&#39;s dynamically managed by SQL Server.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;13. What&#39;s the difference between DELETE TABLE and TRUNCATE TABLE commands?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
DELETE TABLE is a logged operation, so the deletion of each row gets&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
logged in the transaction log, which makes it slow. TRUNCATE TABLE&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
also deletes all the rows in a table, but it won&#39;t log the deletion of&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
each row, instead it logs the deallocation of the data pages of the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
table, which makes it faster. Of course, TRUNCATE TABLE can be rolled&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
back.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;14. Explain the storage models of OLAP&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Check out MOLAP, ROLAP and HOLAP in SQL Server books online for more&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
infomation.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;15. What are the new features introduced in SQL Server 2000 (or the latest&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;release of SQL Server at the time of your interview)? What changed&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;between the previous version of SQL Server and the current version?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
This question is generally asked to see how current is your knowledge.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Generally there is a section in the beginning of the books online&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
titled &quot;What&#39;s New&quot;, which has all such information. Of course,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
reading just that is not enough, you should have tried those things to&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
better answer the questions. Also check out the section titled&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&quot;Backward Compatibility&quot; in books online which talks about the changes&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
that have taken place in the new version.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;16. What are constraints? Explain different types of constraints.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Constraints enable the RDBMS enforce the integrity of the database&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
automatically, without needing you to create triggers, rule or defaults.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Types of constraints: NOT NULL, CHECK, UNIQUE, PRIMARY KEY, FOREIGN KEY&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
For an explanation of these constraints see books online for the pages&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
titled: &quot;Constraints&quot; and &quot;CREATE TABLE&quot;, &quot;ALTER TABLE&quot;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;17.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Whar is an index? What are the types of indexes? How many clustered&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;indexes can be created on a table? I create a separate index on each&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;column of a table. what are the advantages and disadvantages of this&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;approach?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Indexes in SQL Server are similar to the indexes in books. They help&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
SQL Server retrieve the data quicker.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Indexes are of two types. Clustered indexes and non-clustered indexes.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
When you craete a clustered index on a table, all the rows in the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
table are stored in the order of the clustered index key. So, there&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
can be only one clustered index per table. Non-clustered indexes have&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
their own storage separate from the table data storage. Non-clustered&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
indexes are stored as B-tree structures (so do clustered indexes),&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
with the leaf level nodes having the index key and it&#39;s row locater.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
The row located could be the RID or the Clustered index key, depending&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
up on the absence or presence of clustered index on the table.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
If you create an index on each column of a table, it improves the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
query performance, as the query optimizer can choose from all the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
existing indexes to come up with an efficient execution plan. At the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
same t ime, data modification operations (such as INSERT, UPDATE,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
DELETE) will become slow, as every time data changes in the table, all&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
the indexes need to be updated. Another disadvantage is that, indexes&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
need disk space, the more indexes you have, more disk space is used.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Back to top&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Database administration&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;(top)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;18. What is RAID and what are different types of RAID configurations?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
RAID stands for Redundant Array of Inexpensive Disks, used to provide&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
fault tolerance to database servers. There are six RAID levels 0&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
through 5 offering different levels of performance, fault tolerance.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
MSDN has some information about RAID levels and for detailed&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
information, check out the RAID advisory board&#39;s homepage&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;19. What are the steps you will take to improve performance of a poor&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;performing query?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
This is a very open ended question and there could be a lot of reasons&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
behind the poor performance of a query. But some general issues that&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
you could talk about would be: No indexes, table scans, missing or out&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
of date statistics, blocking, excess recompilations of stored&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
procedures, procedures and triggers without SET &lt;st1:place w:st=&quot;on&quot;&gt;&lt;st1:city w:st=&quot;on&quot;&gt;NOCOUNT&lt;/st1:city&gt; &lt;st1:state w:st=&quot;on&quot;&gt;ON&lt;/st1:state&gt;&lt;/st1:place&gt;, poorly&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
written query with unnecessarily complicated joins, too much&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
normalization, excess usage of cursors and temporary tables.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Some of the tools/ways that help you troubleshooting performance&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
problems are: SET SHOWPLAN_ALL ON, SET SHOWPLAN_TEXT ON, SET&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
STATISTICS IO ON, SQL Server Profiler, Windows NT /2000 Performance&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
monitor, Graphical execution plan in Query Analyzer.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Download the white paper on performance tuning SQL Server from&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Microsoft web site. Don&#39;t forget to check out sql-server-performance.com&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;20. What are the steps you will take, if you are tasked with securing an&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;SQL Server?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Again this is another open ended question. Here are some things you&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
could talk about: Preferring NT authentication, using server, databse&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
and application roles to control access to the data, securing the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
physical database files using NTFS permissions, using an unguessable&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
SA password, restricting physical access to the SQL Server, renaming&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
the Administrator account on the SQL Server computer, disabling the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Guest account, enabling auditing, using multiprotocol encryption,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
setting up SSL, setting up firewalls, isolating SQL Server from the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
web server etc.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Read the white paper on SQL Server security from Microsoft website.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Also check out My SQL Server security best practices&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;21. What is a deadlock and what is a live lock? How will you go about&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;resolving deadlocks?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Deadlock is a situation when two processes, each having a lock on one&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
piece of data, attempt to acquire a lock on the other&#39;s piece. Each&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
process&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;would wait indefinitely for the other to release the lock,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
unless one of the user processes is terminated. SQL Server detects&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
deadlocks and terminates one user&#39;s process.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
A livelock is one, where a&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;request for an exclusive lock is&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
repeatedly denied because a series of overlapping shared locks keeps&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
interfering. SQL Server detects the situation after four denials and&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
refuses further shared locks. A livelock also occurs when read&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
transactions monopolize a table or page, forcing a write transaction&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
to wait indefinitely.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Check out SET DEADLOCK_PRIORITY and &quot;Minimizing Deadlocks&quot;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;in SQL&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Server books online. Also check out the article Q169960 from Microsoft&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
knowledge base.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;22. What is blocking and how would you troubleshoot it?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Blocking happens when one connection from an application holds a lock&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
and a second connection requires a conflicting lock type. This forces&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
the second connection to wait, blocked on the first.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Read up the following topics in SQL Server books online: Understanding&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
and avoiding blocking, Coding efficient transactions.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;23. Explain CREATE DATABASE syntax&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Many of us are used to craeting databases from the Enterprise Manager&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
or by just issuing the command: CREATE DATABAE MyDB. But what if you&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
have to create a database with two filegroups, one on drive C and the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
other on drive D with log on drive E with an initial size of 600 MB&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
and with a growth factor of 15%? That&#39;s why being a DBA you should be&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
familiar with the CREATE DATABASE syntax. Check out SQL Server books&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
online for more information.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;24. How to restart SQL Server in single user mode? How to start SQL Server&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;in minimal configuration mode?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
SQL Server can be started from command line, using the SQLSERVR.EXE.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
This EXE has some very important parameters with which a DBA should be&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
familiar with. -m is used for starting SQL Server in single user mode&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
and -f is used to start the SQL Server in minimal confuguration mode.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Check out SQL Server books online for more parameters and their&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
explanations.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;25. As a part of your job, what are the DBCC commands that you commonly&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;use for database maintenance?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
DBCC CHECKDB, DBCC CHECKTABLE, DBCC CHECKCATALOG, DBCC CHECKALLOC,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
DBCC SHOWCONTIG, DBCC SHRINKDATABASE, DBCC SHRINKFILE etc. But there&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
are a whole load of DBCC commands which are very useful for DBAs.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Check out SQL Server books online for more information.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;26. What are statistics, under what circumstances they go out of date, how&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;do you update them?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Statistics determine the selectivity of the indexes. If an indexed&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
column has unique values then the selectivity of that index is more,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
as opposed to an index with non-unique values. Query optimizer uses&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
these indexes in determining whether to choose an index or not while&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
executing a query.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Some situations under which you should update statistics:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
1) If there is significant change in the key values in the index&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
2) If a large amount of data in an indexed column has been added,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
changed, or removed (that is, if the distribution of key values has&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
changed), or the table has been truncated using the TRUNCATE TABLE&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
statement and then repopulated&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
3) Database is upgraded from a previous version&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Look up SQL Server books online for the following commands: UPDATE&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
STATISTICS, STATS_DATE, DBCC SHOW_STATISTICS, CREATE STATISTICS, DROP&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
STATISTICS, sp_autostats, sp_createstats, sp_updatestats&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;27. What are the different ways of moving data/databases between servers&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;and databases in SQL Server?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
There are lots of options available, you have to choose your option&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
depending upon your requirements. Some of the options you have are:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
BACKUP/RESTORE, dettaching and attaching databases, replication, DTS,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
BCP, logshipping, INSERT...SELECT, SELECT...INTO, creating INSERT&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
scripts to generate data.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;28. Explian different types of BACKUPs avaialabe in SQL Server? Given a&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;particular scenario, how would you go about choosing a backup plan?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Types of backups you can create in SQL Sever 7.0+ are Full database&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
backup, differential database backup, transaction log backup,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
filegroup backup. Check out the BACKUP and RESTORE commands in SQL&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Server books online. Be prepared to write the commands in your&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
interview. Books online also has information on detailed&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
backup/restore architecture and when one should go for a particular&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
kind of backup.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;29. What is database replicaion? What are the different types of&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;replication you can set up in SQL Server?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Replication is the process of copying/moving data between databases on&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
the same or different servers. SQL Server supports the following types&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
of replication scenarios:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;* Snapshot replication&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;* Transactional replication (with immediate updating subscribers,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
with queued updating subscribers)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;* Merge replication&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
See SQL Server books online for indepth coverage on replication. Be&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
prepared to explain how different replication agents function, what&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
are the main system tables used in replication etc.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;30. How to determine the service pack currently installed on SQL Server?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
The global variable @@Version stores the build number of the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
sqlservr.exe, which is used to determine the service pack installed.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
To know more about this process visit SQL Server service packs and&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
versions.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Back to top&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Database programming&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;(top)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;31. What are cursors? Explain different types of cursors. What are the&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red; font-size: 11pt;&quot;&gt;disadvantages of cursors? How can you avoid cursors?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Cursors allow row-by-row prcessing of the resultsets.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Types of cursors: Static, Dynamic, Forward-only, Keyset-driven. See&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
books online for more information.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Disadvantages of cursors: Each time you fetch a row from the cursor,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
it results in a network roundtrip, where as a normal SELECT query&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
makes only one rowundtrip, however large the resultset is. Cursors are&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
also costly because they require more resources and temporary storage&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
(results in more IO operations). Furthere, there are restrictions on&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
the SELECT statements that can be used with some types of cursors.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Most of the times, set based operations can be used instead of&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
cursors. Here is an example:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
If you have to give a flat hike to your employees using the following&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
criteria:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Salary between 30000 and 40000 -- 5000 hike&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Salary between 40000 and 55000 -- 7000 hike&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Salary between 55000 and 65000 -- 9000 hike&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
In this situation many developers tend to use a cursor, determine each&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
employee&#39;s salary and update his salary according to the above&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
formula. But the same can be achieved by multiple update statements or&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
can be combined in a single UPDATE statement as shown below:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
UPDATE tbl_emp SET salary =&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
CASE WHEN salary BETWEEN 30000 AND 40000 THEN salary + 5000&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
WHEN salary BETWEEN 40000 AND 55000 THEN salary + 7000&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
WHEN salary BETWEEN 55000 AND 65000 THEN salary + 10000&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
END&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Another situation in which developers tend to use cursors: You need to&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
call a stored procedure when a column in a particular row meets&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
certain condition. You don&#39;t have to use cursors for this. This can be&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
achieved using WHILE loop, as long as there is a unique key to&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
identify each row. For examples of using WHILE loop for row by row&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
processing&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Write down the general syntax for a SELECT statements covering all the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
options.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Here&#39;s the basic syntax: (Also checkout SELECT in books online for&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
advanced syntax).&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
SELECT select_list&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[INTO new_table_]&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
FROM table_source&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[WHERE search_condition]&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[GROUP BY group_by__expression]&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[HAVING search_condition]&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
[ORDER BY order__expression [ASC | DESC] ]&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;32. What is a join and explain different types of joins&lt;/span&gt;.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Joins are used in queries to explain how different tables are related.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Joins also let you select data from a table depending upon data from&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
another table.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Types of joins: INNER JOINs, OUTER JOINs, CROSS JOINs. &lt;br /&gt;
OUTER JOINs are further classified as LEFT OUTER JOINS, RIGHT OUTER JOINS and FULL&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
OUTER JOINS.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;33. Can you have a nested transaction?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Yes, very much. Check out BEGIN TRAN, COMMIT, ROLLBACK, SAVE TRAN and&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
@@TRANCOUNT&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;34. What is an extended stored procedure? Can you instantiate a COM object&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;by using T-SQL?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
An extended stored procedure is a function within a DLL (written in a&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
programming language like C, C++ using Open Data Services (ODS) API)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
that can be called from T-SQL, just the way we call normal stored&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
procedures using the EXEC statement. See books online to learn how to&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
create extended stored procedures and how to add them to SQL Server.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Yes, you can instantiate a COM (written in languages like VB, VC++)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
object from T-SQL by using sp_OACreate stored procedure. Also see&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
books online for sp_OAMethod, sp_OAGetProperty, sp_OASetProperty,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
sp_OADestroy. For an example of creating a COM object in VB and&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
calling it from T-SQL, see &#39;My code library&#39; section of this site.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;35. What is the system function to get the current user&#39;s user id?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
USER_ID(). Also check out other system functions like USER_NAME(),&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
SYSTEM_USER, SESSION_USER, CURRENT_USER, USER, SUSER_SID(), HOST_NAME().&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;36. What are triggers? How many triggers you can have on a table? How to&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;invoke a trigger on demand?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Triggers are special kind of stored procedures that get executed&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
automatically when an INSERT, UPDATE or DELETE operation takes place&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
on a table.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
In SQL Server 6.5 you could define only 3 triggers per table, one for&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
INSERT, one for UPDATE and one for DELETE. From SQL Server 7.0&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
onwards, this restriction is gone, and you could create multiple&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
triggers per each action. But in 7.0 there&#39;s no way to control the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
order in which the triggers fire. In SQL Server 2000 you could specify&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
which trigger fires first or fires last using sp_settriggerorder&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Triggers can&#39;t be invoked on demand. They get triggered only when an&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
associated action (INSERT, UPDATE, DELETE) happens on the table on&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
which they are defined.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Triggers are generally used to implement business rules, auditing.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Triggers can also be used to extend the referential integrity checks,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
but wherever possible, use constraints for this purpose, instead of&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
triggers, as constraints are much faster.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Till SQL Server 7.0, triggers fire only after the data modification&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
operation happens. So in a way, they are called post triggers. But in&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
SQL Server 2000 you could create pre triggers also. Search SQL Server&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
2000 books online for INSTEAD OF triggers.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Also check out books online for &#39;inserted table&#39;, &#39;deleted table&#39; and&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
COLUMNS_UPDATED()&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;37. There is a trigger defined for INSERT operations on a table, in an&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;OLTP system. The trigger is written to instantiate a COM object and&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;pass the newly insterted rows to it for some custom processing. What&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;do you think of this implementation? Can this be implemented better?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Instantiating COM objects is a time consuming process and since you&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
are doing it from within a trigger, it slows down the data insertion&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
process. Same is the case with sending emails from triggers. This&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
scenario can be better implemented by logging all the necessary data&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
into a separate table, and have a job which periodically checks this&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
table and does the needful.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;38. What is a self join? Explain it with an example.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Self join is just like any other join, except that two instances of&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
the same table will be joined in the query. Here is an example:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Employees table which contains rows for normal employees as well as&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
managers. So, to find out the managers of all the employees, you need&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
a self join.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
CREATE TABLE emp&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
(&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
empid int,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
mgrid int,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
empname char(10)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
INSERT emp SELECT 1,2,&#39;Vyas&#39;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
INSERT emp SELECT 2,3,&#39;Mohan&#39;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
INSERT emp SELECT 3,NULL,&#39;Shobha&#39;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
INSERT emp SELECT 4,2,&#39;Shridhar&#39;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
INSERT emp SELECT 5,2,&#39;Sourabh&#39;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
SELECT t1.empname [Employee], t2.empname [Manager]&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
FROM emp t1, emp t2&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
WHERE t1.mgrid = t2.empid&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Here&#39;s an advanced query using a LEFT OUTER JOIN that even returns the&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
employees without managers (super bosses)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
SELECT t1.empname [Employee], COALESCE(t2.empname, &#39;No manager&#39;) [Manager]&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
FROM emp t1&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
LEFT OUTER JOIN&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
emp t2&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
ON&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
t1.mgrid = t2.empid&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;39. What is the difference between Function and Stored Procedure.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: currentColor; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr style=&quot;mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border: 1pt solid currentColor; padding: 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #303336; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;Stored Procedure (SP)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: windowtext windowtext windowtext rgb(0, 0, 0); border-style: solid solid solid none; border-width: 1pt 1pt 1pt 0px; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #303336; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;Function (UDF - User Defined Function)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 1;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #303336; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;SP can return zero, single or multiple
  values.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #303336; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;Function must return a single value (which
  may be a scalar or a table).&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 2;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #303336; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;We can use transaction in SP.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #303336; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;We can&#39;t use transaction in UDF.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 3;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #303336; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;SP can have input/output parameter.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #303336; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;Only input parameter.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 4;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #303336; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;We can call function from SP.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #303336; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;We can&#39;t call SP from function.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 5;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #303336; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;We can&#39;t use SP in SELECT/ WHERE/ HAVING
  statement.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #303336; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;We can use UDF in SELECT/ WHERE/ HAVING
  statement.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 6; mso-yfti-lastrow: yes;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #303336; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;We can use exception handling using
  Try-Catch block in SP.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #303336; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt;&quot;&gt;We can&#39;t use Try-Catch block in UDF.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;40. What is the difference between&amp;nbsp;Trigger and Stored Procedure.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: currentColor; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr style=&quot;mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border: 1pt solid currentColor; padding: 0in 5.4pt; width: 27.9pt;&quot; valign=&quot;top&quot; width=&quot;37&quot;&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt 0.25in; mso-add-space: auto; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: windowtext windowtext windowtext rgb(0, 0, 0); border-style: solid solid solid none; border-width: 1pt 1pt 1pt 0px; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 450.9pt;&quot; valign=&quot;top&quot; width=&quot;601&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;1.&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;We can execute a stored procedure whenever
  we want with the help of the &lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: &amp;quot;consolas&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;exec&lt;/span&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt; command, but a trigger can only be executed
  whenever an event (insert, delete, and update) is fired on the table on which
  the trigger is defined.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 1;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 27.9pt;&quot; valign=&quot;top&quot; width=&quot;37&quot;&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt 0.25in; mso-add-space: auto; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 450.9pt;&quot; valign=&quot;top&quot; width=&quot;601&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;2.&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;We can call a stored procedure from inside
  another stored procedure but we can&#39;t directly call another trigger within a
  trigger. We can only achieve nesting of triggers in which the action (insert,
  delete, and update) defined within a trigger can initiate execution of
  another trigger defined on the same table or a different table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 2;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 27.9pt;&quot; valign=&quot;top&quot; width=&quot;37&quot;&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt 0.25in; mso-add-space: auto; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 450.9pt;&quot; valign=&quot;top&quot; width=&quot;601&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;3.&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;Stored procedures can be scheduled through a
  job to execute on a predefined time, but we can&#39;t schedule a trigger.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 3;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 27.9pt;&quot; valign=&quot;top&quot; width=&quot;37&quot;&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt 0.25in; mso-add-space: auto; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 450.9pt;&quot; valign=&quot;top&quot; width=&quot;601&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;4.&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;Stored procedure can take input parameters,
  but we can&#39;t pass parameters as input to a trigger.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 4;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 27.9pt;&quot; valign=&quot;top&quot; width=&quot;37&quot;&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt 0.25in; mso-add-space: auto; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 450.9pt;&quot; valign=&quot;top&quot; width=&quot;601&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;5.&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;Stored procedures can return values but a
  trigger cannot return a value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 5;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 27.9pt;&quot; valign=&quot;top&quot; width=&quot;37&quot;&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt 0.25in; mso-add-space: auto; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 450.9pt;&quot; valign=&quot;top&quot; width=&quot;601&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;6.&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;We can use Print commands inside a stored
  procedure for debugging purposes but we can&#39;t use print commands inside a
  trigger.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 6;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 27.9pt;&quot; valign=&quot;top&quot; width=&quot;37&quot;&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt 0.25in; mso-add-space: auto; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 450.9pt;&quot; valign=&quot;top&quot; width=&quot;601&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;7.&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;We can use transaction statements like begin
  transaction, commit transaction, and rollback inside a stored procedure but
  we can&#39;t use transaction statements inside a trigger.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 7;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 27.9pt;&quot; valign=&quot;top&quot; width=&quot;37&quot;&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt 0.25in; mso-add-space: auto; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 450.9pt;&quot; valign=&quot;top&quot; width=&quot;601&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;8.&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;We can call a stored procedure from the
  front end (.asp files, .aspx files, .ascx files, etc.) but we can&#39;t call a
  trigger from these files.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 8;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 27.9pt;&quot; valign=&quot;top&quot; width=&quot;37&quot;&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt 0.25in; mso-add-space: auto; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 450.9pt;&quot; valign=&quot;top&quot; width=&quot;601&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;9.&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;Stored procedures are used for performing
  tasks. Stored procedures are normally used for performing user specified
  tasks. They can have parameters and return multiple results set.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 9; mso-yfti-lastrow: yes;&quot;&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 27.9pt;&quot; valign=&quot;top&quot; width=&quot;37&quot;&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt 0.25in; mso-add-space: auto; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;background-color: transparent; border-color: rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; padding: 0in 5.4pt; width: 450.9pt;&quot; valign=&quot;top&quot; width=&quot;601&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-indent: -0.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;10.&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9.5pt;&quot;&gt;The Triggers for auditing work: Triggers
  normally are used for auditing work. They can be used to trace the activities
  of table events.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://expert-powerbuilder.blogspot.com/feeds/4712383291633221521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://expert-powerbuilder.blogspot.com/2019/02/1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/218486656333916080/posts/default/4712383291633221521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/218486656333916080/posts/default/4712383291633221521'/><link rel='alternate' type='text/html' href='http://expert-powerbuilder.blogspot.com/2019/02/1.html' title=''/><author><name>Umesh Yadav</name><uri>http://www.blogger.com/profile/07880241385649999462</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQZoSzfFvXdfawUdtCQsmQx9daqqDOdbkFGx59yNTtI8C8MXR5bek4j5SLzJ-uq4vSgf-WlaA_QiFBvc3GkXUS6EyvncDGOgvWSN6t-dxeookMZ6oI9iDzuk9CY4OGPA/s113/durga.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-218486656333916080.post-5447882332793105924</id><published>2019-02-02T20:45:00.000+05:30</published><updated>2019-02-02T21:06:01.104+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Interview Question and Answer"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerBuilder"/><title type='text'>PowerBuilder frequently asked questions by top companies</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot;;&quot;&gt;PowerBuilder frequently asked questions by top companies&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 6pt; mso-outline-level: 3;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;Question&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #000066; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt; 1 &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 6pt; mso-outline-level: 3;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 8.5pt;&quot;&gt;What
is the difference between SetTrans() and SetTransObject()? &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Answer&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/a&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&lt;span style=&quot;color: #000066; font-family: &amp;quot;arial&amp;quot;; font-size: small;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;In
simple terms, SetTrans() gives you no control on the transactions. It
automatically connects to and disconnects from the database after each
Retrieve() and Update() function. It is useful when the number of connections
are limited, but, you can&#39;t use this for multi-table update. On the other hand
SetTransObject() gives you full control over the transactions. It is your responsibility
to connect to and disconnect from the database and also, you need to issue
COMMIT/ROLLBACK statements. This method is more efficient since there is no
connect/disconnect overhead for each database operation.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 2&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;List
all the buffers that a DataWindow control maintains. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 6pt; mso-outline-level: 3;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #000066; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;verdana&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 9pt;&quot;&gt;Primary!,
Delete!, Filter!, Original!, and one buffer for the edit control.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 3&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;When
the DataWindow is set to ReadOnly, What buffers PowerBuilder maintains for the
DataWindow Control? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;PowerBuilder
maintains all the four buffers, i.e., Primary!, Delete!, Filter!, Original!.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 4&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
do you change the SQL Statement of a DataWindow at run-time? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;You
can either use the Modify() or .Object notation to change the SQL statement of
a DataWindow control. In the SQLPreview event, you can change it using
SetSQLPreview(). Outside SQLPreview event, you can call SetSQLSelect(). &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 5&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;The
new .Object notation syntax for the DataWindow control replaces the Modify()
function. Explain.&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;No,
it doesn&#39;t completely replace Modify() function. You can create objects such as
rectangle, text objects in the DataWindow object using the CREATE statement in
the Modify() function. This can&#39;t be done with the .Object notation.&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
It is also not possible to refer to the data by column name dynamically, which
can be done using Modify(). &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 6&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Describe
where you can&#39;t use .Object notation for a DataWindow control instead of the
Modify()? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;You
can&#39;t create objects in the DataWindow object dynamically using the .Object
notation. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 7&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
do you change the DataWindow object of a DataWindow control at run-time? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;DataWindow_Control_Name.DataObject
= &#39;New_DataWindow_Object_Name&#39; &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 8&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
will happen if you pass extra retrieve arguments to the Retrieve() function for
the DataWindow control? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;PowerBuilder
ignores extra arguments. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 9&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
will happen if you pass no arguments to the DataWindow&#39;s Retrieve() function,
when the DataWindow is expecting some arguments? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;PowerBuilder
prompts you for the arguments at run-time. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 10&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Can
you use an array as an argument to the DataWindow&#39;s Retrieve() function? If
yes, How and where it is useful? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Yes,
you can use PowerBuilder array as an argument to the Retrieve() function. This
is useful when you use IN clause in the SELECT statement of the DataWindow&#39;s
source. &lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 11&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What would be the row status in the destination DataWindow when a row is copied from another DataWindow using RowsCopy() function?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;NewModified!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h3&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/h3&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 12&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What would be the row status in the destination DataWindow when a row is copied from another DataWindow using RowsMove() function?&lt;/span&gt;&lt;/div&gt;
&lt;/h3&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;NewModified!&lt;/span&gt;&lt;/div&gt;
&lt;/h3&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 13&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;I
would like to allow the user to print selected rows. How it can be done? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Have
a hidden DataWindow control or a DataStore and assign the same DataWindow object
that you are using to display on the window. Copy selected rows to the
DataStore or the hidden DataWindow control (You can use RowsCopy() function)
and print the DataStore or the hidden DataWindow control. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 14&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
are the different statuses a row in a DataWindow can have?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;New!,
NewModified!, DataModified!, NotModified! &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 15&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
are the different statuses a column in a DataWindow row can have? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;DataModified!,
NotModified! &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 16&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
the use of AcceptText() function. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;This
function applies the content of the edit control to the primary buffer after
validating the data. PowerBuilder applies the edit control content to the
Primary buffer whenever user press tab or click on another column within the
DataWindow. if the user change the value of a single column and doesn&#39;t press
either tab or click on another column, PowerBuilder will not copy the changed
data, that means the changes will not be applied in the database. Calling the
AcceptText() function solves this problem. You can also specify to the Update()
via argument to call AcceptText() internally before applying the changes to the
database.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 17&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;When
you update the DataWindow, what would be the each row status in the DataWindow
when the update is successful? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;NotModified!
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 18&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;You
have deleted few rows, say 10 rows from a DataWindow, and update the
DataWindow. How many rows would be available in the Deleted buffer after
successful update?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Zero
Rows. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 19&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
the advantages and disadvantages of calling AcceptText() function from the
ItemChanged event of a DataWindow control.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;AcceptText()
function shouldn&#39;t be called from ItemChanged event. This is because,
AcceptText() function triggers the ItemChanged event. That means, calling
AcceptText() in the ItemChanged event will go into a loop. So, there are only
disadvantages, no advantages. If you really need to call AcceptText() from
ItemChanged event, create a user-defined event and post that event from the ItemChanged
event.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 20&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
do you change the default DataWindow error message title?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Assign
the application object&#39;s &#39;DataWindowMessageTitle&#39; attribute with the new
DataWindow error box title.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 21&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Assume,
you have marked a field as &#39;Required&#39;. At run-time user tabs into that field
and tabs out without entering a value in that field. Will PowerBuilder force
the user for specifying a value? If not, how do you force the user for
specifying the value? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;As
long as the user do not change (In this context, do not enter the data) the
column&#39;s value, PowerBuilder do not force entering a value. The solution to
this problem is, Call FindRequired() function before you update the DataWindow.
&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 22&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
the DataWindow validation. &lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;display: none; mso-hide: all;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;PowerBuilder
checks whether the data is changed or not by comparing the edit control value
with primary buffer. It checks for the data type correctness, if the data is
changed. Wrong data type will trigger ItemError event. When the data passes the
data type checking, it executes the validation rule. Invalid data will trigger
ItemError event. Correct data will trigger ItemChanged event. If the
ItemChanged event returns zero, it will trigger ItemFocusChanged event, otherwise
ItemError will be triggered. Depending on the ItemError event&#39;s return value,
either the cursor remains in the same column or will go to the next higher tab
sequence&#39;s field (In this case, ItemFocusChanged event will be triggered). &lt;/span&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;calibri&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 23&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;When
two DataWindow are being shared, what exactly would be shared and are there any
restrictions? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;The
presentation is not shared. The data (buffers including Delete! and Filter!)
and the sort criteria is shared. There are few restrictions, which include,
Crosstab DataWindow windows can&#39;t share data, the client and the server in the
distributed computing mechanism can&#39;t share data. you can turn on the query
mode only for the primary DataWindow. If a DataWindow is sharing data with a
nested DataWindow, the handle to the nested DataWindow becomes invalid with
each retrieval. So, GetChild() and ShareData() need to be called each time a
nested DataWindow is retrieved. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 24&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is difference between &#39;prompt for criteria&#39; and &#39;Query Mode&#39;?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&#39;Prompt
For Criteria&#39; as the name says, prompts for the criteria--for all those columns
that were marked--in its own display dialog box and ignores the DataWindow you
have painted. It also ignores the tab sequence number, i.e., prompts even if
the tab sequence is zero. &#39;QueryMode&#39; is more flexible than the &#39;Prompt for
Criteria&#39;, and it uses the DataWindow you have painted. It allows querying on
all non-zero tab sequence columns in the DataWindow and you do not mark any
column for this purpose. The former one promts for the values every time
Retrieve() is called, where as the later one takes values only when you turn it
on--by enabling QUERYMODE property. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 25&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Say,
you have a DataWindow which returns 10,000 rows. After retrieving few rows,
say, 100 rows, you have decided not to retrieve the rest of the rows. Explain
different methods of canceling the result set.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;There
are two ways to accomplish this.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;
In the first method, you can call DBCancel() to cancel the query from a
CommandButton Clicked event or in other event. However, once PowerBuilder
starts retrieving the data, it will not give the control to the user till it
completes retrieval. So, you need to put some code/comments in RetrieveRow
event which will yield a little bit.&lt;br /&gt;
In the second method, you can just return 1 from the RetrieveRow event.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 26&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Say,
you have a DataWindow with two fields, emp_name, emp_address. Now, the focus is
on the emp_name field. When the user press tab, what would be the return value
of GetColumnName() from A.) ItemChanged and B.) ItemFocusChanged events?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;GetColumnName()
returns &#39;emp_name&#39; in the ItemChanged event and &#39;emp_address&#39; in the
ItemFocusChanged event. &lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 27&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
the steps that are required to update a multiple-table DataWindow?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;In
short, using the Modify function or .Object notation, you need to make one
table updatable. You also need to set the primary keys for that table. Then
update the DataWindow with FALSE argument for the reset option in the Update()
function. After successful update, make the second table updatable and the
first one not-updatable. Now call Update() function with TRUE for the reset
option (If there are more than two tables, use the TRUE option to the last
table to be updated). Commit after successful update and Rollback on
unsuccessful update. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 28&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
you have to do if you want the PowerBuilder to prompt for the sort criteria at
run-time?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Set
the sort criteria to NULL value using the SetSort() function and call Sort()
function. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 29&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
many times PowerBuilder will retrieve data from the child DataWindow in the
following situation. A DataWindow has a field with DDDW edit style. There are
1000 rows in the parent DataWindow. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;It
retrieves only once. The thumb rule here is that, PowerBuilder retrieves data
from the child DataWindow only when the child DataWindow do not have data in
it. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 30&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
command/function you use to select a row?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;SelectRow()
function.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 31&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;If
there are 10 rows selected in a DataWindow, and if you call DeleteRow()
function, how many rows will be deleted? Explain. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;DeleteRow()
has nothing to do with the row selection. It deletes only one row that you
specify as the argument to it. If you want to delete all the selected rows, you
need to call DeleteRow() in a loop for each selected row (You can find the
selected row by calling GetSelectedRow() function). &lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 32&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;You
have defined a composite DataWindow &#39;d_master&#39; which has two DataWindows
&#39;d_emp_info&#39;, &#39;d_emp_paychecks&#39;. &#39;d_emp_info&#39; takes one argument and
&#39;d_emp_paychecks&#39; takes two arguments. &#39;d_master&#39; is placed in &#39;DataWindow_1&#39;
DataWindow control. DataWindow_1.Retrieve( Arg1, Arg2, Arg3 ) will retrieve
data without prompting. Do you agree? Explain.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;PowerBuilder
prompts for the retrieval arguments. This is because, you can&#39;t specify
retrieval arguments in the Retrieve() function for the nested DataWindows.
Instead, you need to set Nested_Arguments attribute using the Modify() function
or .Object notation. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 33&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
will happen when you pass a wrong argument to the Modify() function? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Returns
the error code, but doesn&#39;t trigger any event such as DataWindow dbError or
Error. However, doing the same using .OBJECT notation will generate error and
trigger DataWindow Error event. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 34&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
will happen when you use a wrong expression for a DataWindow in the .Object
notation? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Will
trigger Error event of the DataWindow control.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 35&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is the difference between &#39;Error&#39; and &#39;dbError&#39; events in a DataWindow control?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;DbError
event is fired when a database related error occurs. Error event at the
DataWindow control level is triggered when a wrong expression is encountered in
the .Object notation, or a OLE/OCX related error occurs. For database errors,
if you do not write any code in DBError event, PowerBuilder displays the error
in its own dialog box. In the later case, if you do not code to DataWindow
ERROR event, it will fire Application SystemError event. If there is no code in
that event, PowerBuilder displays the error message and terminates the
application. &lt;/span&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;calibri&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;
&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;calibri&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 36&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
the following error: &#39;Row(s) changed between retrieve and update&#39;. Also explain
how you will get rid of that error? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;PowerBuilder
reports this error when some one/process updates the row after you retrieve it
but before apply the changes. POWERBUILDER detects this type of error when you
include the TimeStamp column in the DataWindow or use the &#39;Key columns and
Updatable columns&#39; in the WHERE criteria. We can&#39;t avoid this error. The
solution to this problem would be, reselect the row that caused the error and
display it to the user with appropriate message and then update the database
again. You can use ReSelectRow() function to get the latest values for the
error row. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 37&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is concurrency control? How do you control it from the PowerBuilder? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;When
multiple users are working on the same data, we have to make sure that we don&#39;t
corrupt others changes, either by updating their changes without looking at
them or by any other means. When we apply changes to the database, we have to
make sure that no body changed the data between your read and update. This can
be controlled (not exactly controlling, but, we can detect) using the
appropriate WHERE clause option in the update properties in the DataWindow
painter. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 38&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
different ways of generating a serial number for a column in a table. Explain
ways in PowerBuilder and in the database. Which method you recommend? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;This
has to be controlled from the database, not from the PowerBuilder. This is
because, a unique serial number generated by a POWERBUILDER client may not be
unique for other user or when it is put in the database. If the database
supports auto incrementing (Different database vendors implement it in
different ways, for ex: sybase implements using Identity column property,
Watcom calls AutoIncrement, Oracle selects from a special table), then there is
no problem. Otherwise, you can use a single row single column table to generate
serial no. The method you choose might depend on the performance issues and
number of expected inserts and other factors. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 39&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;I
want to execute a stored procedure that is defined in the database, using the
function call notation. What I need to do? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Define
a function that refers to the stored procedure, in the transaction object and
start using the function. It is something like declaring an external function,
however, you can&#39;t declare a function for a stored procedure at any object
other than a transaction object. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 40&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
the steps involved in inserting your a layer between &#39;transaction&#39; object and
&#39;SQLCA&#39;.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Create
a standard class user object by inheriting from &#39;Transaction&#39; object. Define
the attributes and functions that you need. Now, ask the SQLCA to be of type
YourTransactionObject instead of TRANSACTION object. This you can do in the
application painter. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 41&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Write
the code to protect existing data from changes by the user in a DataWindow and
allow adding new rows. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;DataWindow_1.Object.Column1.Protect
= &#39;1~tIf(IsRowNew(),0,1)&#39; &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 42&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
the method you follow when you want to skip printing all pages that are
divisible by 7 (seven)? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Well,
you can write code for the PrintPage event of a DataWindow control. Check
whether the page number is divisible by seven, if so, then return 1. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 43&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;I
want to use the value passed in the retrieval arguments in the DataWindow. What
I need to do?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;If
you are using PowerBuilder version 4.0 or above, you should be able to see the
retrieval arguments under in the &#39;Columns&#39; listbox in the &#39;Expression&#39; dialog
box. So, you can use it as if it is a column. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 44&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;The
following situation triggers &#39;SystemError&#39; event at the application object.
Explain. You are trying to update a table on which you don&#39;t have update
privilege. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;This
will not trigger the SystemError event, since it is a database &amp;amp; DataWindow
related error. It triggers DataWindow DbError event. If there is no script for
that event, PowerBuilder displays the error message in the default way. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 45&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;You
got &#39;Row(s) changed between retrieve and update&#39; error. Now, you want to select
the latest value of that changed row. How you do that?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Use
ReSelectRow() function. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 46&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;In
a DataWindow, there are few fields with validation rules, and few fields with
script in the ItemChanged event. I want to display custom error message when
data doesn&#39;t go through the ItemChanged event, but want to display default
error messages when the data doesn&#39;t go through the validation rules. What
should I do?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;Well,
define an instance variable. Turn it one when you decide the data is invalid in
the ItemChanged event. In the ItemError event, return appropriate return code
depending on the instance variable value and reset the instance variable to
it&#39;s default value appropriately. &lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 47&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;I
want to find out all the fields that doesn&#39;t have values and have &#39;Required&#39;
attribute turned on. What should I do?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Call
FindRequired() function before you call Update() function. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 48&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Can
I store some data in the DataWindow? If yes, How? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Select
Rows/Data from the menu when you are in the DataWindow painter design mode and
add data to the DataWindow and save the DataWindow. The data now is stored as
part of the DataWindow definition. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;calibri&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 49&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
I need to do if I want the child DataWindow shouldn&#39;t retrieve the data
automatically? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Store
an empty row in the child DataWindow. PowerBuilder do not retrieve data from
the child DataWindow since it sees data inside it. You can store data in the
child DataWindow, by selecting Rows/Data from the menu when you are in the
DataWindow painter design mode. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 50&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
many DataWindow can share the data from a DataWindow? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;There
is no limitation on how many DataWindows can share data from the first primary
DataWindow or from the secondary DataWindow that work as primary DataWindow for
other DataWindows. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 51&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is the difference between a DataWindow and a DataStore object? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;DataStore
is nothing but a DataWindow without interaction related events and functions.
DataStore has less overhead compared to DataWindow since the DataStore object
do not have interaction related overhead. You can use DataStore as a parameter
to a remote object function/event in the distributed computing and OLE
automation, where as DataWindow can not be used in those situations. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 52&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Can
a DataWindow share the data from a DataStore? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; Yes. &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 53&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;I
have a table in which one column is of &#39;LongBinary&#39; data type. Can I update
this column using DataWindow? If yes, How? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;A
regular DataWindow do not support BLOB data types such as &#39;Long Binary&#39;,
Sybase&#39;s Image &amp;amp; Text data type columns. You need to use &#39;DATABASE BLOB&#39;
object in the DataWindow object. You can update the database normally when you
follow these steps. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 54&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is the difference between a &#39;Computed Column&#39; and &#39;Computed Field&#39;? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&#39;Computed
Column&#39; is a column that you define as part of the SELECT statement. These
values are calculated by the database and sent to the PowerBuilder client.
&#39;Computed Field&#39;s&#39; we define in the DataWindow bands and PowerBuilder
calculates these values, not the database. Depending on your computing model
&#39;Fat Client&#39; or &#39;Thin Client&#39; you can decide which one to use. If it is &#39;Fat
Client&#39; model, use &#39;Computed Fields&#39;, otherwise use &#39;Computed Columns&#39;. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 55&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Can
you change the value of a &#39;Computed Field&#39; at run-time? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;No,
you can&#39;t the Computed field value directly. However, you can change the column
value that are part of the Computed field expression, by that Computed field
value will be changed automatically. &lt;/span&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;calibri&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 56&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is a Dynamic DataWindow and how do you create a Dynamic DataWindow? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Dynamic
DataWindow is the DataWindow that is not painted at design-time, instead it is
created at run-time. This is useful when you don&#39;t know the exact columns that
you need to include in the DataWindow at design time. You need to use
SyntaxFromSQL() function and Create() function to create a DataWindow
dynamically. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 57&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
can I search a DataWindow? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;Use
Find() function. &lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 58&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;In
a DataWindow validation rule, how can I refer to the data that is entered by
the user? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Call
GetText() function in the validation rule to get the data entered by the user.
If you want to paint the same in the Database painter, you can use @name where
name can be any text. PowerBuilder automatically converts @name to GetText() in
the DataWindow validation rule when you paint a DataWindow that uses that
column. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 59&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
how &#39;Retrieve Only Needed&#39; works. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;By
default, PowerBuilder displays the first row on the screen when it completes
retrieving all the result set. That means, if there is huge result set, user
has to wait for long time to see the first row on the screen. If you turn on
&#39;RetrieveOnlyAsNeeded&#39; property, PowerBuilder retrieves only those rows that
fit on one screen. That means, user will see the data quickly. When the user
scrolls, PowerBuilder retrieves again (as many rows as required). This option
might affect the database server performance also, since the result is queued at
the database till PowerBuilder client completes retrieving. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 60&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
should I do if I want to display rows as soon as they are retrieved from a
DataWindow? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Write
code in the RetrieveRow event, at least a single line comment. And also set the
&#39;Async&#39; attribute in the DbParm property of the transaction object. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 61&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Say,
you have a DataWindow &#39;d_emp&#39; which has a field &#39;emp&#39; with DDLB edit style.
When you read the field value using GetItemxxxxxxxx() function, what value is
returned, &#39;Display Value&#39; or &#39;Data Value&#39;? What you need to do to get other
value? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Use
the LookupDisplay() function.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 62&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
do you handle variable length text fields in a DataWindow? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Set
the &#39;AutoSizeHeight&#39; property in the detail band of the DataWindow when you are
in the DataWindow painter design mode. &lt;/span&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;calibri&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 6pt;&quot;&gt;
&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 63&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
to retrieve multiple result set of a stored procedure in a single DataWindow? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;A
DataWindow can retrieve only one result set at a time. If you want to retrieve
other result sets also, you can change the result set number either by Modify()
function or using .Object notation. When you change the result set, make sure
the number of columns and data types match with the existing DataWindow
definition. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 64&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
to retrieve a particular result set of a stored procedure in a DataWindow? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;You
need to suffix the result set number to the stored procedure name separated by
semicolon.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 65&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
to load a text file in a DataWindow?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Well,
you can use ImportFile() function. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 66&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is a CrossTab presentation Style DataWindow? What are the places you can use
this type of DataWindow? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Crosstab
presentation style DataWindow allows to shorten the length of the report and
display the data in a two-dimensional spreadsheet like report. One dimension
displays in columns and the other as rows. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 67&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
do you update a &#39;Group&#39; presentation style DataWindow? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;A
DataWindow with &#39;Group&#39; presentation style can&#39;t be updated.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 68&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
do you update a &#39;OLE&#39; presentation style DataWindow? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;OLE
presentation style DataWindow is only for display, you can&#39;t update that
DataWindow. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 69&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
are code tables and how you can use them in a DataWindow? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Code
tables are used for translation. Typical use of code table is to display long
description about the data, say, &#39;New York&#39; and store the abbreviation in the
database, say, &#39;NY&#39;. You can use code tables in the DataWindow for the EditMask
edit style only. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 70&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is the difference between a &#39;column name&#39; and &#39;database column name&#39;. Can you
change any of these at painting time? If yes, How? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&#39;Column
Name&#39; is the name of the column in the DataWindow. You always refer to this
name when you want to change the column attributes. You can change the column
name in the DataWindow. The &#39;Database column name&#39; is the name of the column in
the database and you can&#39;t change this name. Typically, this name is prefixed
with the database and table and owner name. You can see both column and
database column names by selecting &#39;Rows/Columns&#39; in the DataWindow when you
are in the DataWindow design mode. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 71&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;You
have a DataWindow that has 100 rows. I want to append the rows to the existing
rows when I retrieve next time in that DataWindow. Explain the required steps
to do this. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Return
2 in the RetrieveStart event of that DataWindow control. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 72&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is the event from which I can see the exact SQL statement that is being sent to
the database by PowerBuilder? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;SQLPreview
event of the DataWindow control.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 73&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
to refer to a DataWindow column by the column number in the &#39;Describe()&#39; and
&#39;Modify()&#39; functions. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;You
need to prefix the column number with pound (#). For example,
DataWindow_1.Modify( &#39;#10.TabSequence=0&#39; ) sets the column number ten&#39;s tab
order to zero. &lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 74&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
to update a DataWindow that has &#39;Stored Procedure&#39; as the data source?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Go
to the update properites of the DataWindow by selecting Rows/Update properties
from the menu when you are in the design mode in the DataWindow painter. Type
the table name to update in the &#39;Table&#39; prompt. Make sure the column names and
data types are same. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 75&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
are the uses of a DataWindow with &#39;External&#39; data source? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&#39;External&#39;
DataWindows are useful when you want to use the power of DataWindows, even
though you are not retrieving the data from the database. Some of the features
which would be more difficult to implement without using a DataWindow are,
sorting, filtering, printing, exporting data into different formats, print
previewing/zooming and so on. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 76&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
many &#39;OLE DATABASE&#39; columns you can use in one DataWindow?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Well,
you can paint as many OLE Database BLOBs as you wish in a DataWindow. However,
the update is not going to take place when you place more than one OLE Database
BLOB object in a DataWindow. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 77&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
are different types of windows available in PowerBuilder? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;There
are six different types of windows available in PowerBuilder. Those are Main,
Popup, Child, Response, MDI Frame, MDI Frame with Microhelp. &lt;/span&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;calibri&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 78&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;If
I create a response window and open that window in an MDI frame using
OpenSheet(), what will happen? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;When
you open a window in a MDI frame using OpenSheet() or OpenSheetWithParm()
functions, that window get the sheet properties, irrespective of the window
type. That means, when you open the response window using one of those
functions, the window will behave like any other sheet, i.e., gets maximize,
minimize, close controls on the title bar.&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 79&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
how a popup window is different from a child window?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Popup
window can go beyond the parent window borders and Popup window is always on
the top. On the other hand, the Child window can&#39;t go beyond parent window
borders. Child window is never considered as an Active window from the
programming perceptive. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 80&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is MDI_1? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;MDI_1
control represents the &#39;Client Area&#39; in a &#39;MDI frame&#39; or &#39;MDI frame with
Microhelp&#39;. That means, all the window area other than &#39;Titlebar&#39;, &#39;Menu&#39;,
Microhelp statusbar&#39; is MDI_1. When you paint any object in the MDI window, you
need to resize the client area programmatically by referencing MDI_1,
otherwise, MDI_1 control size is not determined. That means, we can&#39;t see any
sheet that we open in the client area, unless we resize the MDI_1 control. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 81&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
should I do if I want to paint a window control in a MDI Frame window? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;You
need to resize the MDI_1 control. Window&#39;s resize event is the good candidate
to write the script for MDI_1 control re-sizing. You need to reduce the size of
the MDI_1 control by the size of all the controls that you have placed in the
window.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 82&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Can
I have multiple MDI frame windows in the same application? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Well,
technically, you can have multiple MDI windows in the same application. You can
call Open() function twice, one for each MDI window. Please note that, the user
might think that, two applications are running, since two different windows
will appear with different menus.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 83&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;I
need to declare an Instance variable for a DataWindow control ONLY, in a
window. What should I do? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;When
you declare an instance variable at a window, it is accessible to all controls
in the window. First of all, you can&#39;t declare an Instance/Shared variable for
a specific control in a window. If you have the need of that, you need to
create a user object of that specific control and declare instance/shared
variables in the user object. Then place the user object in the window. In
summary, a window control can&#39;t have it&#39;s own instance/shared variables, but
the user object can (in the user object painter ONLY, not in Window Painter). &lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 84&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Can
I have a global and local variable with the same name? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Yes,
You can have global and local/instance variable with the same name. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 85&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;You
have declared a global variable xyz and a local variable xyz in the clicked
event of a CommandButton. When you refer to xyz in the CommandButton&#39;s clicked
event, which variable is referred? Global or Local?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Well,
when you refer to xyz variable, POWERBUILDER search for the variable in local,
instance/shared, instance/shared at the ancestor, global order. That means, in
this case, the local variable is referred. To refer to the global variable
which has the same name of a local variable, you need to prefix double colon
before the variable name. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 86&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
a &#39;Shared Variable&#39; is different from a &#39;Instance Variable&#39;? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Well,
the value of an instance variable in each instance is independent of other
instances. Instance variables are created when the object is created and will
be destroyed when the object is destroyed. On the other hand, the shared
variable is shared between different instances of the variable. That means,
changing the shared variable in one instance will affect other instances. The
shared variable is created when the FIRST instance of the object is created and
is destroyed when the application is closed. You can&#39;t refer to an object&#39;s
shared variable when none of the instance is open, even though the shared
variables exists in the memory.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 87&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Tell
me some situations where you need to use shared variables. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;One
typical situation would be, counting the number of instances of a sheet.
Another situation will be, you can use the shared variable to prevent the user
updating the same record from multiple instances of the same window with
different values. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 88&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;When
a function argument is declared &#39;By ReadOnly&#39;, what you can do on that variable
and what you can&#39;t do? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;You
can refer to that argument, you can change the value of the argument. But, you
can&#39;t assign another object to that object. For example, say, a DataWindow is
passed as a &#39;By ReadOnly&#39; argument. You can change the value of any column/row
of that DataWindow, but you can&#39;t say: arg_DataWindow = Another_DataWindow. In
this case, you are assigning another object to this object. That means, you are
asking to change the pointer to refer to the new object instead of the original
object, which is not allowed when the argument is passed by &#39;By ReadOnly&#39;. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 89&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is the difference between passing a function argument &#39;By Value&#39; and &#39;By
Reference&#39;? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;When
an argument is passed &#39;By Value&#39;, the changed value of the argument in the
called function will not be available in the calling object. On the other hand,
when the argument is passed &#39;By Reference&#39;, the changed value of the argument
in the called object IS AVAILABLE in the calling object. In case of &#39;By Value&#39;,
POWERBUILDER sends a copy of the object, where as a pointer is send when passed
by &#39;By Reference&#39;. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 90&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Can
you declare CONSTANTS in PowerBuilder?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;From
version 5.0 onwards, you can declare constants in POWERBUILDER. For example:
CONSTANT APPEND_TO_ROWS 2. When you want to append to the existing rows in the
DataWindow when you retrieve next time, write &#39;return APPEND_TO_ROWS&#39; instead
of &#39;return 2&#39;. Using constants you can make the code more readable and also
more efficient (in some places). &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 91&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
the use of ANY data type. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;ANY
data type was introduced in version 4.0. You can use this data type when you
really not sure about the return value of function. For example, OLE 2.0
control and in OLE automation. You really don&#39;t know what object/error code
will be returned by the OLE client. Sometimes, those are compatible with POWERBUILDER
data types. In those cases, you can use this variable to store the return value
and CAST it to another data type before you operate on the value. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 92&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
do you declare a function that returns nothing? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Type
&#39;(None)&#39; without quotations in the &#39;Return Value&#39; prompt when you are in the
function painter.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 93&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
to execute the ancestor event&#39;s script from the descendant&#39;s event? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;You
can use CALL SUPER::EVENT_NAME syntax. &lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 94&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
will happen when you TRIGGER a non-existing event? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;If
you trigger a non-existing event using the old syntax, TriggerEvent(), nothing
happens. In the new syntax, you can&#39;t trigger a non-existing event unless you
use DYNAMIC keyword. When you trigger the event dynamically, NULL value will be
returned. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 95&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
will happen when you TRIGGER an event that doesn&#39;t have any script? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Nothing
will happen. You are not allowed to capture the return value of an event which
returns nothing. NULL value is returned when you trigger an event which has no
script. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 96&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is the difference between TriggerEvent() and PostEvent()?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;TriggerEvent()
executes the specified event&#39;s script right away. PostEvent() posts the
requests in the operating system&#39;s queue. This doesn&#39;t mean the posted event&#39;s
script will be executed after completing the current script execution. It might
execute right away also, it depends on how many requests are in the Operations
system&#39;s message queue. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 97&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is the difference between TriggerEvent() and Send()?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;TriggerEvent()
JUST executes the specified event&#39;s script, but, it do not really trigger the
event. For example, triggering the window&#39;s &#39;Close&#39; event will execute the
script written for that event, but, will not close the window. If you use
Send() function, it does both, i.e., executes the script and closes the window
also. &lt;/span&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;calibri&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 98&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
PowerBuilder executes events? Bottom-to-Top or Top-to-Bottom?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 8pt;&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;Top-to-Bottom &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 99&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;In
the inheritence hirerachy, How PowerBuilder search for a function?
Top-to-Bottom or Bottom-to-Top?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Bottom-to-Top
&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 100&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
different levels of attribute/method protection available in PowerBuilder? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Public,
Protected, Private, PrivateRead, PrivateWrite, ProtectedRead, ProtectedWrite &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 101&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
do you pass a value to a window at opening time?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Use
either OpenWithParm() or OpenSheetWithParm() function depending on whether you
are trying to open a window as a window or a sheet.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 102&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
what a &#39;Message&#39; object is and How it is useful in the programming?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&#39;Message&#39;
object contains the messages that are sent by the operating system and sent by
the POWERBUILDER scripts. It always contains only one message, that is the
latest one. When you use OpenWithParm(), OpenSheetWithParm(),
OpenUserObjectWithParm(), those parameters are placed in the &#39;Message&#39; object
and you can access those parameters in the opening object from the &#39;Message&#39;
object. Changing the values of the &#39;Message&#39; object affects the event
execution. For example, changing the &#39;ReturnValue&#39; of the Message object in the
window&#39;s CloseQuery event to 1 will stop the window being closed. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 103&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is the difference between &#39;Close&#39; and &#39;CloseQuery&#39; event? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;POWERBUILDER
triggers &#39;CloseQuery&#39; event before it triggers &#39;Close&#39; event. If &#39;CloseQuery&#39;
event&#39;s script is not executed successfully (in terms of return value), &#39;Close&#39;
event will never trigger.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 104&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
typical scripting that you do in the &#39;CloseQuery&#39; event? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;Typical
scripting would be, checking for unsaved work and prompting the user for the
same and take action depending on the user&#39;s response. &lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 105&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
should I do if I want to use &#39;-&#39; (hyphen) in identifiers in PowerScript? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Add
&#39;DashesInIdentifiers=1&#39; without quotations to the [POWERBUILDER] section in the
POWERBUILDER.INI file. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;calibri&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 106&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
different debugging mechanisms in PowerBuilder.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;First
mechanism would be obviously the debug painter. You can also use TRACE flag to
log all the ODBC calls, /PBDEBUG to log the POWERBUILDER script execution. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 107&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
should I do if I want to call a Windows SDK API? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;You
need to declare the Windows SDK API as an external function either locally or
globally depending on your need. Then only you can refer to that function in
PowerScript. If you have the same function name in PowerScript also, you can
alias the external function in the declaration.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 108&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;List
three PowerBuilder pronouns that we use to reduce hard-coding. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;THIS,
PARENT, PARENTWINDOW &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 109&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
&#39;Parent&#39; is different from &#39;ParentWindow&#39;? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;&#39;Parent&#39;
pronoun is used to refer to the object in which the current object is. For
example, referring to &#39;Parent&#39; in a CommandButton&#39;s script will refer to the
window in which the CommandButton is placed. This is used in window control&#39;s
scripts and functions. On the other hand, &#39;ParentWindow&#39; is used to refer to the
window for which the current menu is attached. &lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 110&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
should I do if I want to display an User Object at specific location in a
window dynamically?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;You
can specify the X and Y co-ordinates in the OpenUserObject() and
OpenUserObjectWithParm() functions. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 111&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Did
you ever use Handle()? Where and How? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Handle()
function gives the handle number of a given window. In simple terms, it is the
number that identifies a window uniquely. You can use this function to check
whether a particular window is open or not. Especially useful when you want to
check whether another instance of the same application is running or not. You
can use this function along with FindWindow() Windows API call.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 112&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;I
want to find out whether the PowerBuilder application is still connected to the
database or not. What should I do in the PowerScript? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Use
DbHandle() function. &lt;/span&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;calibri&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 113&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;I
have a window which has a menu associated with. For some reason, I deleted the
menu. Now, I am getting error when I try to open the window. What should I do? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;If
you remember the menu name, just create a dummy menu with the previous menu
name. Now you should be able to open the window. Then, you can de-reference the
menu from the window. If you don&#39;t remember the menu name, export the window
and look in the exported file for the menu name. If you know really, you can
edit the exported file and import it back otherwise, just note down the menu
name and follow the first method. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 114&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;There
is a ancestor window &#39;w_1&#39; with one SingleLineEdit control &#39;sle_1&#39;. Now, I
created another window &#39;w_2&#39; by inheriting from the &#39;w_1&#39; window. In &#39;w_2&#39; I
changed the window background color to Pink. Then, I went back to &#39;w_1&#39; and
changed the window background color to Blue and &#39;sle_1&#39; background color to
Red. What color changes will reflect in &#39;w-2&#39; window? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;The
thumb rule is that, if you have done any changes to a specific attribute in the
descendent, then any further changes to the same attribute in the ancestor WILL
NOT affect in the descendent. That means, since you have changed the window
background color in the descendent, ancestor&#39;s background color change do not
affect the descendent. You haven&#39;t changed the background color for the sle_1
in the descendent, So, the background color change for the sle_1 in the
ancestor will reflect in the descendent also. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 115&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
are PowerBuilder system tables and how they are useful for a PowerBuilder
programmer? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;There
are five POWERBUILDER system tables, &#39;PBCatCol&#39;, &#39;PBCatEdt&#39;, &#39;PBCatFmt&#39;,
&#39;PBCattbl&#39;, &#39;PBCatVld&#39;. These tables store all the table, column specific
information and POWERBUILDER extended attributes. These tables are created in
the connected database by POWERBUILDER when the first user connects for the
first time. These tables allow you defining extended attributes such as
validation rule, edit style, display style, etc.. Once you create the extended
attributes, these values are by default used when you create a DataWindow,
which will reduce a lot of work and makes dws more consistent. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 116&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;How
do you synchronize Database tables with the PowerBuilder catalog? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;In
the database painter, there is an option to synchronize POWERBUILDER system
tables with actual table/column information. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 117&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is a validation rule? How PowerBuilder validation rule is different from the
Database (validation) rules? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Validation
rule specifies valid values for a specific column. It allows you to specify
different valid values depending on the content of other columns. Validation
rules defined in POWERBUILDER are used only POWERBUILDER clients. If another
application connects to the database from Excel or Delphi, the database is not
going to validate the data, since, the validation rule is not defined in the
database. Please note that, the validation is done by POWERBUILDER not by the
connected database. On the other hand, if you define the validation rule in the
database, database will validate the value irrespective of the client type. In
this case the validation is done by the connected database not by PowerBuilder.
&lt;/span&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;calibri&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 118&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
different ways of executing a database stored procedure from PowerBuilder. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;You
can source the stored procedure to a DataWindow. You can also execute in the
embedded and dynamic SQL. With version 5.0, you can declare a function for the
stored procedure in the transaction object and execute the stored procedure as
if you are executing a function.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 119&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is a proxy object and what is a remote object? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Proxy
object represents the remote object in the distributed computing. Whenever you
create a custom class user object, you can specify the proxy name. POWERBUILDER
automatically saves the proxy object whenever you save user object. You place
the actual user object in the server application and keep the proxy object in
the client application. Before you act on the proxy object, you need to call
SetConnect() function to connect to the server object. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 120&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is DDE? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;DDE
means Dynamic Data Exchange. This technology allows two different applications
talk to each other under MS-Windows environment and exchange data between them.
&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 121&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;List
few DDE related events.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;&#39;HotLinkAlarm&#39;,
&#39;RemoteExec&#39;, &#39;RemoteHotlinkStart&#39;, &#39;RemoteHotlinkStop&#39;, &#39;RemoteRequest&#39;,
&#39;RemoteSend&#39;. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 122&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is the PowerBuilder object that has DDE related events? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Window
&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 123&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is difference between &#39;Cold Link&#39; and &#39;Hot Link&#39;? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;In
case of Hot link, the changed data is sent to the client automatically by the
server. In case of &#39;Cold Link&#39;, the changed data is available to the DDE client
only when it requests for that. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 124&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is the difference between &#39;In-Place editing&#39; and &#39;Off-site editing&#39;? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;In
case of &#39;Off-Site Editing&#39;, the OLE Server allows you editing in a separate
window other than the OLE client application window. In case of &#39;In-Place
Editing&#39;, the OLE server gets activated in the OLE Client application window
and all the menu options will change accordingly. In this model, user feels
that he is working in a single application even though he is using a different
application. &lt;/span&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;calibri&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 125&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is OCX control? Explain the required steps involved in CREATING an OCX control
in PowerBuilder?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;OCX
is a OLE control which implements the component based architecture. You can use
OCX control in any application that supports OLE 2.0. This increases the object
reusability. You can use the OCX control in POWERBUILDER, but, you can&#39;t create
a OCX control in POWERBUILDER in version 5.0. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 126&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is the difference between &#39;Embedding&#39; and &#39;Linking&#39; in the OLE context? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;When
you embed an object, the embedded object will be saved as part of the OLE
container object. That means, any future changes to the actual object will not
reflect in the embedded object. This also increases the storage requirement.
Embedded object allows In-Place editing. In case of &#39;Linking&#39;, the original
object resides where it was and a link information is stored in the OLE
container object. That means, any future changes to the actual object will
automatically reflect in the OLE container object. Linked objects are always
invoked for editing off-site.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 127&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
is &#39;AutoInstantiate&#39; and where it is useful? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;The
user object that has &#39;AutoInstantiate&#39; attribute turned on, will automatically
creates an instance of that object whenever the object is declared. You need to
use the CREATE statement to create the object after declaration when this
property is not set. This attributes is available only for custom class user
objects. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 128&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;What
are the different places you can use OCX control in PowerBuilder? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;You
can use OCX control in a window, in a user object and in a DataWindow. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 129&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Several
times I heard &#39;Registry&#39; in the technical meetings. What exactly &#39;Registry&#39; is?
&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Registry
is a MS-Windows database that contains information about each application. The
application populates the information about it self using Windows API calls.
Previously, application specific information such as application preferences,
settings are stored in .INI file which is an ASCII file. Even though there was
registry under MS-Windows 3.x, it wasn&#39;t really used by most of the
applications and it was just used to store DDE and OLE specific information.
The data is stored in the registry in the directory like hierarchy format. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 130&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Explain
the steps required to create a C++ user object in PowerBuilder? &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;Basically,
you need to invoke the user object painter for C++ user object type. You need
to declare any instance/shared variables and functions. While declaring
functions, you just declare the function interface, not the function code. You
need to write the actual code for functions in the C++ Editor which comes with
POWERBUILDER. When you save the user object. POWERBUILDER automatically save
the user object as a DLL and you need to deploy this DLL along with your
application.&lt;/span&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;color: #0033ff; font-family: &amp;quot;calibri&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 131&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;We
have migrated all our applications from Visual Basic to PowerBuilder. I would
like to use those VBX controls, instead of re-coding in PowerBuilder. Is it
possible? If Yes, are there any restrictions?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;If
you are using POWERBUILDER versions prior to 5.0, you can create a user object
of type VBX and reuse your VBX control. The limitation is that, only Visual
Basic v1.0 specific VBXes are supported by POWERBUILDER. In POWERBUILDER 5.0,
you can&#39;t use VBX any more. Actually, it would be better stop using VBX and
migrate to OCX which allows deploying your applications in 32-bit environment. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Question&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; 132&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;The
OCX control I planned to use has a &#39;Clicked&#39; event. The OLE 2.0 control in
PowerBuilder already has &#39;Clicked&#39; event. What should I do?&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;u&gt;&lt;span style=&quot;color: #0033ff;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Answer&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #000066; font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0in 0in 6pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;; font-size: x-small;&quot;&gt;When
you are in the design mode, delete the duplicate events by selecting
&#39;Declare/User Events&#39; from the menu. This will solve the run-time problems. &lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://expert-powerbuilder.blogspot.com/feeds/5447882332793105924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://expert-powerbuilder.blogspot.com/2019/02/powerbuilder-frequently-asked-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/218486656333916080/posts/default/5447882332793105924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/218486656333916080/posts/default/5447882332793105924'/><link rel='alternate' type='text/html' href='http://expert-powerbuilder.blogspot.com/2019/02/powerbuilder-frequently-asked-questions.html' title='PowerBuilder frequently asked questions by top companies'/><author><name>Umesh Yadav</name><uri>http://www.blogger.com/profile/07880241385649999462</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQZoSzfFvXdfawUdtCQsmQx9daqqDOdbkFGx59yNTtI8C8MXR5bek4j5SLzJ-uq4vSgf-WlaA_QiFBvc3GkXUS6EyvncDGOgvWSN6t-dxeookMZ6oI9iDzuk9CY4OGPA/s113/durga.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-218486656333916080.post-858726473449757706</id><published>2009-11-28T20:49:00.000+05:30</published><updated>2019-02-02T21:02:36.999+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerBuilder"/><title type='text'>PowerBuilder Interview Questions &amp; Answers Section1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #cc9933; font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;1. Please tell me some thing about yourself?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;My name is Umesh Kumar Yadav. I&#39;ve completed GNIIT Three years certification course from NIIT Faridabad and also I&#39;ve done MCA from &lt;st1:place st=&quot;on&quot;&gt;&lt;st1:placename st=&quot;on&quot;&gt;M.&lt;/st1:placename&gt; &lt;st1:placetype st=&quot;on&quot;&gt;D.&lt;/st1:placetype&gt; &lt;st1:placetype st=&quot;on&quot;&gt;University&lt;/st1:placetype&gt;&lt;/st1:place&gt; Rohtak.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;About Work &amp;amp; Experience...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc9933; font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;&lt;strong&gt;2. &lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;color: orange;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US;&quot;&gt;What is the difference between SetTrans() and
SetTransObject()?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;Define All process of material Generate indent to issue product.&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: #cc9933; font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;3. How do you pass parameters when opening a window?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;Use OpenWithParm method () and accessing the three system message object properties:&lt;br /&gt;Message.DoubleParm&lt;br /&gt;Message.PowerObjectParm&lt;br /&gt;Message.StringParm&lt;br /&gt;The parameters are stored in the Message object.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;4. What are the different status’s a row can have in a DW and what function do you call to find the status?&lt;/span&gt;&lt;br /&gt;The 4 DW Statuses:&lt;br /&gt;1. Not Modified – the information in the row/column is unchanged from what was retrieved.&lt;br /&gt;2. Data Modified – the information in a column or one of the columns in the row has changed since it was retrieved&lt;br /&gt;3. New Modified – the row is new and values have been assigned to columns. (Changes are primarily due to user entry or by using the setitem () method)&lt;br /&gt;4. New – the row is new and values have not been specified to columns.&lt;br /&gt;&lt;br /&gt;a) All are applicable to rows but only 1 &amp;amp; 2 are applicable to columns.&lt;br /&gt;b) Getitemstatus () can be used to find the data window status&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;5. What is the purpose of using the SUPER keyword?&lt;/span&gt;&lt;br /&gt;It is used to refer to an object’s immediate ancestor. Take for example Super:: wf_myfunc (myarg1, myarg2). This example calls the ancestor function wf_myfunc (presumably the descendant also has a function called wf_myfunc). This example must be part of a script or function in the descendent window, not one of the window&#39;s controls&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;6. What is a dynamic data window? Give an example of why you’d need to use a dynamic data window.&lt;/span&gt;&lt;br /&gt;It is a data window that is modified or created during runtime. CREATE method can be used to create or replace the current DW object in the DW control with the newly created DW. Settransobject () needs to be reset with the new DW in the control since the earlier association would have been destroyed.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;7. What is the difference between ItemError () and DBError ()?&lt;/span&gt;&lt;br /&gt;ItemError () occurs when the data supplied to a particular column in a table fails some validation rules. For example a DW column designed to accept only integer values throws this error if a string value is passed. DBError () occurs when INSERT/UPDATE/DELETE/RETRIEVE fails. When it occurs, the DW Control throws up a message box describing the error to the DBMS. The user can also get the appropriate error code and throw up message boxes.&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;&lt;br /&gt;8. What is a data store? What type of events does it support/not support?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It is a non-visual data window. For example if you want to retrieve data from a table without showing it, then you can go for data store. It does not support clicked events but supports deleterow (), insertrow (), retrieve () and update (). It also supports ItemError () event.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;9. As an extension of (8) above, mention two differences with data windows&lt;/span&gt;&lt;br /&gt;a) A DW can be designed such that the user is prompted to enter the parameters for data retrieval while this not possible with data store. If the user calls the RETRIEVE method for a DW control, the DW object expecting an argument, if the user leaves it blank, it prompts the user to enter an appropriate value, this behaviour is not supported in data stores&lt;br /&gt;b) The PRINT Set-up dialog box for setting print specifications is not possible in data stores&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;10. Explain the following terms: Regeneration, Optimisation &amp;amp; PBD&lt;/span&gt;&lt;br /&gt;a) Regeneration – when you modify an ancestor object, you can regenerate descendants so they pick up the code changes to the ancestor.&lt;br /&gt;b) Optimisation – it is the process of compressing library objects; it removes gaps in libraries and defragments the storage of objects, thus improving performance. Optimising only affects the layout on disk and not the contents of the objects. Objects are not recompiled. For best performance libraries should be optimised once a week.&lt;br /&gt;c) PBD – DW objects are stored in PBLs that are converted to PBDs thereby providing runtime versions of DW objects.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;11. When do you use a data pipeline?&lt;/span&gt;&lt;br /&gt;If the user wants to copy DB objects from one database to other or copy from one DBMS to another, the data pipeline can be used. The file can be exported from one database and imported to the target database. In the Data Pipeline painter you define a data source, source database, target database, retrieval arguments, unions, sorting, selection, and grouping criteria.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;12. Explain and differentiate between settrans () and settransobject ()?&lt;/span&gt;&lt;br /&gt;While using settrans () the user need not specify an explicit CONNECT or DISCONNECT statement in the script since PB internally calls them whenever required. As part of internal transaction management of DW controls, when the DW needs to access the DB, the DW control issues an internal CONNECT, performs data access and then issues an internal DISCONNECT.&lt;br /&gt;Settransobject () is used when the user goes for a separate transaction object (example SQLCA) or creates a separate one in the script. The sequences of statements are as follows:&lt;br /&gt;Transaction tra_1&lt;br /&gt;tra_1 = CREATE transaction&lt;br /&gt;tra_1.DBMS = “ODBC”&lt;br /&gt;tra_1.database = “myDB”&lt;br /&gt;CONNECT using tra_1&lt;br /&gt;Dw_1. Settransobject (tra_1)&lt;br /&gt;Dw_1. Retrieve ()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;13. Explain the components of ODBC architecture&lt;/span&gt;&lt;br /&gt;a) Application – any front end/GUI from where ODBC calls are made&lt;br /&gt;b) Driver Manager – it is a DLL that controls loading of appropriate drivers to connect to DBMS. When an ODBC call is made, it scans the *.ini files to determine which driver to use&lt;br /&gt;c) Driver – it is the heart of ODBC that takes care of N/W protocols to connect to the data source; it also submits SQL statements to the data source&lt;br /&gt;d) RDBMS – an ASCII file containing information such as DBMS name, login/password etc&lt;br /&gt;&lt;br /&gt;ODBC takes care of locating the Sybase/SQL server address on the network by reading the win.ini/sql.ini files&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;&lt;br /&gt;14. Explain the “Connect String DBParm” parameter in PowerBuilder.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It specifies the parameters required to connect to an ODBC data source. PowerBuilder uses these parameters to connect to the database. The syntax is&lt;br /&gt;Connect String = &#39;DSN = data_source_name; {UID = user_Id; PWD = password; driver_specific_parameters}&#39;&lt;br /&gt;PowerBuilder generates the Connect String automatically when you define an ODBC data source and copies it to the DBParm box in the Database Profile Set-up dialog box. This happens before you connect to the data source in PowerBuilder.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;15. Which are the PFC class libraries in PowerBuilder?&lt;/span&gt;&lt;br /&gt;PFC is a combination of reusable and extendible classes and framework. The 8 libraries are:&lt;br /&gt;a) pfcmain.pbl – basic services&lt;br /&gt;b) pfcapsrv.pbl – application&lt;br /&gt;c) pfcdwsrv.pbl – data window&lt;br /&gt;d) pfcwnsrv.pbl – window&lt;br /&gt;The 4 extension layer class libraries are pfemain.pbl, pfeapsrv.pbl, pfedwsrv.pbl &amp;amp; pfewnsrv.pbl. 2 more security related libraries (with no extension layers) are pfcsecad.pbl &amp;amp; pfcsecsc.pbl&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;16. When should internal transaction management be used?&lt;/span&gt;&lt;br /&gt;It can be used if the number of connections to theDB are limited and also for pure retrieval when COMMIT &amp;amp; ROLLBACK are not application priorities.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;17. Explain the different types of data sources that can be linked to data window controls&lt;/span&gt;&lt;br /&gt;a) Quick Select – Used when data comes from one or more tables linked by a foreign key.&lt;br /&gt;b) SQL Select – In addition to above grouping &amp;amp; computed columns can be specified&lt;br /&gt;c) External – the data can be imported from a flat file or populated from the code. ( for example using setitem() methods)&lt;br /&gt;d) Query – used when the data source (SQL statement) is saved in a query object defined in the query painter.&lt;br /&gt;e) Stored Procedure&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;&lt;br /&gt;18. Explain how the Auto Commit property works in PB.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When the Auto Commit property is set to FALSE (default) or 0, PB issues SQL statements inside the scope of a transaction. 1(TRUE) implies statements outside the scope of a transaction (for example when your application requires creating temporary tables).&lt;br /&gt;a) If you want to execute stored procedures containing DDL (CREATE, ALTER, DROP etc) statements, then Auto Commit = TRUE.&lt;br /&gt;b) If Auto Commit = TRUE, then rollback cannot be issued, it should be set to FALSE after completing the DDL operation.&lt;br /&gt;When Auto Commit is set from FALSE to TRUE, then PB issues a COMMIT statement by default.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;19. Explain the steps to update a multi-table DW in PB.&lt;/span&gt;&lt;br /&gt;The following steps are involved in the process:&lt;br /&gt;a) Use. modify/.object notation to make ONE table updateable&lt;br /&gt;b) SET the primary keys for the table&lt;br /&gt;c) Perform DW_1 update with FALSE argument for the reset option in the Update() function&lt;br /&gt;d) After © is successful, make 2nd table updateable and 1st table not updateable&lt;br /&gt;e) Next call update() with TRUE argument for the the reset option in the Update() function&lt;br /&gt;f) COMMIT/ROLLBACK depending on success or failure&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;20. What is a DWChild object? Name two events associated with it&lt;/span&gt;&lt;br /&gt;A dropdown DW is aDWChild. For example a DW object that populates a column having the dropdown DW edit style is aDWChild object. It does not have any events associated with it.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;21. Explain multi-byte support for PB&lt;/span&gt;&lt;br /&gt;PB 8 supports both ANSI and double-byte character sets (DBCS); any PB8 application runs in a DBCS environment. In a DBCS environment 1 character = 2 bytes as opposed to 1 byte in an ANSI environment. For example we may need to change the width of a column of type char (40) to char (80).&lt;br /&gt;The wide version of the Len () function (called Lenw ()) should be used since the former returns the number of bytes while the latter returns the number of characters.&lt;br /&gt;&lt;br /&gt;PowerBuilder can access Unicode data in an ASE 12.5 Unicode database or in Unicode columns in ASE 12.5. PowerBuilder converts between double-byte character set (DBCS) data and Unicode automatically, provided that the Locale parameter is set with DBCS values. For example, the Locale DBParm should be set to chs or cht.&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;&lt;br /&gt;22. Explain the three methods of passing arguments to functions/events in PB&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;a) By Value – a copy of the variable is passed. Any changes to the value of the variable will affect the copy only, the original variable in the calling script is not affected&lt;br /&gt;b) By Reference – a pointer to the variable is passed to the function/event. Any changes affect the original variable in the calling script&lt;br /&gt;c) READ-ONLY – a copy of the variable treated as a CONSTANT is available to the function/event&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;23. Differentiate between instance and shared variables in PB&lt;/span&gt;&lt;br /&gt;a) Instance variables are created when the object is created and destroyed when the object is destroyed while a shared variable is created when the FIRST instance of the object is created and is destroyed when the application is closed&lt;br /&gt;b) The value of an instance variable in each instance is independent of its value in other instances while changing the value of a shared variable in one instance will affect other instances&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;24. Mention some features of N-Up, Composite &amp;amp; CrossTab DW presentation styles&lt;/span&gt;&lt;br /&gt;a) N-Up: two or more rows of data displayed next to each other across the page. It is useful for periodic data such as data for each day/week or each month in the quarter&lt;br /&gt;b) CrossTab: - provides a data summary in a row and column format. Data to be selected from one or more tables, DW cannot be external. Crosstab functions can be used for filters, validation rules or computed fields&lt;br /&gt;c) Composite: - it consists of one or more nested reports. It also serves as a container for other reports and has no data source of its own. The user can specify one DW object to be shown on screen, as many reports as the number of DW objects can be viewed on screen based on the retrieval arguments specified by the user&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;25. Explain some performance considerations that you as a developer would like to review while designing client/server (PB/Sybase) applications&lt;/span&gt;&lt;br /&gt;An important consideration is the usage of COMMIT/CONNECT statements to maximize performance and limit locking and resource use. Two design considerations that should be taken care are:&lt;br /&gt;a) Long running connections – if these are NOT acceptable then the application should connect to the database only when necessary. If acceptable then COMMITs should be issued as often as possible so that the changes do in fact occur. More importantly COMMITs should be issued to release any locks placed on DB entities as a result of statements executed during the transaction&lt;br /&gt;b) Settrans/Settransobject function – if the application functionality requires connections to be kept open and issue periodic COMMITs then Settransobject () should be used or use Settrans () for many short-lived transactions&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;26. Explain the usage of Settransobject function with composite DWs&lt;/span&gt;&lt;br /&gt;Only this function should be used for composite presentation styles acting as containers for other DW objects. If settrans () is used with each DW in a composite DW then disconnect does not occur until PB session ends. It should be used only for pure retrieval when DB locks need not be held on tables in other words update () functions are not used.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;27. Explain function overloading with an example&lt;/span&gt;&lt;br /&gt;It is a feature in PB where a function is defined with the same name as another. The two functions may differ in the number of arguments and also the type of arguments. An example is the Messagebox () function.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;28. Explain the two classes of PB user objects and their sub types&lt;/span&gt;&lt;br /&gt;Uos are custom visual objects that you can build to supplement standard PB objects. UOs can request/display information and respond to mouse or keyboard actions and create a tab page UO.&lt;br /&gt;a) Visual UO – a reusable control/set of controls. For example a set of buttons to function as a unit having scripts associated with them for standard processing. Three types are:&lt;br /&gt;1. Standard – inherited from a specific visual control. For example command button/checkbox etc&lt;br /&gt;2. Custom - inherited from the userobject system class. You can include many controls in the UO and write scripts for these events.&lt;br /&gt;3. External - it is a UO that displays a visual control defined in a DLL.&lt;br /&gt;b) Class UO – they consist of properties, functions, and events with no visual components.&lt;br /&gt;1. Standard – inherited from a NV PB object such as a transaction/error object, which can have instance variables and functions.&lt;br /&gt;2. Custom – an object of your own design for which you define variables, events and functions in order to encapsulate application-specific programming in an object&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;29. How do you change the SQL statement of a DW at run-time?&lt;/span&gt;&lt;br /&gt;It can be done by linking the DW control to modify () function or using “. Object” notation&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;30. Can you use an array as an argument to the DW’s Retrieve () function?&lt;/span&gt;&lt;br /&gt;Yes, it can be used when your DWs data source contains a Select statement with an IN clause.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;31. Application functionality would like to allow the user to print selected rows. How is this done?&lt;/span&gt;&lt;br /&gt;You can copy the selected rows to a data store or a hidden DW control using rowscopy () and print the data store or hidden DW control&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;32. Explain the DW validation rule&lt;/span&gt;&lt;br /&gt;If the data in a column has changed, it checks for the correctness of the value (both data type and data value) in the primary buffer. Wrong data type or data value will trigger the itemerror () event. If the data is correct it triggers itemchanged () event, which if it returns ZERO, triggers itemfocuschanged () event.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;33. Explain the following error: “Rows changed between retrieve and update”&lt;/span&gt;&lt;br /&gt;It occurs when a user updates the data before you update it. PB detects it when you include the timestamp column in the DW or use “key and updateable columns” in the WHERE clause. The solution to the problem would be to use the reselectrow () function to reselect the row that caused the error and get the latest values for the error row and update the DB again.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;34. What is the difference between a computed column and a computed field?&lt;/span&gt;&lt;br /&gt;The former is defined as part of the SELECT statement, (for example sum, avg etc) whose values are calculated by the database, while in the latter the PB client calculates the values. If it is a fat client then computed fields are recommended, else for thin clients it is computed column.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;35. If the application needs to display rows as soon as they are retrieved, what should be done?&lt;/span&gt;&lt;br /&gt;Write code in the retrievrow () event and also set the asynch attibute in the DBParm property in the transaction object&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;36. How would you retrieve multiple result sets in a single DW?&lt;/span&gt;&lt;br /&gt;A DW can retrieve only one result set at a time. To retrieve other result sets, you can change the result set number either by modify () or using object notation making sure the number of columns and data types match the existing DW definition.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;37. What is the event from which I can see the exact SQL statement sent to the DB by PowerBuilder?&lt;/span&gt;&lt;br /&gt;SQLPreview ()&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;38. How can you update a DW that has a stored procedure as a data source?&lt;/span&gt;&lt;br /&gt;It can be done by going to the update properties in the DW by selecting Rows/Update properties from the menu in the design mode in the DW painter. The tables to be updated can be selected.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;39. What are the different types of windows in PB?&lt;/span&gt;&lt;br /&gt;They are main, popup; child, response, MDI frame, and MDI frame with microhelp.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;40. If you create a response window and open that window in an MDI frame using opensheet (), what would happen?&lt;/span&gt;&lt;br /&gt;When you open a window in a MDI frame using opensheet () or opensheetwithparm () the window gets the sheet properties irrespective of the window type. If a response window is opened using the above functions the window will behave like any other sheet having maximise, minimize, close controls etc&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;41. What is the difference between triggerevent () and postevent ()?&lt;/span&gt;&lt;br /&gt;The former executes the specified event’s script right away while the latter posts the request in the operating system’s message queue&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;42. How can I find out if the PB application is connected to the DB or not?&lt;/span&gt;&lt;br /&gt;Use the Dbhandle () function&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;43. Name three PB pronouns used to reduce hard coding&lt;/span&gt;&lt;br /&gt;This, parent, parentwindow &amp;amp; super&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;44. Differentiate between parent &amp;amp; parentwindow&lt;/span&gt;&lt;br /&gt;Parent refers to the PB object where the current object is placed. For example parent in a command button’s script will refer to the window in which the command button is placed. Parentwindow is used to refer to the window for which the current menu is attached&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;45. I have a window, which has a menu, associated with it. For some reason I have deleted the&lt;/span&gt; menu and I am getting any error while trying to open the window. What needs to be done?&lt;br /&gt;Export the window as a SRW and look for the menu name in the file. Once found the menu can be created again and linked to the source window.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;46. Explain the different types of embedded SQL that can be used in PB scripting&lt;/span&gt;&lt;br /&gt;Given below are the SQL statements in scripts that are possible with Sybase ASE:&lt;br /&gt;a) Transaction Management statements – CONNECT, COMMIT, ROLLBACK and DISCONNECT are used to manage transactions in ASE. If a trigger fails, then a RAISEERROR should be issued in the trigger and not ROLLBACK. PB has got a DBMS specific return code (SQLDBCode = -1) within the transaction object which can be used to throw messages to the user.&lt;br /&gt;b) Non-cursor statements – INSERT/UPDATE/DELETE/SELECT&lt;br /&gt;c) Cursor statements – the user can retrieve ( declare, open, fetch &amp;amp; close cursors) and issue update( update &amp;amp; delete cursors)&lt;br /&gt;d) DB Stored Procedures – they can be used for retrieve, update or both. To execute DDL statements the AutoCommit must be set to TRUE (1), but if it is TRUE, ROLLBACK cannot be issued, hence after completion of the DDL operation it must be set back to FALSE.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;47. What is DDE? Which PB object has DDE related events associated with it?&lt;/span&gt;&lt;br /&gt;DDE stands for dynamic data exchange by means of which two applications can talk to each other and exchange data between them. Examples are RemoteExec &amp;amp; RemoteSend. A PB window has DDE events associated with it&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;48. Explain the concepts of embedding and linking&lt;/span&gt;&lt;br /&gt;When you embed an object it is saved as part of the OLE container object i.e. any changes to the actual object will not reflect in the embedded object. In case of Linking the original object resides where it was and link information is stored in the OLE container object i.e. any changes to the actual object will reflect in the OLE container object. OCX is an OLE control that implements the component-based architecture.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;49. Explain enumerated data types in PB&lt;/span&gt;&lt;br /&gt;Enumerated data types are specific to PowerScript. They are used as arguments in functions and also to specify the properties of an object or control. A variable of one of the enumerated data types can be assigned a fixed set of values. For example, the enumerated data type Alignment, which specifies the alignment of text, can be assigned one of the following three values: Center! Left!, and Right!:&lt;br /&gt;For example mle_edit.Alignment=Right!&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;50. Explain the concept of inheritance in PB&lt;/span&gt;&lt;br /&gt;It is a feature that enables you to build windows, user objects, and menus that are derived from existing objects. When you change an ancestor object, the changes are reflected in all the descendants and the descendant inherits the ancestor&#39;s scripts. Two main features to be noted here are:&lt;br /&gt;a) Descendant objects - In PB, an object class can be inherited from another class. The inherited or descendent object has all the instance variables, events, and functions of the ancestor. You can augment the descendant by adding more variables, events, and functions. If you change the ancestor, even after editing the descendant, the descendant incorporates the changes.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;b) Instantiating - When you instantiate a descendent object, PowerBuilder also instantiates all its ancestor classes. You do not have programmatic access to these ancestor instances, except in a few limited ways, such as when you use the scope operator to access an ancestor version of a function or event script.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc9933; font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;51. If you were experiencing a GPF in your application, how would you go about tracking it down?&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;&lt;br /&gt;a) Check library search path in development, required DLL’s, PBL’s in runtime etc&lt;br /&gt;b) If PFC is used, check that the PB version is exactly the same as PFC version, i.e. 5.0.04 etc&lt;br /&gt;c) Use DLL tracking utility to check executables DLL list&lt;br /&gt;d) Enabling the PB Debug Tracing information and find the last line of code that executed prior to the GPF.&lt;br /&gt;&lt;span style=&quot;color: #cc9933;&quot;&gt;&lt;br /&gt;52. Name some of the PFC services.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;a) Application (debugging, error message, security)&lt;br /&gt;b) Data window (filter, linkage, print preview, resize, sorting)&lt;br /&gt;c) Window (menu, resize, file, metaclass)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc9933; font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;53. Explain the type of Inheritance.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;two types of Inheritance: Single Inheritance and Multi-level Inheritance.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc9933; font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;54. Is PowerBuilder support Multiple Inheritance?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;No,But you need`multiple inheritance then you can inherit one object from other and You make one object as userobject and then use this userobject inherited object.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc9933; font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;55. How many event support an application?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;Six even support an application.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot;;&quot;&gt;open(),close(),connectionbegin(),connectionend(),idle(),systemerror().&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://expert-powerbuilder.blogspot.com/feeds/858726473449757706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://expert-powerbuilder.blogspot.com/2009/11/powerbuilder-interview-questions.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/218486656333916080/posts/default/858726473449757706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/218486656333916080/posts/default/858726473449757706'/><link rel='alternate' type='text/html' href='http://expert-powerbuilder.blogspot.com/2009/11/powerbuilder-interview-questions.html' title='PowerBuilder Interview Questions &amp; Answers Section1'/><author><name>Umesh Yadav</name><uri>http://www.blogger.com/profile/07880241385649999462</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQZoSzfFvXdfawUdtCQsmQx9daqqDOdbkFGx59yNTtI8C8MXR5bek4j5SLzJ-uq4vSgf-WlaA_QiFBvc3GkXUS6EyvncDGOgvWSN6t-dxeookMZ6oI9iDzuk9CY4OGPA/s113/durga.bmp'/></author><thr:total>10</thr:total></entry></feed>