473,396 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Whidbey(v2.0.31113) OracleClient/SqlDataSource parameter binding

I've :
<asp:sqldatasource runat="server"
id="sql"
providername="System.Data.OracleClient"
datasourcemode="DataReader"
connectionstring="..."
selectcommand="..."
deletecommand="delete from tbl where id=:id"/>

<asp:gridview runat="server"
datasourceid="sql"
datakeynames="id"
autogeneratedeletebutton="true"/>

click on delete button throws oracle exception :
ORA-01036 illegal variable name/number

Cause: Unable to find bind context on user side.

Action: Make sure that the variable being bound is in the SQL statement.

What it means?I've declared parameter as ":id" in sql and described
datakeynames as "id"...
How I can turn on tracing for ADO/parameter binding for GridView,if it
available?
Thanks.
Nov 18 '05 #1
4 2430
OracleClient by itself is perfectly works (version is v2.0.31113- PD2
redistributable for Windows XP and Windows Server 2003)
but parameter binding for asp:SqlDataSource not and OleDbProvider+Oracle
has some problems with "out" parameters.

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamM> wrote in
message news:OC*************@tk2msftngp13.phx.gbl...
Please note that Whidbey is still in alpha. I am not sure which build you
are using right now. The early alphas, including the PDC "semi-public" alpha did not allow Oracle connection at all. I have yet to install the Tech
Preview, so I am not certain how far they have gotten (if you are using the Tech Preview). In earlier builds, however, there was an access
<asp:datasource, as well as one for SQL Server. That was all.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Nov 18 '05 #2
Please note that Whidbey is still in alpha. I am not sure which build you
are using right now. The early alphas, including the PDC "semi-public" alpha
did not allow Oracle connection at all. I have yet to install the Tech
Preview, so I am not certain how far they have gotten (if you are using the
Tech Preview). In earlier builds, however, there was an access
<asp:datasource, as well as one for SQL Server. That was all.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Andrew" <as*@ezan.ac.ru> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I've :
<asp:sqldatasource runat="server"
id="sql"
providername="System.Data.OracleClient"
datasourcemode="DataReader"
connectionstring="..."
selectcommand="..."
deletecommand="delete from tbl where id=:id"/>

<asp:gridview runat="server"
datasourceid="sql"
datakeynames="id"
autogeneratedeletebutton="true"/>

click on delete button throws oracle exception :
ORA-01036 illegal variable name/number

Cause: Unable to find bind context on user side.

Action: Make sure that the variable being bound is in the SQL statement.

What it means?I've declared parameter as ":id" in sql and described
datakeynames as "id"...
How I can turn on tracing for ADO/parameter binding for GridView,if it
available?
Thanks.

Nov 18 '05 #3
I would suggest using the private newsgroups for this. Check out my blog post: http://weblogs.asp.net/mhawley/archi...29/101420.aspx for the information.

Matt Hawley, MCAD .NET http://www.eworldui.net Please note that Whidbey is still in alpha. I am not sure which build you
are using right now. The early alphas, including the PDC "semi-public" alpha
did not allow Oracle connection at all. I have yet to install the Tech
Preview, so I am not certain how far they have gotten (if you are using the
Tech Preview). In earlier builds, however, there was an access
<asp:datasource, as well as one for SQL Server. That was all.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Andrew" <as*@ezan.ac.ru> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I've :
<asp:sqldatasource runat="server"
id="sql"
providername="System.Data.OracleClient"
datasourcemode="DataReader"
connectionstring="..."
selectcommand="..."
deletecommand="delete from tbl where id=:id"/>

<asp:gridview runat="server"
datasourceid="sql"
datakeynames="id"
autogeneratedeletebutton="true"/>

click on delete button throws oracle exception :
ORA-01036 illegal variable name/number

Cause: Unable to find bind context on user side.

Action: Make sure that the variable being bound is in the SQL statement.

What it means?I've declared parameter as ":id" in sql and described
datakeynames as "id"...
How I can turn on tracing for ADO/parameter binding for GridView,if it
available?
Thanks.


Nov 18 '05 #4
OracleClient by itself is perfectly works (version is v2.0.31113- PD2
redistributable for Windows XP and Windows Server 2003)
but parameter binding for asp:SqlDataSource not and OleDbProvider+Oracle
has some problems with "out" parameters.

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamM> wrote in
message news:OC*************@tk2msftngp13.phx.gbl...
Please note that Whidbey is still in alpha. I am not sure which build you
are using right now. The early alphas, including the PDC "semi-public" alpha did not allow Oracle connection at all. I have yet to install the Tech
Preview, so I am not certain how far they have gotten (if you are using the Tech Preview). In earlier builds, however, there was an access
<asp:datasource, as well as one for SQL Server. That was all.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Nov 18 '05 #5

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

Similar topics

4
by: Daniel Mori | last post by:
Im at a loss on where to proceed next. I wonder if anyone can help me. I have a managed C++ DLL is basically a thin wrapper around several unmanaged classes. This DLL builds fine. In my...
2
by: Andrew | last post by:
I've : <asp:sqldatasource runat="server" id="sql" providername="System.Data.OracleClient" datasourcemode="DataReader" connectionstring="..." selectcommand="..." deletecommand="delete from tbl...
3
by: Andrew | last post by:
I've : <asp:sqldatasource runat="server" id="sql" providername="System.Data.OracleClient" datasourcemode="DataReader" connectionstring="..." selectcommand="..." deletecommand="delete from tbl...
3
by: Andrew | last post by:
I've : <asp:sqldatasource runat="server" id="sql" providername="System.Data.OracleClient" datasourcemode="DataReader" connectionstring="..." selectcommand="..." deletecommand="delete from tbl...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.