<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'Oracle' and 'c#'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=Oracle%2cc%23&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tags 'Oracle' and 'c#'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: error: 26 - Error Locating Server/Instance Specified</title><link>http://forums.asp.net/thread/3562901.aspx</link><pubDate>Sun, 13 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3562901</guid><dc:creator>shantanu.gupta</dc:creator><description>&lt;div&gt;
&lt;p&gt;Here is the resolution to error 26. Check this video to configure your error.&amp;nbsp;It was a real headache for me&amp;nbsp; for a long time. But this worked.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://techpint.com/programming/error-26-%E2%80%93-error-locating-serverinstance-specified-sql-server" rel="nofollow" target="_new"&gt;http://techpint.com/programming/error-26-%E2%80%93-error-locating-serverinstance-specified-sql-server&lt;/a&gt;&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;&lt;a href="http://techpint.com/programming/error-26-%E2%80%93-error-locating-serverinstance-specified-sql-server" rel="nofollow" target="_new"&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</description></item><item><title>Select statement for arabic data not working!! </title><link>http://forums.asp.net/thread/2519091.aspx</link><pubDate>Mon, 28 Jul 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2519091</guid><dc:creator>cpcdafoor</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;In my asp.net code, I am trying to retrieve some data from an oracle database using a select statement that includes an arabic string (see in green). The select statement is as follows:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;font color="#0000ff" size="2"&gt;select &lt;/b&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;* &lt;/font&gt;&lt;b&gt;&lt;font color="#0000ff" size="2"&gt;from &lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;T_GOG_PHONEBOOK &lt;/font&gt;&lt;b&gt;&lt;font color="#0000ff" size="2"&gt;where &lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;afl_name &lt;/font&gt;&lt;b&gt;&lt;font color="#0000ff" size="2"&gt;like &lt;/b&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&amp;#39;%عبدالله جابر%&amp;#39; &lt;/font&gt;&lt;b&gt;&lt;font color="#0000ff" size="2"&gt;and rownum &lt;/b&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&amp;lt; &lt;/font&gt;&lt;font size="2"&gt;50&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;For some reason, I don&amp;#39;t get any results although, using the same select statement in SQL Navigator, I do get the needed results. The character sets in the database are WE8ISO8859P1 and AL16UTF16 for NLS_CHARACTERSET, and&amp;nbsp;NLS_VCHAR_CHARACTERSET respectively (i cannot change them!). &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;What could be the reason behind this? Here are some things I tried:&lt;/font&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;font size="2"&gt;changing the locale! (I don&amp;#39;t know if what I did was right. I think not)&lt;/font&gt;&lt;/li&gt;
&lt;li&gt;&lt;font size="2"&gt;changing Oracle NLS_Lang in the registry&amp;nbsp;(again, just trial and error)&lt;/font&gt;&lt;/li&gt;
&lt;li&gt;&lt;font size="2"&gt;encoding the string in my code. ?!?!&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;Please help me in this issue. It&amp;#39;s been weeks :(&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Regards, &lt;/p&gt;</description></item><item><title>oracle dataset parser error-Failed to generate code. Exception of type 'System.Data.Design.InternalException'</title><link>http://forums.asp.net/thread/2503306.aspx</link><pubDate>Mon, 21 Jul 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2503306</guid><dc:creator>kirang_97</dc:creator><description>&lt;div class="messageData"&gt;&lt;strong&gt;I created a web apllication in asp.net 2.0 and c#. I created a virtual directory for this app in a dev- environment. every thing works fine in dev. I moved the same code to a virtual directory in&amp;nbsp;test environment that is integrated with -OAM(oracle access management).I recieve the following error.I appreciate any help in this regard.&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;=========================================================================&lt;br /&gt;
&lt;h1&gt;&lt;font face="Verdana" color="red" size="5"&gt;&lt;span style="FONT-SIZE:18pt;"&gt;Server Error in &amp;#39;/SrchWebView&amp;#39; Application. &lt;/span&gt;&lt;/font&gt;&lt;/h1&gt;
&lt;h1 style="TEXT-ALIGN:center;" align="center"&gt;&lt;font face="Verdana" color="red" size="5"&gt;&lt;span style="FONT-SIZE:18pt;"&gt;
&lt;hr align="center" /&gt;
&lt;/span&gt;&lt;/font&gt;&lt;/h1&gt;
&lt;h2&gt;&lt;i&gt;&lt;font face="Verdana" color="maroon" size="4"&gt;&lt;span style="FONT-SIZE:14pt;FONT-STYLE:italic;"&gt;Parser Error&lt;/span&gt;&lt;/font&gt;&lt;/i&gt; &lt;/h2&gt;
&lt;p style="MARGIN-BOTTOM:12pt;"&gt;&lt;b&gt;&lt;font face="Verdana" color="black" size="1"&gt;&lt;span style="FONT-WEIGHT:bold;FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:Verdana;"&gt;Description: &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font face="Arial" color="black" size="1"&gt;&lt;span style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:Arial;"&gt;An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. &lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font face="Verdana" color="black" size="1"&gt;&lt;span style="FONT-WEIGHT:bold;FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:Verdana;"&gt;Parser Error Message: &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font face="Arial" color="black" size="1"&gt;&lt;span style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Failed to generate code. Exception of type &amp;#39;System.Data.Design.InternalException&amp;#39; was thrown.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font face="Verdana" color="black" size="1"&gt;&lt;span style="FONT-WEIGHT:bold;FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:Verdana;"&gt;Source Error:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt; &lt;/p&gt;
&lt;table class="" style="BACKGROUND:#ffffcc;WIDTH:100%;" cellpadding="0" bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td class="" style="PADDING-RIGHT:0.75pt;PADDING-LEFT:0.75pt;PADDING-BOTTOM:0.75pt;PADDING-TOP:0.75pt;"&gt;&lt;pre&gt;&lt;font face="Lucida Console" color="black" size="1"&gt;&lt;span style="FONT-SIZE:9pt;COLOR:black;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font face="Lucida Console" color="red" size="1"&gt;&lt;span style="FONT-SIZE:9pt;COLOR:red;"&gt;Line 1:&amp;nbsp; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font face="Lucida Console" color="black" size="1"&gt;&lt;span style="FONT-SIZE:9pt;COLOR:black;"&gt;Line 2:&amp;nbsp; &amp;lt;xs:schema id=&amp;quot;dsPMSGetBookCode&amp;quot; targetNamespace=&amp;quot;http://tempuri.org/dsPMSGetBookCode.xsd&amp;quot; xmlns:mstns=&amp;quot;http://tempuri.org/dsPMSGetBookCode.xsd&amp;quot; xmlns=&amp;quot;http://tempuri.org/dsPMSGetBookCode.xsd&amp;quot; xmlns:xs=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot; xmlns:msdata=&amp;quot;urn:schemas-microsoft-com:xml-msdata&amp;quot; xmlns:msprop=&amp;quot;urn:schemas-microsoft-com:xml-msprop&amp;quot; attributeFormDefault=&amp;quot;qualified&amp;quot; elementFormDefault=&amp;quot;qualified&amp;quot;&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font face="Lucida Console" color="black" size="1"&gt;&lt;span style="FONT-SIZE:9pt;COLOR:black;"&gt;Line 3:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xs:annotation&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p style="MARGIN-BOTTOM:12pt;"&gt;&lt;font face="Arial" color="black" size="1"&gt;&lt;span style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font face="Verdana" color="black" size="1"&gt;&lt;span style="FONT-WEIGHT:bold;FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:Verdana;"&gt;Source File: &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font face="Arial" color="black" size="1"&gt;&lt;span style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:Arial;"&gt;/SrchWebView/App_Code/DAL/dsPMSGetBookCode.xsd&lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font face="Verdana" color="black" size="1"&gt;&lt;span style="FONT-WEIGHT:bold;FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:Verdana;"&gt; &amp;nbsp;&amp;nbsp; Line: &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font face="Arial" color="black" size="1"&gt;&lt;span style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:Arial;"&gt;1 &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;div style="TEXT-ALIGN:center;" align="center"&gt;&lt;font face="Arial" color="black" size="1"&gt;&lt;span style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:Arial;"&gt;
&lt;hr align="center" /&gt;
&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;p&gt;&lt;b&gt;&lt;font face="Verdana" color="black" size="1"&gt;&lt;span style="FONT-WEIGHT:bold;FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:Verdana;"&gt;Version Information:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font face="Arial" color="black" size="1"&gt;&lt;span style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&amp;nbsp;Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;</description></item><item><title>How can i call a Oracle Function which return value is user defined record?   SOS !!!!!</title><link>http://forums.asp.net/thread/2389839.aspx</link><pubDate>Fri, 30 May 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2389839</guid><dc:creator>suhua</dc:creator><description>&lt;p&gt;&lt;strong&gt;Package and Function:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SPEC&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;CREATE OR REPLACE PACKAGE PACKAGE_SUHUATEST AS&lt;br /&gt;type resp is record&lt;/p&gt;
&lt;p&gt;(resp_key varchar(30),&lt;/p&gt;
&lt;p&gt;app_name varchar2(15));&lt;/p&gt;
&lt;p&gt;type resp_tab is table of resp INDEX BY BINARY_INTEGER;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;FUNCTION MyFunction(invar in varchar) return resp_tab ;&lt;br /&gt;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;END PACKAGE_SUHUATEST;&lt;br /&gt;/&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;BODY&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;CREATE OR REPLACE PACKAGE BODY MVL_SOX.PACKAGE_SUHUATEST AS&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp; FUNCTION MyFunction(invar in varchar) return resp_tab&amp;nbsp; IS&lt;br /&gt;&amp;nbsp; record1 resp;&lt;br /&gt;&amp;nbsp; record2&amp;nbsp; resp;&lt;br /&gt;&amp;nbsp; allresult resp_tab;&lt;br /&gt;&amp;nbsp; BEGIN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; record1.resp_key :=&amp;#39;key1&amp;#39;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; record1.app_name :=&amp;#39;name1&amp;#39;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; record2.resp_key :=&amp;#39;key2&amp;#39;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; record2.app_name :=&amp;#39;name2&amp;#39;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; allresult(1) := record1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; allresult(2) := record2;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETURN allresult;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPTION&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN NO_DATA_FOUND THEN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN OTHERS THEN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -- Consider logging the error and then re-raise&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAISE;&lt;br /&gt;&amp;nbsp; END MyFunction;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>regarding connection pooling in oracle for my .net application</title><link>http://forums.asp.net/thread/2351242.aspx</link><pubDate>Mon, 12 May 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2351242</guid><dc:creator>shivarlakrishna</dc:creator><description>&lt;p&gt;actually we are using microsoft entireprise library for connecting to sql server database which is giving good performance for my application.Here I had a problem for my new application where I am using Oracle database as back end.To increase the performance of my application which library I need to use.whether that library overcome the connection pooling problems of my application.wht r the connection classes and methods that library conatains,which of the classes and methods I have to use to get good perfomance my application.please give brief description about that library so that i can find out the methods and classes of that library easily.......&amp;nbsp;&lt;/p&gt;</description></item><item><title>Manipulate the data returned from database query</title><link>http://forums.asp.net/thread/2345548.aspx</link><pubDate>Thu, 08 May 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2345548</guid><dc:creator>asp.newtome</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I am new to APS.NET and programming in general and was looking for some help.&amp;nbsp; I am using ASP.NET 2.0 and C#&amp;nbsp;with&amp;nbsp;an Oracle 10g Express Edition database behind my application.&lt;/p&gt;
&lt;p&gt;What I am trying to do is retrieve the last 10 entries in the database (I know the SQL to do this) but would like some help on how best to fire the query i.e. would it be ExecuteNonQuery or something different?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Once I have retrieved the 10 rows of data I want to be able to manipulate certain columns within those different rows, the way I thought I would do this would be to somehow get the data returned from database query into an array?&amp;nbsp;but I&amp;nbsp;do not know how to do this!&lt;/p&gt;
&lt;p&gt;Could anyone please give me some advise on how best to proceed in this matter or point me in the direction of some good websites?&lt;/p&gt;
&lt;p&gt;Any help would be gratefully received,&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;</description></item><item><title>Insert not inserting to Oracle db</title><link>http://forums.asp.net/thread/2316819.aspx</link><pubDate>Wed, 23 Apr 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2316819</guid><dc:creator>asp.newtome</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am just trying to learn ASP.NET but have run into a problem when attempting to insert data into my database.&lt;/p&gt;
&lt;p&gt;I am using Oracle 10g Express Edition, Visual Studio 2005 and the code is in C#.&lt;/p&gt;
&lt;p&gt;Here is the code&amp;nbsp;I am using to call the insert statement;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;        &lt;span class="kwd"&gt;string&lt;/span&gt; sql = &lt;span class="st"&gt;&amp;quot;INSERT INTO offices (office_number, city, address, tel_number) VALUES (45, &amp;#39;London&amp;#39;, &amp;#39;Tottenham&amp;#39;, &amp;#39;2342234234&amp;#39;);&amp;quot;&lt;/span&gt;;
        OracleCommand command = &lt;span class="kwd"&gt;new&lt;/span&gt; OracleCommand();

        &lt;span class="kwd"&gt;using&lt;/span&gt; (OracleConnection myConnection = &lt;span class="kwd"&gt;new&lt;/span&gt;
            OracleConnection(ConfigurationManager.ConnectionStrings[
            &lt;span class="st"&gt;&amp;quot;connectionString&amp;quot;&lt;/span&gt;].ConnectionString))
        {
            command.CommandText = sql;
            command.Connection = myConnection;

            &lt;span class="kwd"&gt;try&lt;/span&gt;
            {
                myConnection.Open();
                command.ExecuteNonQuery();
                myConnection.Close();

            }
            &lt;span class="kwd"&gt;catch&lt;/span&gt; (Exception ex)
            {
                 ...
            }
        }&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The connection string is;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;add&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;name&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ConnectionString&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;connectionString&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Data Source=XE;Persist Security Info=True;User ID=xxx;Password=xxx&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;font color="#ff0000"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;providerName&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;System.Data.OracleClient&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000" size="2"&gt;connectionStrings&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#800000"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#000000"&gt;I have created a function that retrieves data from the database OK which is displayed in a grid view, but when I run the insert nothing is inserted into the database.&amp;nbsp; I don&amp;#39;t get any errors and I&amp;#39;m confident that the connection to DB is OK as I have already been able to retrieve data as mentioned, I just dont know if there is something I am missing such as&amp;nbsp;a commit for example?&amp;nbsp; Have looked on the web and tried it a couple of different ways but still can&amp;#39;t find a solution.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Any help would be gratefully received.&lt;/p&gt;
&lt;p&gt;Regards&lt;font color="#0000ff" size="2"&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title> Uploading and Downloading Binary File(PDF) from Oracle Using C# Command Line</title><link>http://forums.asp.net/thread/2245595.aspx</link><pubDate>Thu, 20 Mar 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2245595</guid><dc:creator>Sojan80</dc:creator><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m in the process of creating a small command line application that will write and retrieve PDF&amp;#39;s to an Oracle BLOB field. Currently I am working on the &amp;quot;writing&amp;quot; part. I did a bit of Googling and couldn&amp;#39;t really find an example if doing this from the command line, everything was from a web form. Am I using the right Namespaces? Is there an easier way to do this?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;try&lt;/span&gt;
    {

        &lt;span class="cmt"&gt;// Get the current direcotry of the file(s)&lt;/span&gt;
        &lt;span class="kwd"&gt;string&lt;/span&gt; currDirectory = Directory.GetCurrentDirectory();&lt;br /&gt;		&lt;br /&gt;        &lt;span class="cmt"&gt;// Get a list of all the files in that direcotry regardless of the file extension&lt;/span&gt;
        &lt;span class="kwd"&gt;string&lt;/span&gt;[] fileEntries = Directory.GetFiles(currDirectory);&lt;br /&gt;&lt;br /&gt;        &lt;span class="cmt"&gt;// Loop though each entry in the array and get the prsn_id, file name, and &lt;br /&gt;        // 6 digit date (YYMMDD)&lt;/span&gt;
        &lt;span class="kwd"&gt;foreach&lt;/span&gt; (&lt;span class="kwd"&gt;string&lt;/span&gt; fileName &lt;span class="kwd"&gt;in&lt;/span&gt; fileEntries)&lt;br /&gt;        {&lt;br /&gt;            &lt;span class="cmt"&gt;// Only get those files in the directory that have the file extension &amp;quot;pdf&amp;quot;&lt;br /&gt;            // and that have a file name length greater than 7&lt;/span&gt;
            &lt;span class="kwd"&gt;if&lt;/span&gt; (fileName.EndsWith(&lt;span class="st"&gt;&amp;quot;pdf&amp;quot;&lt;/span&gt;) &amp;amp;&amp;amp; fileName.Length &amp;gt; 7)&lt;br /&gt;            {&lt;br /&gt;				&lt;span class="cmt"&gt;// This gives us only the complete file name, excluding the path to file.                             &lt;/span&gt;
                myFileName = Path.GetFileName(fileName);
				
				&lt;span class="cmt"&gt;// Get the file size as int. &lt;/span&gt;
                FileInfo fInfo = &lt;span class="kwd"&gt;new&lt;/span&gt; FileInfo(myFileName);&lt;br /&gt;                &lt;span class="kwd"&gt;int&lt;/span&gt; fileSize = fInfo.Length;&lt;br /&gt;&lt;br /&gt;                &lt;span class="cmt"&gt;// Create a Stream Object                            &lt;/span&gt;
                FileStream fileStream = &lt;span class="kwd"&gt;new&lt;/span&gt; FileStream(myFileName, FileMode.Open, FileAccess.Read);&lt;br /&gt;&lt;br /&gt;                &lt;span class="cmt"&gt;// Create Byte Array  to hold file as bytes&lt;/span&gt;
                &lt;span class="kwd"&gt;byte&lt;/span&gt;[] bArray = &lt;span class="kwd"&gt;new byte&lt;/span&gt;[fileStream];&lt;br /&gt;&lt;br /&gt;                &lt;span class="cmt"&gt;// Load the array from the filestream&lt;/span&gt;
                fileStream.Read(bArray, 0, fileSize);

                &lt;span class="cmt"&gt;// At this point we are ready to stick everything in the database.	&lt;/span&gt;
				...
			}
		}
	}
&lt;span class="kwd"&gt;catch&lt;/span&gt;(Exception ex)&lt;br /&gt;{&lt;br /&gt;	&lt;span class="kwd"&gt;throw&lt;/span&gt; ex;&lt;br /&gt;}&lt;/pre&gt;Thanks &amp;nbsp;</description></item><item><title>How to update data returned using REF CURSOR</title><link>http://forums.asp.net/thread/2221983.aspx</link><pubDate>Mon, 10 Mar 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2221983</guid><dc:creator>imanour</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I am trying to update updated data in a gridview but the update button seem to do nothing as i retreive data using REF CURSOR.&lt;/p&gt;
&lt;p&gt;Let me describe the architecture of my application first. I&amp;#39;m trying to implement best practice whenever possible. I am following the data access tutorial published in &lt;a href="http://www.asp.net/"&gt;www.asp.net&lt;/a&gt; , the only difference is that i have an Oracle (10g) database. So I split my application into three layers, data access, business logic, and presentation layer. I&amp;#39;m also writing all queries in an Oracle package.&lt;/p&gt;
&lt;p&gt;So here is the code i am using:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Oracle Package: All the CRUD functions. Notice the first procedure (READ)&amp;nbsp;returns a REF Cursor&lt;br /&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;&lt;span class="sqlcmt"&gt;/*=================== TABLE: TF_REF_TYPES ===============================*/
&lt;b id="2"&gt;2    &lt;/b&gt;/*=======================================================================*/&lt;/span&gt;
&lt;b id="3"&gt;3    &lt;/b&gt;  &lt;span class="sqlkwd"&gt;PROCEDURE&lt;/span&gt; get_ref_type(ref_type_cursor &lt;span class="sqlkwd"&gt;OUT&lt;/span&gt; T_CURSOR) &lt;span class="sqlkwd"&gt;AS
&lt;b id="4"&gt;4    &lt;/b&gt;  BEGIN
&lt;b id="5"&gt;5    &lt;/b&gt;    
&lt;b id="6"&gt;6    &lt;/b&gt;    OPEN&lt;/span&gt; ref_type_cursor &lt;span class="sqlkwd"&gt;FOR
&lt;b id="7"&gt;7    &lt;/b&gt;    SELECT&lt;/span&gt; ref_type_id, ref_type
&lt;b id="8"&gt;8    &lt;/b&gt;    &lt;span class="sqlkwd"&gt;FROM&lt;/span&gt; tf_ref_types;
&lt;b id="9"&gt;9    &lt;/b&gt;    
&lt;b id="10"&gt;10   &lt;/b&gt;  &lt;span class="sqlkwd"&gt;END&lt;/span&gt; get_ref_type;
&lt;b id="11"&gt;11   &lt;/b&gt;
&lt;b id="12"&gt;12   &lt;/b&gt;  &lt;span class="sqlkwd"&gt;PROCEDURE&lt;/span&gt; create_ref_type(p_ref_type &lt;span class="sqlkwd3"&gt;IN&lt;/span&gt; VARCHAR2, p_created_by &lt;span class="sqlkwd3"&gt;IN&lt;/span&gt; VARCHAR2) &lt;span class="sqlkwd"&gt;AS
&lt;b id="13"&gt;13   &lt;/b&gt;  BEGIN
&lt;b id="14"&gt;14   &lt;/b&gt;    
&lt;b id="15"&gt;15   &lt;/b&gt;    INSERT INTO&lt;/span&gt; tf_ref_types (ref_type, created_by, created_date) 
&lt;b id="16"&gt;16   &lt;/b&gt;    &lt;span class="sqlkwd"&gt;VALUES&lt;/span&gt; (p_ref_type, p_created_by, SYSDATE);
&lt;b id="17"&gt;17   &lt;/b&gt;    
&lt;b id="18"&gt;18   &lt;/b&gt;  &lt;span class="sqlkwd"&gt;END&lt;/span&gt; create_ref_type;
&lt;b id="19"&gt;19   &lt;/b&gt;
&lt;b id="20"&gt;20   &lt;/b&gt;  &lt;span class="sqlkwd"&gt;PROCEDURE&lt;/span&gt; update_ref_type(p_ref_type &lt;span class="sqlkwd3"&gt;IN&lt;/span&gt; VARCHAR2, p_ref_type_id &lt;span class="sqlkwd3"&gt;IN&lt;/span&gt; NUMBER, p_updated_by &lt;span class="sqlkwd3"&gt;IN&lt;/span&gt; VARCHAR2) &lt;span class="sqlkwd"&gt;AS
&lt;b id="21"&gt;21   &lt;/b&gt;  BEGIN
&lt;b id="22"&gt;22   &lt;/b&gt;    
&lt;b id="23"&gt;23   &lt;/b&gt;    UPDATE&lt;/span&gt; tf_ref_types
&lt;b id="24"&gt;24   &lt;/b&gt;    &lt;span class="sqlkwd"&gt;SET&lt;/span&gt; ref_type = p_ref_type,
&lt;b id="25"&gt;25   &lt;/b&gt;    updated_by = p_updated_by,
&lt;b id="26"&gt;26   &lt;/b&gt;    updated_date = SYSDATE
&lt;b id="27"&gt;27   &lt;/b&gt;    &lt;span class="sqlkwd"&gt;WHERE&lt;/span&gt; ref_type_id = p_ref_type_id;
&lt;b id="28"&gt;28   &lt;/b&gt;  
&lt;b id="29"&gt;29   &lt;/b&gt;  &lt;span class="sqlkwd"&gt;END&lt;/span&gt; update_ref_type;
&lt;b id="30"&gt;30   &lt;/b&gt;
&lt;b id="31"&gt;31   &lt;/b&gt;  &lt;span class="sqlkwd"&gt;PROCEDURE&lt;/span&gt; delete_ref_type(p_ref_type_id &lt;span class="sqlkwd3"&gt;IN&lt;/span&gt; NUMBER) &lt;span class="sqlkwd"&gt;AS&lt;/span&gt;
&lt;b id="32"&gt;32   &lt;/b&gt;  ref_type_count NUMBER;
&lt;b id="33"&gt;33   &lt;/b&gt;  &lt;span class="sqlkwd"&gt;BEGIN&lt;/span&gt;
&lt;b id="34"&gt;34   &lt;/b&gt;    
&lt;b id="35"&gt;35   &lt;/b&gt;    &lt;span class="sqlcmt"&gt;-- Verify that no references are using the reference type.
&lt;/span&gt;&lt;b id="36"&gt;36   &lt;/b&gt;    &lt;span class="sqlkwd"&gt;SELECT&lt;/span&gt; &lt;span class="sqlkwd2"&gt;COUNT&lt;/span&gt;(ref_id) &lt;span class="sqlkwd"&gt;INTO&lt;/span&gt; ref_type_count
&lt;b id="37"&gt;37   &lt;/b&gt;    &lt;span class="sqlkwd"&gt;FROM&lt;/span&gt; tf_references
&lt;b id="38"&gt;38   &lt;/b&gt;    &lt;span class="sqlkwd"&gt;WHERE&lt;/span&gt; ref_type_id = p_ref_type_id;
&lt;b id="39"&gt;39   &lt;/b&gt;    
&lt;b id="40"&gt;40   &lt;/b&gt;    &lt;span class="sqlkwd"&gt;IF&lt;/span&gt; ref_type_count &amp;gt; 0 &lt;span class="sqlkwd"&gt;THEN&lt;/span&gt;
&lt;b id="41"&gt;41   &lt;/b&gt;      raise_application_error(-20018, &lt;span class="st"&gt;&amp;#39;The record cannot be deleted because there is table including related records.$&amp;#39;&lt;/span&gt;);
&lt;b id="42"&gt;42   &lt;/b&gt;    &lt;span class="sqlkwd"&gt;ELSE
&lt;b id="43"&gt;43   &lt;/b&gt;      DELETE FROM&lt;/span&gt; tf_ref_types
&lt;b id="44"&gt;44   &lt;/b&gt;      &lt;span class="sqlkwd"&gt;WHERE&lt;/span&gt; ref_type_id = p_ref_type_id;
&lt;b id="45"&gt;45   &lt;/b&gt;    &lt;span class="sqlkwd"&gt;END IF&lt;/span&gt;;
&lt;b id="46"&gt;46   &lt;/b&gt;    
&lt;b id="47"&gt;47   &lt;/b&gt;  &lt;span class="sqlkwd"&gt;END&lt;/span&gt; delete_ref_type; 
&lt;/pre&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;The I have xsd file that define a tableAdapter that uses the procedures defined above.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Next I have a .cs file where my business logic will be and calls the function from&amp;nbsp;the xsd file. And I am assuming that this is where i need to make the change to allow row updates.&lt;br /&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;[System.ComponentModel.DataObject]
&lt;b id="2"&gt;2    &lt;/b&gt;&lt;span class="kwd"&gt;public class&lt;/span&gt; ReferencesTypeBLL
&lt;b id="3"&gt;3    &lt;/b&gt;{
&lt;b id="4"&gt;4    &lt;/b&gt;    &lt;span class="kwd"&gt;private&lt;/span&gt; REF_TYPETableAdapter _refTable = &lt;span class="kwd"&gt;null&lt;/span&gt;;
&lt;b id="5"&gt;5    &lt;/b&gt;
&lt;b id="6"&gt;6    &lt;/b&gt;    &lt;span class="kwd"&gt;protected&lt;/span&gt; REF_TYPETableAdapter Adapter
&lt;b id="7"&gt;7    &lt;/b&gt;    {
&lt;b id="8"&gt;8    &lt;/b&gt;        &lt;span class="kwd"&gt;get&lt;/span&gt;
&lt;b id="9"&gt;9    &lt;/b&gt;        {
&lt;b id="10"&gt;10   &lt;/b&gt;            &lt;span class="kwd"&gt;if&lt;/span&gt; (_refTable == &lt;span class="kwd"&gt;null&lt;/span&gt;)
&lt;b id="11"&gt;11   &lt;/b&gt;                _refTable = &lt;span class="kwd"&gt;new&lt;/span&gt; REF_TYPETableAdapter();
&lt;b id="12"&gt;12   &lt;/b&gt;
&lt;b id="13"&gt;13   &lt;/b&gt;            &lt;span class="kwd"&gt;return&lt;/span&gt; _refTable;
&lt;b id="14"&gt;14   &lt;/b&gt;        }
&lt;b id="15"&gt;15   &lt;/b&gt;    }
&lt;b id="16"&gt;16   &lt;/b&gt;
&lt;b id="17"&gt;17   &lt;/b&gt;    [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, &lt;span class="kwd"&gt;true&lt;/span&gt;)]
&lt;b id="18"&gt;18   &lt;/b&gt;    &lt;span class="kwd"&gt;public&lt;/span&gt; References.REF_TYPEDataTable GetReferenceTypes()
&lt;b id="19"&gt;19   &lt;/b&gt;    {
&lt;b id="20"&gt;20   &lt;/b&gt;        Object x;
&lt;b id="21"&gt;21   &lt;/b&gt;        &lt;span class="kwd"&gt;return&lt;/span&gt; Adapter.GetRefType(&lt;span class="kwd"&gt;out&lt;/span&gt; x);
&lt;b id="22"&gt;22   &lt;/b&gt;    }
&lt;b id="23"&gt;23   &lt;/b&gt;
&lt;b id="24"&gt;24   &lt;/b&gt;    [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, &lt;span class="kwd"&gt;false&lt;/span&gt;)]
&lt;b id="25"&gt;25   &lt;/b&gt;    &lt;span class="kwd"&gt;public&lt;/span&gt; References.REF_TYPEDataTable GetReferenceTypeByID(&lt;span class="kwd"&gt;int&lt;/span&gt; typeID)
&lt;b id="26"&gt;26   &lt;/b&gt;    {
&lt;b id="27"&gt;27   &lt;/b&gt;        Object x;
&lt;b id="28"&gt;28   &lt;/b&gt;        &lt;span class="kwd"&gt;if&lt;/span&gt; (typeID == -1)
&lt;b id="29"&gt;29   &lt;/b&gt;            &lt;span class="kwd"&gt;return&lt;/span&gt; GetReferenceTypes();
&lt;b id="30"&gt;30   &lt;/b&gt;        &lt;span class="kwd"&gt;else
&lt;b id="31"&gt;31   &lt;/b&gt;            return&lt;/span&gt; Adapter.GetRefTypeByID(typeID, &lt;span class="kwd"&gt;out&lt;/span&gt; x);
&lt;b id="32"&gt;32   &lt;/b&gt;    }
&lt;b id="33"&gt;33   &lt;/b&gt;
&lt;b id="34"&gt;34   &lt;/b&gt;    [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, &lt;span class="kwd"&gt;true&lt;/span&gt;)]
&lt;b id="35"&gt;35   &lt;/b&gt;    &lt;span class="kwd"&gt;public bool&lt;/span&gt; AddReferenceType(&lt;span class="kwd"&gt;string&lt;/span&gt; REF_TYPE)
&lt;b id="36"&gt;36   &lt;/b&gt;    {
&lt;b id="37"&gt;37   &lt;/b&gt;        &lt;span class="kwd"&gt;int&lt;/span&gt; rowsAffected = Adapter.Insert(REF_TYPE, &lt;span class="st"&gt;&amp;quot;Admin&amp;quot;&lt;/span&gt;);
&lt;b id="38"&gt;38   &lt;/b&gt;        &lt;span class="kwd"&gt;return&lt;/span&gt; rowsAffected == 1;
&lt;b id="39"&gt;39   &lt;/b&gt;    }
&lt;b id="40"&gt;40   &lt;/b&gt;
&lt;b id="41"&gt;41   &lt;/b&gt;    [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, &lt;span class="kwd"&gt;true&lt;/span&gt;)]
&lt;b id="42"&gt;42   &lt;/b&gt;    &lt;span class="kwd"&gt;public bool&lt;/span&gt; UpdateReferenceType(&lt;span class="kwd"&gt;int&lt;/span&gt; REF_TYPE_ID, &lt;span class="kwd"&gt;string&lt;/span&gt; REF_TYPE)
&lt;b id="43"&gt;43   &lt;/b&gt;    {
&lt;b id="44"&gt;44   &lt;/b&gt;        References.REF_TYPEDataTable refType = GetReferenceTypeByID(REF_TYPE_ID);
&lt;b id="45"&gt;45   &lt;/b&gt;
&lt;b id="46"&gt;46   &lt;/b&gt;        &lt;span class="kwd"&gt;if&lt;/span&gt; (refType.Count == 0)
&lt;b id="47"&gt;47   &lt;/b&gt;            &lt;span class="kwd"&gt;return false&lt;/span&gt;;
&lt;b id="48"&gt;48   &lt;/b&gt;
&lt;b id="49"&gt;49   &lt;/b&gt;        &lt;span class="cmt"&gt;/*References.REF_TYPERow typeItem = refType[0];
&lt;b id="50"&gt;50   &lt;/b&gt;
&lt;b id="51"&gt;51   &lt;/b&gt;        typeItem.REF_TYPE_ID = typeID;
&lt;b id="52"&gt;52   &lt;/b&gt;        typeItem.REF_TYPE = value;*/&lt;/span&gt;
&lt;b id="53"&gt;53   &lt;/b&gt;
&lt;b id="54"&gt;54   &lt;/b&gt;        &lt;span class="kwd"&gt;int&lt;/span&gt; rowsAffected = Adapter.Update(REF_TYPE, REF_TYPE_ID, &lt;span class="st"&gt;&amp;quot;Admin&amp;quot;&lt;/span&gt;);
&lt;b id="55"&gt;55   &lt;/b&gt;
&lt;b id="56"&gt;56   &lt;/b&gt;        &lt;span class="kwd"&gt;return&lt;/span&gt; rowsAffected == 1;
&lt;b id="57"&gt;57   &lt;/b&gt;    }
&lt;b id="58"&gt;58   &lt;/b&gt;
&lt;b id="59"&gt;59   &lt;/b&gt;}&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;pre class="coloredcode"&gt;Presentation Layer: &lt;br /&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;&amp;lt;&lt;span class="tag"&gt;asp:DetailsView&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;DetailsView1&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; AllowPaging=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;True&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; AutoGenerateRows=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;False&amp;quot;&lt;/span&gt;
&lt;b id="2"&gt;2    &lt;/b&gt;&lt;span class="attr"&gt;        DataKeyNames=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;REF_TYPE_ID&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; DataSourceID=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;ObjectDataSource1&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Height=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;50px&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Width=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;125px&amp;quot;&lt;/span&gt;&amp;gt;
&lt;b id="3"&gt;3    &lt;/b&gt;        &amp;lt;&lt;span class="tag"&gt;Fields&lt;/span&gt;&amp;gt;
&lt;b id="4"&gt;4    &lt;/b&gt;            &amp;lt;&lt;span class="tag"&gt;asp:BoundField&lt;/span&gt;&lt;span class="attr"&gt; DataField=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;REF_TYPE_ID&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; HeaderText=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;REF_TYPE_ID&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; ReadOnly=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;True&amp;quot;&lt;/span&gt;
&lt;b id="5"&gt;5    &lt;/b&gt;&lt;span class="attr"&gt;                SortExpression=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;REF_TYPE_ID&amp;quot;&lt;/span&gt; /&amp;gt;
&lt;b id="6"&gt;6    &lt;/b&gt;            &amp;lt;&lt;span class="tag"&gt;asp:BoundField&lt;/span&gt;&lt;span class="attr"&gt; DataField=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;REF_TYPE&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; HeaderText=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;REF_TYPE&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; SortExpression=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;REF_TYPE&amp;quot;&lt;/span&gt; /&amp;gt;
&lt;b id="7"&gt;7    &lt;/b&gt;            &amp;lt;&lt;span class="tag"&gt;asp:CommandField&lt;/span&gt;&lt;span class="attr"&gt; ShowEditButton=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;True&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; ShowInsertButton=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;True&amp;quot;&lt;/span&gt; /&amp;gt;
&lt;b id="8"&gt;8    &lt;/b&gt;        &amp;lt;/&lt;span class="tag"&gt;Fields&lt;/span&gt;&amp;gt;
&lt;b id="9"&gt;9    &lt;/b&gt;    &amp;lt;/&lt;span class="tag"&gt;asp:DetailsView&lt;/span&gt;&amp;gt;
&lt;b id="10"&gt;10   &lt;/b&gt;    &amp;lt;&lt;span class="tag"&gt;br&lt;/span&gt; /&amp;gt;
&lt;b id="11"&gt;11   &lt;/b&gt;    &amp;lt;&lt;span class="tag"&gt;asp:ObjectDataSource&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;ObjectDataSource1&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;server&amp;quot;&lt;/span&gt; 
&lt;b id="12"&gt;12   &lt;/b&gt;&lt;span class="attr"&gt;                          OldValuesParameterFormatString=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;original_{0}&amp;quot;&lt;/span&gt; 
&lt;b id="13"&gt;13   &lt;/b&gt;&lt;span class="attr"&gt;                          SelectMethod=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;GetReferenceTypes&amp;quot;&lt;/span&gt; 
&lt;b id="14"&gt;14   &lt;/b&gt;&lt;span class="attr"&gt;                          TypeName=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;ReferencesTypeBLL&amp;quot;&lt;/span&gt; 
&lt;b id="15"&gt;15   &lt;/b&gt;&lt;span class="attr"&gt;                          InsertMethod=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;AddReferenceType&amp;quot;&lt;/span&gt; 
&lt;b id="16"&gt;16   &lt;/b&gt;&lt;span class="attr"&gt;                          UpdateMethod=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;UpdateReferenceType&amp;quot;&lt;/span&gt;&amp;gt;
&lt;b id="17"&gt;17   &lt;/b&gt;        &amp;lt;&lt;span class="tag"&gt;UpdateParameters&lt;/span&gt;&amp;gt;
&lt;b id="18"&gt;18   &lt;/b&gt;            &amp;lt;&lt;span class="tag"&gt;asp:Parameter&lt;/span&gt;&lt;span class="attr"&gt; Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;REF_TYPE_ID&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Type=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Int32&amp;quot;&lt;/span&gt; /&amp;gt;
&lt;b id="19"&gt;19   &lt;/b&gt;            &amp;lt;&lt;span class="tag"&gt;asp:Parameter&lt;/span&gt;&lt;span class="attr"&gt; Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;REF_TYPE&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Type=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;String&amp;quot;&lt;/span&gt; /&amp;gt;
&lt;b id="20"&gt;20   &lt;/b&gt;        &amp;lt;/&lt;span class="tag"&gt;UpdateParameters&lt;/span&gt;&amp;gt;
&lt;b id="21"&gt;21   &lt;/b&gt;        &amp;lt;&lt;span class="tag"&gt;InsertParameters&lt;/span&gt;&amp;gt;
&lt;b id="22"&gt;22   &lt;/b&gt;            &amp;lt;&lt;span class="tag"&gt;asp:Parameter&lt;/span&gt;&lt;span class="attr"&gt; Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;REF_TYPE&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Type=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;String&amp;quot;&lt;/span&gt; /&amp;gt;
&lt;b id="23"&gt;23   &lt;/b&gt;        &amp;lt;/&lt;span class="tag"&gt;InsertParameters&lt;/span&gt;&amp;gt;
&lt;b id="24"&gt;24   &lt;/b&gt;    &amp;lt;/&lt;span class="tag"&gt;asp:ObjectDataSource&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;pre class="coloredcode"&gt;&lt;pre class="coloredcode"&gt;In a nutshell, I am just trying to update records retrieved using REF CURSOR. &lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;Your help is very much appreciated. Please let me know if further details are required.&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;Cheers,&lt;/pre&gt;&lt;/pre&gt;</description></item><item><title>Using Multiple Databases with a single web application in asp.NET</title><link>http://forums.asp.net/thread/2144891.aspx</link><pubDate>Thu, 31 Jan 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2144891</guid><dc:creator>thangapandi</dc:creator><description>&lt;p&gt;Do we can use multiple Databases (say SQL Server ,Oracle and SAP Server) with a single asp.NET application (data architecture is the same in every data bases)? If so, How do we achieve the same?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&amp;#39;&lt;/p&gt;
&lt;p&gt;Thangapandi M&lt;/p&gt;</description></item></channel></rss>