<?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-6246148627147619980</id><updated>2024-03-08T16:40:19.719-08:00</updated><category term="ORACLE"/><category term="RDLC Report"/><category term="ASP.NET"/><category term="Technology"/><category term="Access"/><category term="VB.NET"/><title type='text'>Database</title><subtitle type='html'>Database Analysis &amp;amp; development tools, issues &amp;amp; solutions including ORACLE, SQL Server,MS ACCESS&#xa;&amp;amp; VB.NET</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-8686695827714770162</id><published>2012-12-27T16:27:00.000-08:00</published><updated>2012-12-27T16:27:12.214-08:00</updated><title type='text'>Disable Button after click</title><content type='html'>ASP.Net 
&lt;br /&gt;
Disable asp.net button after clicked 
&lt;br /&gt;
&lt;br /&gt;
1st step: Create Java script function to disable the button 
&lt;br /&gt;
&lt;br /&gt;
&lt;script language=&quot;javascript&quot;&gt;
&lt;br /&gt;function disableBtn(btnID, newText) {
&lt;br /&gt;    var btn = document.getElementById(btnID);
&lt;br /&gt;        setTimeout(&quot;setImage(&#39;&quot;+btnID+&quot;&#39;)&quot;, 10);
&lt;br /&gt;        btn.disabled = true;
&lt;br /&gt;        btn.value = newText;
&lt;br /&gt;}
&lt;br /&gt;
&lt;br /&gt;&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
---------------------------------------
&lt;br /&gt;
&lt;br /&gt;
2nd step:call the function onclientclick action for the button
&lt;br /&gt;
&lt;br /&gt;
OnClientClick=&quot;disableBtn(this.id, &#39;Upload data &#39;)&quot; UseSubmitBehavior=&quot;false&quot;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/8686695827714770162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2012/12/disable-button-after-click.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/8686695827714770162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/8686695827714770162'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2012/12/disable-button-after-click.html' title='Disable Button after click'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-848175927482950465</id><published>2012-12-05T11:21:00.000-08:00</published><updated>2012-12-05T11:21:30.616-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technology"/><title type='text'>Best Android Tablet</title><content type='html'>&lt;strong&gt;&lt;span style=&quot;font-size: large;&quot;&gt;What is the best android tablet right now in the market&lt;/span&gt; ?&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;em&gt;Google Nexus&lt;/em&gt;&lt;/span&gt; &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;yes nexus is the best one in the market. we have google nexus 7 and&amp;nbsp;google nexus 10.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;for me i will go with the Nexus 10. tablet large screen is so important for productivity and fun too&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Nexus 10 is even thinner than the ipad it is 8.9mm while ipad is 9.4mm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;it has a great screen&amp;nbsp;with resolution 2560 x 1600 pixel.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;operating system: jelly Bean.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;processor: 1.7 GHZ Dual-core&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Ram: 2GB&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Rear Camera: 5 Mega pixel&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Front Camera: 1.9 Mega Pixel&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;GPS&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Wi-Fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Microphones&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Accelerometer&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;9,000mAh battery - 8 hours &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;There is two things i don&#39;t like in this great tablet :&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;No external memory.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Battery life.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Come on google we are not asking for too much just and SD card, it is not a big deal to support it.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/848175927482950465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2012/12/best-android-tablet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/848175927482950465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/848175927482950465'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2012/12/best-android-tablet.html' title='Best Android Tablet'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-417005646577039205</id><published>2012-12-04T07:52:00.004-08:00</published><updated>2012-12-04T08:15:58.628-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technology"/><title type='text'>Touch Screen Laptops</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;New touch screen laptops is not a such good idea in my opinion , as they just made those screens touchable and installed them on the current laptops just because of windows 8 touchable features.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;you can not just make the current laptops screen touchable without change the laptop design it is not working like that.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;every time you touch the screen it moves to the back and vibrate.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;hardware companies should create new designs for the laptops to handle the touch technology to make it usable and user friendly devices.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;some companies like lenovo did that already and came out with new designs .&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;the current design for windows 8 is good for tablets only, Microsoft must create another interface for desktops and laptops . metro style is so confusing interface when you use it on a regular PC.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&amp;nbsp;
&lt;span style=&quot;font-size: large;&quot;&gt;I am happy with my windows 7 on my desktop and laptops.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;if i will use windows 8 i will use it on tablet only.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;let me know your opinions also about touch screens on regular laptops and windows 8 metro style on desktop.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/417005646577039205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2012/12/windows-8-laptop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/417005646577039205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/417005646577039205'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2012/12/windows-8-laptop.html' title='Touch Screen Laptops'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-3962637717722445411</id><published>2012-07-24T11:47:00.000-07:00</published><updated>2012-07-24T11:47:08.385-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Access"/><title type='text'>ACESS NOT IN Query Issue</title><content type='html'>&lt;h3 class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
Not in statement in access returns no results even I know well that there is some records not in the sub query table.&lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;After searching this issue the only reason I found, if there is null values in the sub query selected list &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Then the (not in sub query) statement not working in the way it should&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;To make &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;not in statement&lt;/b&gt; work correctly in MS-Access you should remove the null values then it will return correct results&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;SELECT *&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;FROM TABLE1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;WHERE TABLE1.C1 NOT IN&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;(SELECT TABLE2.C2 FROM TBALE2);&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/3962637717722445411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2012/07/acess-not-in-query-issue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/3962637717722445411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/3962637717722445411'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2012/07/acess-not-in-query-issue.html' title='ACESS NOT IN Query Issue'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-4855715423623466412</id><published>2012-07-05T06:42:00.000-07:00</published><updated>2012-07-05T06:42:24.732-07:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;How to disable Asp.Net button after been clicked&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;&lt;strong&gt;&lt;em&gt;1st step: Create Java script function to disable the button and added to the web page&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script language=&quot;javascript&quot;&gt;
&lt;br /&gt;&lt;br /&gt;function disableBtn(btnID, newText) {
&lt;br /&gt;&lt;br /&gt;    var btn = document.getElementById(btnID);
&lt;br /&gt;&lt;br /&gt;        setTimeout(&quot;setImage(&#39;&quot;+btnID+&quot;&#39;)&quot;, 10);
&lt;br /&gt;&lt;br /&gt;        btn.disabled = true;
&lt;br /&gt;&lt;br /&gt;        btn.value = newText;
&lt;br /&gt;&lt;br /&gt;}
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;strong&gt;&amp;lt;script language=&quot;javascript&quot;&amp;gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;strong&gt;function disableBtn(btnID, newText) {&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;strong&gt;var btn = document.getElementById(btnID);&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;strong&gt;setTimeout(&quot;setImage(&#39;&quot;+btnID+&quot;&#39;)&quot;, 10);&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;strong&gt;btn.disabled = true;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;strong&gt;btn.value = newText;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;strong&gt;&amp;lt;/script&amp;gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&lt;em&gt;2nd step:&amp;nbsp; Add script to the button&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;strong&gt;OnClientClick=&quot;disableBtn(this.id, &#39;Upload data &#39;)&quot; UseSubmitBehavior=&quot;false&quot;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/4855715423623466412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2012/07/how-to-disable-asp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/4855715423623466412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/4855715423623466412'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2012/07/how-to-disable-asp.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-8995964269497887996</id><published>2010-06-12T16:40:00.000-07:00</published><updated>2010-06-12T17:15:21.154-07:00</updated><title type='text'></title><content type='html'>asp.net: How to disable asp.net button after clicked&lt;br /&gt;&lt;br /&gt;1st step: Create Java script function to disable the button&lt;br /&gt;&lt;br /&gt;&lt;a&gt;&lt;script language=&quot;javascript&quot;&gt;&lt;/script&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;function disableBtn(btnID, newText) {&lt;br /&gt;var btn = document.getElementById(btnID);&lt;br /&gt;setTimeout(&quot;setImage(&#39;&quot;+btnID+&quot;&#39;)&quot;, 10);&lt;br /&gt;btn.disabled = true;&lt;br /&gt;btn.value = newText;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;2nd step:&lt;br /&gt;Call onclientclick action for the  button&lt;br /&gt;&lt;br /&gt;OnClientClick=&quot;disableBtn(this.id, &#39;Upload data &#39;)&quot; UseSubmitBehavior=&quot;false&quot;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/8995964269497887996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2010/06/asp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/8995964269497887996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/8995964269497887996'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2010/06/asp.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-8770030121072682546</id><published>2010-06-12T16:34:00.000-07:00</published><updated>2010-06-12T16:36:39.229-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ORACLE"/><title type='text'></title><content type='html'>Oralce SQL: &lt;br /&gt;Select the maximum date from each month in a date column .&lt;br /&gt;column named (date_col)  contains dates and you would like to select the maximum date from each month in this column.&lt;br /&gt;&lt;br /&gt;select max(date_col)&lt;br /&gt;from table_name&lt;br /&gt;group by to_char(date_col,&#39;mm&#39;),to_char(date_col,&#39;yyyy&#39;)</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/8770030121072682546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2010/06/oralce-sql-select-maximum-date-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/8770030121072682546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/8770030121072682546'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2010/06/oralce-sql-select-maximum-date-from.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-2251264895473633021</id><published>2010-06-12T16:31:00.000-07:00</published><updated>2010-06-12T16:32:04.109-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ORACLE"/><title type='text'></title><content type='html'>ORACEL SQL. &lt;br /&gt;How to List dates between two dates interval &lt;br /&gt;&lt;br /&gt;select to_date(&#39;Start_date&#39;,&#39;dd-mm-yyyy&#39;) + rownum -1 &lt;br /&gt;from all_objects &lt;br /&gt;where rownum &lt;= to_date(&#39;End_date&#39;,&#39;dd-mm-yyyy&#39;)-to_date(&#39;Start_date&#39;,&#39;dd-mm-yyyy&#39;)+1</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/2251264895473633021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2010/06/oracel-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/2251264895473633021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/2251264895473633021'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2010/06/oracel-sql.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-6798673307623968033</id><published>2009-04-07T06:16:00.000-07:00</published><updated>2009-04-07T06:17:50.328-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>ListBox Selected Values</title><content type='html'>&lt;strong&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;L&lt;/span&gt;istbox selected values string separated with “,”&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;  &lt;span style=&quot;color:#000066;&quot;&gt;Dim li As ListItem&lt;br /&gt;        Dim x As Integer = 0&lt;br /&gt;        Dim Strv As String&lt;br /&gt;&lt;br /&gt;        For Each li In LB_users.Items&lt;br /&gt;            If li.Selected = True Then&lt;br /&gt;                strv = li.Value + &quot;,&quot; + txt_users.Text&lt;br /&gt;                strv = strv.Remove(strv.Length - 1)&lt;br /&gt;&lt;br /&gt;            End If&lt;br /&gt;&lt;br /&gt;        Next&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/6798673307623968033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2009/04/listbox-selected-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/6798673307623968033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/6798673307623968033'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2009/04/listbox-selected-values.html' title='ListBox Selected Values'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-4496633552170945621</id><published>2009-03-25T10:50:00.000-07:00</published><updated>2009-03-25T10:55:35.770-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>Money Validation</title><content type='html'>&lt;span style=&quot;font-size:180%;&quot;&gt;M&lt;/span&gt;oney field validation using controlvalidator&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#330099;&quot;&gt;&lt;_asp:CompareValidator ID=&quot;CompareValidator1&quot; runat=&quot;server&quot; ControlToValidate=&quot;TextBox1&quot;&lt;br /&gt;ErrorMessage=&quot;Invalid Amount&quot;&lt;br /&gt;Operator=&quot;DataTypeCheck&quot;&lt;br /&gt;Type=&quot;Double&quot;&gt;&lt;br /&gt;&lt;/asp:CompareValidator&gt;&lt;/td&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/4496633552170945621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2009/03/money-validation.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/4496633552170945621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/4496633552170945621'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2009/03/money-validation.html' title='Money Validation'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-6777242965215998071</id><published>2009-03-10T07:42:00.000-07:00</published><updated>2009-03-10T07:48:34.061-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="RDLC Report"/><title type='text'>Row number for grouped data</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;R&lt;/span&gt;ownumber function returns the number of the row of the dataset&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;                        EMP_NAME&lt;br /&gt;&lt;/strong&gt;                             Emp1                  &lt;br /&gt;                             Emp2   &lt;br /&gt;                             Emp3&lt;br /&gt;                             Emp3&lt;br /&gt;                             Emp3&lt;br /&gt;                             Emp4&lt;br /&gt;&lt;br /&gt;If we would like to groupby EMP_NAME and show the row number beside each row, the result will be :&lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Row number&lt;/strong&gt;                  &lt;strong&gt;EMP_NAME&lt;br /&gt;&lt;/strong&gt;        1                                      emp_1&lt;br /&gt;        2                                      emp_2&lt;br /&gt;        3                                      emp_3&lt;br /&gt;        6                                      emp_4&lt;br /&gt;  &lt;br /&gt;As you can see the row number value is not correct,  actually it is correct because the rownumber function returns the number of row inside the dataset not inside the grouped data in the report&lt;br /&gt;&lt;br /&gt;Now we need to display the row number for what we see in the report instead of  what is inside the dataset&lt;br /&gt;&lt;br /&gt; I am going to use runningvlaue function for the grouped data inside &quot;table1&quot;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;=runningvalue(Fields!EMP_NAME.Value,countdistinct,&quot;table1&quot;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Result:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Rownumber               EMP_NAME&lt;br /&gt;&lt;/strong&gt;             1                              emp_1&lt;br /&gt;             2                              emp_2&lt;br /&gt;             3                              emp_3&lt;br /&gt;             4                              emp_4&lt;br /&gt;&lt;br /&gt;Runningvalue function: accumulates the result of any aggregate function except for rownumber and runningvalue.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/6777242965215998071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2009/03/row-number-for-grouped-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/6777242965215998071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/6777242965215998071'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2009/03/row-number-for-grouped-data.html' title='Row number for grouped data'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-5642701891742543482</id><published>2009-03-09T11:19:00.000-07:00</published><updated>2009-03-09T11:22:51.321-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="RDLC Report"/><title type='text'>Next line command</title><content type='html'>&lt;span style=&quot;font-size:180%;&quot;&gt;H&lt;/span&gt;ow to display data in the next line inside the same data field&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;=Fields!EMP_Name.Value &amp;amp; System.Environment.NewLine() &amp;amp; Fields!EMP_Address.Value&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000000;&quot;&gt;Result:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;EMPNAME&lt;br /&gt;ADDRESS&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/5642701891742543482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2009/03/next-line-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/5642701891742543482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/5642701891742543482'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2009/03/next-line-command.html' title='Next line command'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-631478335755888796</id><published>2009-03-06T08:21:00.000-08:00</published><updated>2009-03-06T08:32:53.679-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="RDLC Report"/><title type='text'>Report page footer</title><content type='html'>&lt;span style=&quot;font-size:180%;&quot;&gt;A&lt;/span&gt;dd page number to Reprot Page Footer&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;=&quot;Page &quot; &amp;amp; Globals!PageNumber&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;Result: Page1, Page2,…..etc&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;To display the total number of pages  you can use “Globals!TotalPages”&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;=&quot;Page &quot; &amp;amp; Globals!PageNumber &amp;amp; &quot;of &quot; &amp;amp; Globals!TotalPages&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000000;&quot;&gt;Result: “Page1 of 2”, “Page2 of 2”&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/631478335755888796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2009/03/report-page-footer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/631478335755888796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/631478335755888796'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2009/03/report-page-footer.html' title='Report page footer'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-3843855458996940208</id><published>2009-03-05T18:38:00.000-08:00</published><updated>2009-03-06T05:57:07.171-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ORACLE"/><title type='text'>Row number</title><content type='html'>&lt;span style=&quot;font-size:180%;&quot;&gt;S&lt;/span&gt;elect the first n rows&lt;br /&gt;the following example show how to retrieves the first 15 rows&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;select emp_name, salary&lt;br /&gt;from employee&lt;br /&gt;where rownum &lt;=15&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;if you want to retrieve data between row number 10 and row number 15&lt;br /&gt;then it should be in the following way&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;select emp_name, salary&lt;br /&gt;from&lt;br /&gt;(select rownum r ,emp_name, salary&lt;br /&gt;From employee )&lt;br /&gt;Where r &gt;=10 and r&lt;=15&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/3843855458996940208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2009/03/row-number.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/3843855458996940208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/3843855458996940208'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2009/03/row-number.html' title='Row number'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-8450976238366195305</id><published>2009-03-04T08:55:00.000-08:00</published><updated>2009-03-06T08:33:39.165-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="RDLC Report"/><title type='text'>Report image</title><content type='html'>&lt;span style=&quot;font-size:180%;&quot;&gt;H&lt;/span&gt;ow to add image to RDLC report&lt;br /&gt;&lt;br /&gt;1st step: open your RDLC report add image from report items to your report.&lt;br /&gt;&lt;br /&gt;2nd step: Report main menu select REPORT then Embedded Images click new image then select the image you would like to add.&lt;br /&gt;&lt;br /&gt;3rd step: go to image properties Source select Embedded.&lt;br /&gt;&lt;br /&gt;4th step: go to image properties Value you will find the image name you just embedded, select it.&lt;br /&gt;&lt;br /&gt;Now you can see the image inside the report</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/8450976238366195305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2009/03/rdlc-report-image.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/8450976238366195305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/8450976238366195305'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2009/03/rdlc-report-image.html' title='Report image'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-2755264680794269529</id><published>2009-03-03T07:12:00.000-08:00</published><updated>2009-03-04T08:21:34.258-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="RDLC Report"/><title type='text'>Field format</title><content type='html'>&lt;span style=&quot;font-size:180%;&quot;&gt;R&lt;/span&gt;eplace null values with 0 inside the RDLC report&lt;br /&gt;&lt;br /&gt;The following statement replaces the null value with 0 else it keeps the default value&lt;br /&gt;place the code inside the field expression&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;=iif(Parameters!emp_salary.Value like &quot;&quot;,0,Parameters!emp_salary.Value)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Aslo you can replace a specific string with another one&lt;br /&gt;For example if the string begin with “REJ” replace it with “Rejected”&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;=iif( left(Fields!EMP_ENROLLMENT.Value,3) like &quot;REJ&quot;,&quot;Rejected&quot;,Fields!EMP_ENROLLMENT.Value)&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/2755264680794269529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2009/03/rdlc-report-text-format.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/2755264680794269529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/2755264680794269529'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2009/03/rdlc-report-text-format.html' title='Field format'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-44103889514985896</id><published>2009-03-02T07:00:00.000-08:00</published><updated>2009-03-02T07:59:15.394-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET"/><title type='text'>Connection string</title><content type='html'>&lt;span style=&quot;font-size:180%;&quot;&gt;C&lt;/span&gt;reate Oracle connection string using APP.CONFIG file&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&lt;_connectionstrings&gt;&lt;br /&gt;&lt;br /&gt;&lt; name=&quot;CONN_NAME&quot; connectionstring=&quot;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.250.10.10)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SID=SIDNAME)));User Id=username;Password=password&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt; /connectionStrings &gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Second step.&lt;/strong&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;open the&lt;/span&gt; connection string&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;color:#330099;&quot;&gt;Imports Microsoft.VisualBasic&lt;br /&gt;Imports System.Configuration&lt;br /&gt;Imports System.Data&lt;br /&gt;Imports System.Data.OracleClient&lt;br /&gt;Imports System.Exception&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;Dim conn As OracleConnection&lt;br /&gt;&lt;br /&gt;Try&lt;br /&gt;&lt;br /&gt;conn = New OracleConnection(ConfigurationManager.ConnectionStrings(&quot;CONN_NAME&quot;).ConnectionString)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;Catch ex As Exception &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;Throw ex&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;Finally&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;conn.Dispose()&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000066;&quot;&gt;End Try&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/44103889514985896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2009/03/connection-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/44103889514985896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/44103889514985896'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2009/03/connection-string.html' title='Connection string'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-8890396987826206563</id><published>2009-02-27T08:00:00.000-08:00</published><updated>2009-03-02T07:50:43.087-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ORACLE"/><title type='text'>Search Selected items</title><content type='html'>&lt;strong&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;H&lt;/span&gt;ow to search for selected items in a drop down list or compo box&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The selected items string should be in the following format&lt;br /&gt;(first item,second item,third item,….)&lt;br /&gt;&lt;br /&gt;Then you can use the SQL (IN clause) to retrieve the data&lt;br /&gt;For some reason in ORACLE SQL, you should make the select statement as string to make it work else you will get no thing while if you are using sql server you don’t need to do that&lt;br /&gt;&lt;br /&gt;See the following stored procedure&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;CREATE OR REPLACE PROCEDURE SP_Search_Emp(&lt;br /&gt;ESTATUS IN VARCHAR2,ETYPE IN VARCHAR2,CUR_E_STATUS_TYPE OUT SYS_REFCURSOR )&lt;br /&gt;AS&lt;br /&gt;STR_ESTATUS VARCHAR2(9000);&lt;br /&gt;STR_ETYPE VARCHAR2(9000);&lt;br /&gt;CS VARCHAR2 (15000);&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;Select &#39;&#39;&#39;&#39;Replace(ESTATUS,&#39;,&#39;,&#39;&#39;&#39;,&#39;&#39;&#39;)&#39;&#39;&#39;&#39; into STR_ESTATUS from dual;&lt;br /&gt;Select &#39;&#39;&#39;&#39;Replace(ETYPE,&#39;,&#39;,&#39;&#39;&#39;,&#39;&#39;&#39;)&#39;&#39;&#39;&#39; into STR_ETYPE from dual;&lt;br /&gt;&lt;br /&gt;cs:=&#39;SELECT e.emp_id,e.emp_name,e.emp_address,e.emp_salary,e.emp_status,e.emp_type&lt;br /&gt;&lt;br /&gt;FROM Emp_table e&lt;br /&gt;&lt;br /&gt;WHERE emp_Status IN&#39;;&lt;br /&gt;cs := cs &#39;(&#39;upper(STR_ESTATUS)&#39;) AND emp_type IN (&#39; str_etype&#39;)&lt;br /&gt;)&#39;;&lt;br /&gt;&lt;br /&gt;open cur_E_status_type for cs;&lt;br /&gt;END SP_Search_Emp;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/8890396987826206563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2009/02/search-selected-items.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/8890396987826206563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/8890396987826206563'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2009/02/search-selected-items.html' title='Search Selected items'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-6916872014256396200</id><published>2009-02-27T06:45:00.000-08:00</published><updated>2009-03-02T08:03:12.986-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ORACLE"/><title type='text'>Ref Cursor</title><content type='html'>&lt;span style=&quot;font-size:180%;&quot;&gt;R&lt;/span&gt;ef cursor is one of the most powerful ways to return stored procedures query results from oracle database. &lt;br /&gt;The following example shows how to use oracle ref cursor .&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;CREATE OR REPLACE PROCEDURE SP_EMP (CUR_EMP OUT SYS_REFCURSOR) AS&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;BEGIN&lt;br /&gt;OPEN CUR_EMP FOR&lt;br /&gt;SELECT EMP_FNAME, EMP_LNAME, EMP_DATA&lt;br /&gt;FROM EMPLOYEE&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/6916872014256396200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2009/02/ref-cursor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/6916872014256396200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/6916872014256396200'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2009/02/ref-cursor.html' title='Ref Cursor'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-4414348781554161329</id><published>2009-02-26T05:57:00.000-08:00</published><updated>2009-03-02T07:57:23.798-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ORACLE"/><title type='text'>Date Interval</title><content type='html'>&lt;em&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;T&lt;/span&gt;oday I am going to show you how to list the months and years between two dates interval using Oracle SQL&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;Select distinct to_char(create_date,&#39;MON-yyyy&#39;)as Create_Date from&lt;br /&gt;(&lt;br /&gt;SELECT TO_DATE(&#39;10/01/2008&#39;, &#39;MM/dd/YYYY&#39;) + rownum as create_date&lt;br /&gt;FROM all_objects&lt;br /&gt;WHERE TO_DATE(&#39;10/01/2008&#39;, &#39;MM/dd/YYYY&#39;) + rownum &lt;= TO_DATE(to_char(sysdate,&#39;mm/dd/yyyy&#39;),&#39;MM/dd/YYYY&#39;) )&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Result :&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;OCT-2008&lt;br /&gt;NOV-2008&lt;br /&gt;DEC-2008&lt;br /&gt;JAN-2009&lt;br /&gt;FEB-2009</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/4414348781554161329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2009/02/date-interval.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/4414348781554161329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/4414348781554161329'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2009/02/date-interval.html' title='Date Interval'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-1875144222768555950</id><published>2009-02-25T12:55:00.000-08:00</published><updated>2009-03-02T07:58:25.685-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ORACLE"/><title type='text'>Control file</title><content type='html'>&lt;span style=&quot;font-size:180%;&quot;&gt;C&lt;/span&gt;ontrol file to load data form text file to oracle database table&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000066;&quot;&gt;LOAD DATA&lt;br /&gt;INFILE &#39;C:\CTRFILE\TnxFile.dat&#39;&lt;br /&gt;BADFILE &#39;C:\CTRFILE\TnxFile.bad&#39;&lt;br /&gt;DISCARDFILE &#39;C:\CTRFILE\TnxFile.dsc&#39;&lt;br /&gt;APPEND&lt;br /&gt;INTO TABLE &quot;Employee_data&quot;&lt;br /&gt;FIELDS TERMINATED BY &#39;,&#39; OPTIONALLY ENCLOSED BY &#39;&quot;&#39;&lt;br /&gt;(&lt;br /&gt;EMP_Number position (,) char,&lt;br /&gt;EMP_NAME position(,) char,&lt;br /&gt;EMP_ADDRESS (,)char&lt;br /&gt;)&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/1875144222768555950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2009/02/control-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/1875144222768555950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/1875144222768555950'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2009/02/control-file.html' title='Control file'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6246148627147619980.post-5590045682897814313</id><published>2009-02-25T11:07:00.000-08:00</published><updated>2009-02-27T06:52:08.626-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ORACLE"/><title type='text'>Oracle spool</title><content type='html'>&lt;strong&gt;&lt;em&gt;Example1 :&lt;br /&gt;&lt;/em&gt;&lt;/strong&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;S&lt;/span&gt;pool data from oracle to text file also you can add title to the text file .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;set linesize 50;&lt;br /&gt;set echo off;&lt;br /&gt;set pagesize 9999;&lt;br /&gt;set newpage none;&lt;br /&gt;set heading on;&lt;br /&gt;set recsep off;&lt;br /&gt;&lt;br /&gt;spool c:\Data\FileName.txt ;&lt;br /&gt;&lt;br /&gt;TTITLE left &#39;BEX Approved Batch sheets&#39;; -- &lt;span style=&quot;font-size:78%;&quot;&gt;/* Add title to the text file*/&lt;/span&gt;&lt;br /&gt;column c1 heading &quot;emp_id&quot; format a5&lt;br /&gt;column c2 heading &quot;emp_name&quot; format a25&lt;br /&gt;column c3 heading &quot;emp_salary&quot; format $9,999,990.99&lt;br /&gt;&lt;br /&gt;SELECT emp_id c1,&lt;br /&gt;emp_name c2,&lt;br /&gt;emp_salary c3&lt;br /&gt;From employee where (emp_salary &gt;=60000)&lt;br /&gt;spool off;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:0;&quot;&gt;&lt;strong&gt;&lt;em&gt;Example 2:&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;Spool data from oracle to text file and name the file with date and time of data spool&lt;br /&gt;&lt;br /&gt;set linesize 50;&lt;br /&gt;set echo off;&lt;br /&gt;set pagesize 9999;&lt;br /&gt;set newpage none;&lt;br /&gt;set heading on;&lt;br /&gt;set recsep off;&lt;br /&gt;&lt;br /&gt;col sys_date new_value curr_date;&lt;br /&gt;select &#39;c:\data\&#39;to_char(sysdate,&#39;yyyy_ddmon_hh24_miss&#39;)&#39;.txt&#39; sys_date from dual;&lt;br /&gt;spool &amp;amp;curr_date;&lt;br /&gt;&lt;br /&gt;column c1 heading &quot;emp_id&quot; format a5&lt;br /&gt;column c2 heading &quot;emp_name&quot; format a25&lt;br /&gt;column c3 heading &quot;emp_salary&quot; format $9,999,990.99&lt;br /&gt;&lt;br /&gt;SELECT emp_id c1,&lt;br /&gt;emp_name c2,&lt;br /&gt;emp_salary c3&lt;br /&gt;From employee where (emp_salary &gt;=60000)&lt;br /&gt;spool off;</content><link rel='replies' type='application/atom+xml' href='http://database-developer.blogspot.com/feeds/5590045682897814313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://database-developer.blogspot.com/2009/02/oracle-spool.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/5590045682897814313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6246148627147619980/posts/default/5590045682897814313'/><link rel='alternate' type='text/html' href='http://database-developer.blogspot.com/2009/02/oracle-spool.html' title='Oracle spool'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>