472,789 Members | 891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,789 software developers and data experts.

Connecting a GridView to an Oracle table

Hello All,

I am trying to connect a GridView to an Oracle table using the standard
SqlDataSource. The process is fairly simple and there are detailed
instructions from Microsoft ...
http://msdn2.microsoft.com/en-us/lib...04(vs.80).aspx

The problem is not accessing or displaying data from an Oracle table
.... that all works great!

The problem is the number of tables Oracle returns when connecting
using the SqlDataSource. By default, the Oracle 10g server has over
1500 system/sample tables ... yes, I said 1500 as in one thousand five
hundred default tables with the standard installation of Oracle 10g.

If you look at the above link ... step 12 reads as follows:

....

"12. Make sure that the Yes, save this connection check box is
selected, change the name of the connection string if you want, and
then click Next to have the connection string information saved in the
application's Web.config file.

The Configure the Select Statement pane appears."

....

So, that part in step 12, where it says "The Configure the Select
Statement pane appears" does show up but only after the Web Developer
IDE has locked the computer for 5 minutes!!! while it reads over 1500
tables from the Oracle server.

I looked into forcing Oracle to filter the tables shown by a specified
Oracle Schema ... but no luck. It seems the OracleClient provided from
Microsoft forcibly retrieves ALL Oracle tables/view/stored procedures
when used in the SqlDataSource ... regardless of the assigned user
Default Schema.

Does anyone have any ideas on how I work around this problem? Is there
better data provider than the Microsoft OracleClient? What about
subclassing the SqlDataSource and manually filtering the tables that
are shown?

Thank you in advance for any help given :)

Nov 29 '06 #1
2 5462

<rc*******@gmail.comwrote in message
news:11*********************@l12g2000cwl.googlegro ups.com...
Hello All,

I am trying to connect a GridView to an Oracle table using the standard
SqlDataSource. The process is fairly simple and there are detailed
instructions from Microsoft ...
http://msdn2.microsoft.com/en-us/lib...04(vs.80).aspx

The problem is not accessing or displaying data from an Oracle table
... that all works great!

The problem is the number of tables Oracle returns when connecting
using the SqlDataSource. By default, the Oracle 10g server has over
1500 system/sample tables ... yes, I said 1500 as in one thousand five
hundred default tables with the standard installation of Oracle 10g.

If you look at the above link ... step 12 reads as follows:

...

"12. Make sure that the Yes, save this connection check box is
selected, change the name of the connection string if you want, and
then click Next to have the connection string information saved in the
application's Web.config file.

The Configure the Select Statement pane appears."

...

So, that part in step 12, where it says "The Configure the Select
Statement pane appears" does show up but only after the Web Developer
IDE has locked the computer for 5 minutes!!! while it reads over 1500
tables from the Oracle server.

I looked into forcing Oracle to filter the tables shown by a specified
Oracle Schema ... but no luck. It seems the OracleClient provided from
Microsoft forcibly retrieves ALL Oracle tables/view/stored procedures
when used in the SqlDataSource ... regardless of the assigned user
Default Schema.

Does anyone have any ideas on how I work around this problem? Is there
better data provider than the Microsoft OracleClient? What about
subclassing the SqlDataSource and manually filtering the tables that
are shown?

Thank you in advance for any help given :)

I downloaded the Oracle provider for .Net from Oracle, and played around
with it against a 10g database on my lan awhile back. It seemed to work
fine.
Dec 2 '06 #2
You'd better try the provider by Oracle

On 28 Nov 2006 21:19:31 -0800, rc*******@gmail.com wrote:
>Hello All,

I am trying to connect a GridView to an Oracle table using the standard
SqlDataSource. The process is fairly simple and there are detailed
instructions from Microsoft ...
http://msdn2.microsoft.com/en-us/lib...04(vs.80).aspx

The problem is not accessing or displaying data from an Oracle table
... that all works great!

The problem is the number of tables Oracle returns when connecting
using the SqlDataSource. By default, the Oracle 10g server has over
1500 system/sample tables ... yes, I said 1500 as in one thousand five
hundred default tables with the standard installation of Oracle 10g.

If you look at the above link ... step 12 reads as follows:

...

"12. Make sure that the Yes, save this connection check box is
selected, change the name of the connection string if you want, and
then click Next to have the connection string information saved in the
application's Web.config file.

The Configure the Select Statement pane appears."

...

So, that part in step 12, where it says "The Configure the Select
Statement pane appears" does show up but only after the Web Developer
IDE has locked the computer for 5 minutes!!! while it reads over 1500
tables from the Oracle server.

I looked into forcing Oracle to filter the tables shown by a specified
Oracle Schema ... but no luck. It seems the OracleClient provided from
Microsoft forcibly retrieves ALL Oracle tables/view/stored procedures
when used in the SqlDataSource ... regardless of the assigned user
Default Schema.

Does anyone have any ideas on how I work around this problem? Is there
better data provider than the Microsoft OracleClient? What about
subclassing the SqlDataSource and manually filtering the tables that
are shown?

Thank you in advance for any help given :)
--

Bits.Bytes.
http://bytes.thinkersroom.com
Dec 2 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Kong Li | last post by:
Follow up to this thread, the latest Oracle 9i release 2 patchset (9.2.0.5) fixed the handle count leak problem. The problem is in Oracle client component. Thanks. Kong ----- From: Kong...
1
by: yahibble | last post by:
Now, I am no Python expert but I have dabbled and I have spent a couple of days with another engineer unsuccessfully installing oracle drivers for MS ODBC on the win XP machine. It looked to me...
0
by: Bob Keller | last post by:
I've been working on a web project (VB) previously done with DataGrids in VS2003. I've migrated the project over to VS2005, because I like what I've seen of the newer features. Soooo.. I've...
1
by: RLN | last post by:
RE: Access 2003 using WinXP SP2 Problem: When I start up my app I double click either one of my two Oracle tables in the table list, it asks for an id and pass. I need them to be linked at...
2
by: guanfenglin | last post by:
Hello, I have a grid view which display and updates the data, however it doesn't work well, I always either get invalid name/number or not all varaibles bound, I am very frustrated at the...
1
by: jobs | last post by:
I am able to access 9i and 10g Oracle DBs from other clients on my pc - sqlplus, PLSQL Developer, etc. As a simple test I just wanted to connect and access the same oracle DBs through ASP.NET on...
3
by: hakiran | last post by:
Hello all, I have been using Perl DBI the last 6months or so. I use it extensively with MySQL. But recently i tried to access Oracle DB with it and was having trouble. Any help would be...
1
by: kinnu | last post by:
hi, could any one help me with the steps of connecting the vb form with the oracle database/table. I could connect vb to access. as my collage project requires connecting of vb with oracle...
19
by: mask | last post by:
Hi all, I have a problem of urgent nature . I am using Oracle and VB6 for an application . i am using ADODB coding In oracle i have created a table and trying to connect thru vb form. the vb code...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.