更新Oracle数据集 [英] Updating Oracle Datasets
问题描述
我无法将oracle适配器的更新命令设置为Oracle
存储过程的名称。我的数据适配器是一个全局变量,我在多个函数中使用。
但是以下代码行
g_Da.UpdateCommand.CommandType = CommandType.StoredProcedur
生成此错误
System.NullReferenceException:对象引用未设置为对象的实例
是否有人知道为什么?有人能告诉我如何成功将我的
数据适配器的更新命令设置为我的存储过程
感谢您的帮助
Parveen
I am having trouble setting the update command of my oracle adapter to the name of an Oracle
stored procedure. My data adapter is a global variable that I use in multiple functions.
But the following line of code
g_Da.UpdateCommand.CommandType = CommandType.StoredProcedur
Generates this error
System.NullReferenceException: Object reference not set to an instance of an object
Does anyone know why? Can someone tell me how I can successful set the update command of my
data adapter to my stored procedure
Thanks for your help
Parveen
推荐答案
" Parveen" <一个******* @ discussions.microsoft.com> schrieb
"Parveen" <an*******@discussions.microsoft.com> schrieb
我无法将我的oracle适配器的更新命令设置为Oracle存储过程的名称。我的数据适配器是一个全局变量,我在多个函数中使用它。但是下面的代码行:
g_Da.UpdateCommand.CommandType = CommandType.StoredProcedure
生成此错误:
System.NullReferenceException:Object reference没有设置为对象的实例。
有谁知道为什么?有人能告诉我如何成功设置我的数据适配器的更新命令到我的存储过程吗?
I am having trouble setting the update command of my oracle adapter
to the name of an Oracle stored procedure. My data adapter is a
global variable that I use in multiple functions. But the following
line of code:
g_Da.UpdateCommand.CommandType = CommandType.StoredProcedure
Generates this error:
System.NullReferenceException: Object reference not set to an
instance of an object.
Does anyone know why? Can someone tell me how I can successful set
the update command of my data adapter to my stored procedure?
要么你没有创建DataAdapter ,或者你没有创建一个
UpdateCommand。
-
Armin
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote .html
Either you didn''t create a DataAdapter, or you didn''t create an
UpdateCommand.
--
Armin
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
*" =?Utf-8?B?UGFydmVlbg ==?=" <一个******* @ discussions.microsoft.com> scripsit:
* "=?Utf-8?B?UGFydmVlbg==?=" <an*******@discussions.microsoft.com> scripsit:
我无法将我的oracle适配器的更新命令设置为Oracle
存储过程的名称。我的数据适配器是一个全局变量,我在多个函数中使用。
但是以下代码行:
g_Da.UpdateCommand.CommandType = CommandType.StoredProcedure
生成此错误:
System.NullReferenceException:对象引用未设置为对象的实例。
I am having trouble setting the update command of my oracle adapter to the name of an Oracle
stored procedure. My data adapter is a global variable that I use in multiple functions.
But the following line of code:
g_Da.UpdateCommand.CommandType = CommandType.StoredProcedure
Generates this error:
System.NullReferenceException: Object reference not set to an instance of an object.
您确定已为UpdateCommand分配了一些内容吗? ''属性?
-
Herfried K. Wagner [MVP]
< http://www.mvps .org / dotnet>
Are you sure you assigned something to the ''UpdateCommand'' property?
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
" Herfried K. Wagner [MVP]" <喜*************** @ gmx.at> schrieb
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schrieb
g_Da.UpdateCommand.CommandType = CommandType.StoredProcedure
生成此错误:
System.NullReferenceException:未设置对象引用
对象的实例。
g_Da.UpdateCommand.CommandType = CommandType.StoredProcedure
Generates this error:
System.NullReferenceException: Object reference not set to an
instance of an object.
你确定你已经为''UpdateCommand''
属性分配了一些内容吗?
Are you sure you assigned something to the ''UpdateCommand''
property?
是的,但它不起作用:
g_da.UpdateCommand = Something
-
Armin
"yes, but it does not work:"
g_da.UpdateCommand = Something
--
Armin
这篇关于更新Oracle数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!