Click here to Skip to main content
15,910,211 members
Home / Discussions / Database
   

Database

 
GeneralDifficult JOIN Pin
Luis Alonso Ramos4-Feb-05 15:24
Luis Alonso Ramos4-Feb-05 15:24 
GeneralRe: Difficult JOIN Pin
Yulianto.4-Feb-05 16:05
Yulianto.4-Feb-05 16:05 
GeneralRe: Difficult JOIN Pin
Luis Alonso Ramos4-Feb-05 19:18
Luis Alonso Ramos4-Feb-05 19:18 
GeneralRe: Difficult JOIN Pin
Mike Dimmick5-Feb-05 1:52
Mike Dimmick5-Feb-05 1:52 
GeneralRe: Difficult JOIN Pin
Luis Alonso Ramos5-Feb-05 6:41
Luis Alonso Ramos5-Feb-05 6:41 
GeneralRe: Difficult JOIN Pin
Mike Dimmick5-Feb-05 7:32
Mike Dimmick5-Feb-05 7:32 
GeneralRe: Difficult JOIN Pin
Luis Alonso Ramos5-Feb-05 8:13
Luis Alonso Ramos5-Feb-05 8:13 
Generali can't to insert a new row Pin
Sasuko4-Feb-05 6:38
Sasuko4-Feb-05 6:38 
I'm tring to add a row at my database .mdb but i get the follow error: "Sintax error in the INSERT INTO instruction" why? what do i wrong?
this is the schema of my database:
Nome: text 15
Domanda: text 20
Risposta: text 15
Email: text 20

this is the code:


System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection();

conn.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;" +
@"Data source= myDatabase.mdb;";
try
{
conn.Open();

OleDbDataAdapter myAdapter = new OleDbDataAdapter("SELECT * FROM myTable", conn);
OleDbCommandBuilder myCmd = new OleDbCommandBuilder(myAdapter);
DataSet myDataSet = new DataSet("myTable");
myAdapter.MissingSchemaAction = MissingSchemaAction.AddWithKey;
myAdapter.Fill(myDataSet, "myTable");
DataRow myRow = myDataSet.Tables["myTable"].NewRow();
myRow["Nome"] = mNuovoUtente.mName;
myRow["Domanda"] = mNuovoUtente.mQuestion;
myRow["Risposta"] = mNuovoUtente.mAnswer;
myRow["Email"] = mNuovoUtente.mEmail;
myDataSet.Tables["TabellaUtente"].Rows.Add(myRow);
myAdapter.Update(myDataSet, "myTable");
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
finally
{
conn.Close();
}


GeneralRe: i can't to insert a new row Pin
tojamismis4-Feb-05 6:52
tojamismis4-Feb-05 6:52 
GeneralRe: i can't to insert a new row Pin
Sasuko4-Feb-05 11:00
Sasuko4-Feb-05 11:00 
GeneralRe: i can't to insert a new row Pin
tojamismis4-Feb-05 11:23
tojamismis4-Feb-05 11:23 
GeneralRe: i can't to insert a new row Pin
Sasuko4-Feb-05 11:30
Sasuko4-Feb-05 11:30 
GeneralRe: i can't to insert a new row Pin
tojamismis4-Feb-05 14:11
tojamismis4-Feb-05 14:11 
GeneralRe: i can't to insert a new row Pin
Sasuko4-Feb-05 22:29
Sasuko4-Feb-05 22:29 
GeneralRe: i can't to insert a new row Pin
Sasuko4-Feb-05 23:58
Sasuko4-Feb-05 23:58 
GeneralRe: i can't to insert a new row Pin
tojamismis5-Feb-05 4:49
tojamismis5-Feb-05 4:49 
GeneralRe: i can't to insert a new row Pin
Sasuko5-Feb-05 12:22
Sasuko5-Feb-05 12:22 
GeneralRe: i can't to insert a new row Pin
tojamismis5-Feb-05 4:47
tojamismis5-Feb-05 4:47 
GeneralRe: i can't to insert a new row Pin
tojamismis5-Feb-05 4:58
tojamismis5-Feb-05 4:58 
GeneralEnterprise manger Pin
Tom Wright4-Feb-05 5:50
Tom Wright4-Feb-05 5:50 
GeneralRe: Enterprise manger Pin
David Salter4-Feb-05 6:15
David Salter4-Feb-05 6:15 
GeneralRe: Enterprise manger Pin
Tom Wright4-Feb-05 6:43
Tom Wright4-Feb-05 6:43 
GeneralRe: Enterprise manger Pin
tojamismis4-Feb-05 6:43
tojamismis4-Feb-05 6:43 
GeneralRe: Enterprise manger Pin
Tom Wright4-Feb-05 6:45
Tom Wright4-Feb-05 6:45 
GeneralRe: Enterprise manger Pin
WoutL4-Feb-05 22:57
WoutL4-Feb-05 22:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.