Oracle Errors (16400)
SQLServer Errors (35)
MySQL Errors (11) ORA-39117: Type needed to create table is not included in this operation. Failing sql is: string
1 4234
I have written the code as below. here problem is that dt remain null. how to solve thst please tell me. public partial class Form1 : Form { private DataTable DTable; private DataRow drow; public Form1() { InitializeComponent(); } private OleDbConnection getConnection() { OleDbConnection con=new OleDbConnection (@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\winApp for Student\winApp for Student\App_Data\SchooMgnSystem.mdb;Persist Security Info=True"); return con; } private void button1_Click(object sender, EventArgs e) { InsertData(); } private void InsertData() { if (DTable==null) { DTable = new DataTable(); DTable.Columns.Add("StudID", typeof(string)); DTable.Columns.Add("StudName", typeof (string)); DTable.Columns.Add("Address", typeof(string)); drow = DTable.NewRow(); drow[0] = txtStudID.Text; drow[1] = txtSTudName.Text; drow[2] = txtAddress.Text; DTable.Rows.Add(drow); grdStudent.DataSource = DTable; } else { drow = DTable.NewRow(); drow[0] = txtStudID.Text; drow[1] = txtSTudName.Text; drow[2] = txtAddress.Text; DTable.Rows.Add(drow); grdStudent.DataSource = DTable; } } private void button2_Click(object sender, EventArgs e) { string cmdstr; OleDbCommand cmd; OleDbConnection con = getConnection(); foreach (DataRow Drow in DTable.Rows) { cmdstr = "Insert into Student values('" + drow[0].ToString() + "','" + drow[1].ToString() + "','"+drow [2].ToString()+"')"; cmd = new OleDbCommand(cmdstr,con); try { con.Open(); cmd.ExecuteNonQuery(); } catch (Exception ex) { MessageBox.Show(ex.Message); } finally { con.Close(); } } }
When do you get "getwmicomexception"?
ORA-26095: unprocessed stream data exists
What is SCD (Slowly Changing Dimensions)? What are its types?
IMP-00064: Definition of LOB was truncated by export
java.sql.SQLException:Invalid state, the statement object is closed Hai all i got this error when i am multiple times referesh web page
what is new g/l functionality
ORA-16627: No standby databases support the overall protection mode.
hp asking for replication floppy to do reinstall 25254 server assistant
What is Mutex error in Triggers?
invalid quantity specification negative quantity are not allowed for this item please check this item definition quantity
ORA-16516: The current state is invalid for the attempted operation.
write a database figure to implement the master detained relationship.
ORA-26082: load of overlapping segments on table string.string is not allowed
ORA-07497: sdpri: cannot create trace file 'string'; errno = string.