Any kind of commands combining in Oracle is impossible. You can use either PL/SQL blocks or execute command with DML array parameters. For more information read the documentation for Oracle server and OraDirect .NET.
If you still have questions concerning OraDirect .NET, specify your question.
Search found 2757 matches
- Tue 21 Mar 2006 10:58
- Forum: dotConnect for Oracle
- Topic: batching up commands
- Replies: 1
- Views: 2014
- Tue 21 Mar 2006 07:59
- Forum: dotConnect for MySQL
- Topic: Is MySQLDirect .NET a visual tool?
- Replies: 1
- Views: 1589
- Tue 21 Mar 2006 07:49
- Forum: dotConnect for MySQL
- Topic: developer tools beta ...
- Replies: 5
- Views: 2034
- Mon 20 Mar 2006 11:25
- Forum: dotConnect for MySQL
- Topic: Frustration with evaluation
- Replies: 1
- Views: 1556
- Mon 20 Mar 2006 08:16
- Forum: dotConnect for MySQL
- Topic: Could not load type 'System.Web.Security.MySqlRoleProvider'.
- Replies: 4
- Views: 2575
- Mon 20 Mar 2006 08:07
- Forum: dotConnect for MySQL
- Topic: Problem with mysqlcommandbuilder
- Replies: 1
- Views: 1622
Hi.
The problem is that you create parameters collection twice. Moreover, when you assign any value to a parameter use their names without colon (":"). E.g.:
Or you can do it by the number of the parameter in the collection. The following statements are equal:
(Don't forget that parameters collection is zero-based)
Take a look at your code corrected accordingly to preceding notices:
Good luck
The problem is that you create parameters collection twice. Moreover, when you assign any value to a parameter use their names without colon (":"). E.g.:
Code: Select all
MySqlInsertCommand1.Parameters("state_id").Value = TextBox1.Text
Code: Select all
MySqlInsertCommand1.Parameters("state_id").Value = TextBox1.Text
MySqlInsertCommand1.Parameters(0).Value = TextBox1.Text
Take a look at your code corrected accordingly to preceding notices:
Code: Select all
Me.MySqlInsertCommand1.CommandText = "INSERT INTO state(state_id, state_descrioption) VALUES (:state_id, :state_descrioption)"
Me.mySqlInsertCommand1.Connection = Me.MySqlConnection1
Me.mySqlInsertCommand1.Name = "mySqlInsertCommand1"
Me.mySqlInsertCommand1.Parameters.Add(New CoreLab.MySql.MySqlParameter("state_id", CoreLab.MySql.MySqlType.VarChar, 2, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "", System.Data.DataRowVersion.Current, ""))
Me.mySqlInsertCommand1.Parameters.Add(New CoreLab.MySql.MySqlParameter("state_descrioption", CoreLab.MySql.MySqlType.VarChar, 2, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "", System.Data.DataRowVersion.Current, ""))
Me.mySqlInsertCommand1.UpdatedRowSource = System.Data.UpdateRowSource.None
MySqlInsertCommand1.Parameters("state_id").Value = TextBox1.Text
MySqlInsertCommand1.Parameters("state_descrioption").Value = TextBox2.Text
Try
MySqlConnection1.Open()
mySqlInsertCommand1.ExecuteNonQuery()
MySqlConnection1.Close()
Catch myerror As CoreLab.MySql.MySqlException
MsgBox("There was an error creating record: " & myerror.Message)
End Try
- Mon 20 Mar 2006 07:19
- Forum: dotConnect for MySQL
- Topic: storing BIT values using parameters
- Replies: 1
- Views: 1486
Hi.
Actually, Bit is supported as well. Have a look:
Good luck
Actually, Bit is supported as well. Have a look:
Code: Select all
cmd.Parameters.Add("IdType", MySqlType.Int);
cmd.Parameters["IdType"].Direction = ParameterDirection.Input;
cmd.Parameters["IdType"].Value = comp.IdType;
cmd.Parameters.Add("Name", MySqlType.VarChar);
cmd.Parameters["Name"].Direction = ParameterDirection.Input;
cmd.Parameters["Name"].Value = comp.Name;
cmd.Parameters.Add("State", MySqlType.Bit);
cmd.Parameters["State"].Direction = ParameterDirection.Input;
cmd.Parameters["State"].Value = comp.State;
cmd.CommandText = "INSERT into Components (Type_id, Name, State) VALUES (:IdType, :Name, :State)";
- Fri 17 Mar 2006 06:54
- Forum: dotConnect for MySQL
- Topic: Could not load type 'System.Web.Security.MySqlRoleProvider'.
- Replies: 4
- Views: 2575
- Wed 15 Mar 2006 12:25
- Forum: dotConnect for MySQL
- Topic: Newbie question on Pocket PC
- Replies: 1
- Views: 1623
- Wed 15 Mar 2006 07:57
- Forum: dotConnect for MySQL
- Topic: System.NotSupportedException: Specified method is not supported.
- Replies: 10
- Views: 4621
- Tue 14 Mar 2006 12:41
- Forum: dotConnect for MySQL
- Topic: System.NotSupportedException: Specified method is not supported.
- Replies: 10
- Views: 4621
We have reproduced the problem. Now we are investigating it.
To solve the problem right now perform the following steps:
1. Go to the UpdateQuery property of the SqlDataSource component by clicking "..." in Properties window.
2. In "Command and Parameter Editor" click on "Show advanced properties" link.
3. Choose any column from the "Parameters:" listbox by simply clicking on it and in "Properties:" listbox correct its type to actual.
As you can see, the problem is that the type by default is "Object".
To solve the problem right now perform the following steps:
1. Go to the UpdateQuery property of the SqlDataSource component by clicking "..." in Properties window.
2. In "Command and Parameter Editor" click on "Show advanced properties" link.
3. Choose any column from the "Parameters:" listbox by simply clicking on it and in "Properties:" listbox correct its type to actual.
As you can see, the problem is that the type by default is "Object".
- Tue 14 Mar 2006 09:22
- Forum: dotConnect for MySQL
- Topic: MYSQl Server Timeout
- Replies: 1
- Views: 1643