Click here to Skip to main content
15,896,207 members
Home / Discussions / Database
   

Database

 
GeneralRe: Update Query Cant seem to spot the problem Pin
Paddy Boyd23-Oct-07 3:43
Paddy Boyd23-Oct-07 3:43 
AnswerRe: Update Query Cant seem to spot the problem Pin
Rob Graham23-Oct-07 7:53
Rob Graham23-Oct-07 7:53 
GeneralRe: Update Query Cant seem to spot the problem Pin
ekynox23-Oct-07 10:32
ekynox23-Oct-07 10:32 
QuestionDelete Pin
ritu432123-Oct-07 1:35
ritu432123-Oct-07 1:35 
AnswerRe: Delete Pin
sindhutiwari23-Oct-07 1:41
sindhutiwari23-Oct-07 1:41 
GeneralRe: Delete Pin
pmarfleet23-Oct-07 1:48
pmarfleet23-Oct-07 1:48 
AnswerRe: Delete Pin
pmarfleet23-Oct-07 1:43
pmarfleet23-Oct-07 1:43 
AnswerRe: Delete Pin
N a v a n e e t h23-Oct-07 1:57
N a v a n e e t h23-Oct-07 1:57 
GeneralRe: Delete Pin
ritu432123-Oct-07 2:11
ritu432123-Oct-07 2:11 
GeneralRe: Delete Pin
N a v a n e e t h23-Oct-07 2:14
N a v a n e e t h23-Oct-07 2:14 
GeneralRe: Delete Pin
sindhutiwari23-Oct-07 2:22
sindhutiwari23-Oct-07 2:22 
GeneralRe: Delete Pin
pmarfleet23-Oct-07 3:19
pmarfleet23-Oct-07 3:19 
AnswerRe: Delete Pin
Krish - KP23-Oct-07 2:19
Krish - KP23-Oct-07 2:19 
Questionstoring image in access database Pin
sindhutiwari23-Oct-07 1:21
sindhutiwari23-Oct-07 1:21 
AnswerRe: storing image in access database Pin
N a v a n e e t h23-Oct-07 1:33
N a v a n e e t h23-Oct-07 1:33 
GeneralRe: storing image in access database Pin
sindhutiwari23-Oct-07 1:39
sindhutiwari23-Oct-07 1:39 
GeneralRe: storing image in access database Pin
N a v a n e e t h23-Oct-07 2:03
N a v a n e e t h23-Oct-07 2:03 
AnswerRe: storing image in access database Pin
Pete O'Hanlon23-Oct-07 2:18
mvePete O'Hanlon23-Oct-07 2:18 
Questioninsert command Pin
sindhutiwari22-Oct-07 21:57
sindhutiwari22-Oct-07 21:57 
HI : The Given Code is to store the specifications of the controls which are added to a form dynamically ,the database used is access ,here global is a class , lsave & i are variables
there is no syntax error at complile time but runtime a error is coming i.e Syntax error in INSERT INTO statement . The database is absolutely fine with correct syntax...

clue's please........................................Cry | :((





OleDbConnection connection = new OleDbConnection();
connection.ConnectionString = WindowsApplication1.Properties.Settings.Default.printsoftwareConnectionString;
connection.Open();
//loop for saving the positions of the labels
OleDbDataAdapter oda = new OleDbDataAdapter("select * from controlspecifications",connection);
OleDbCommandBuilder cmb1 = new OleDbCommandBuilder(oda);
DataSet ds1 = new DataSet("controlspecifications");
oda.Fill(ds1, "controlspecifications");
DataRow dr = ds1.Tables["controlspecifications"].NewRow();

for (lsave = 0; lsave <= i; lsave++)
{

dr[0] = global.projectname + "adsfsd";
dr[1] = lab[lsave].Name;
dr[2] = Convert.ToInt32(lab[lsave].Left);
dr[3] = Convert.ToInt32(lab[lsave].Top);
dr[4] = Convert.ToInt32(lab[lsave].Width);
dr[5] = Convert.ToInt32(lab[lsave].Height);
dr[6] = lab[lsave].Text;
dr[7] = lab[lsave].Font.FontFamily;
dr[8] = Convert.ToInt32(lab[lsave].Font.Size);
dr[9] = lab[lsave].ForeColor.ToString();
dr[10] = lab[lsave].BackColor.ToString();
if (lab[lsave].Font.Bold == true)
{
dr[11] = "bold";
}
else if (lab[lsave].Font.Italic == true)
{
dr[11] = "italic";
}
else if (lab[lsave].Font.Underline == true)
{
dr[11] = "underline";
}
else
{
dr[11] = "strikeout";
}
dr[12] = "dasfsad";
ds1.Tables["controlspecifications"].Rows.Add(dr);
oda.Update(ds1, "controlspecifications");
oda.Fill(ds1, "controlspecifications");

sindhu tiwari

its me sid

AnswerRe: insert command Pin
Colin Angus Mackay22-Oct-07 23:37
Colin Angus Mackay22-Oct-07 23:37 
GeneralRe: insert command Pin
sindhutiwari23-Oct-07 0:04
sindhutiwari23-Oct-07 0:04 
GeneralRe: insert command Pin
Colin Angus Mackay23-Oct-07 0:11
Colin Angus Mackay23-Oct-07 0:11 
GeneralRe: insert command Pin
sindhutiwari23-Oct-07 1:18
sindhutiwari23-Oct-07 1:18 
AnswerRe: insert command Pin
Kschuler23-Oct-07 5:53
Kschuler23-Oct-07 5:53 
QuestionExecuting querys in distributed server Pin
Vipin.d22-Oct-07 20:48
Vipin.d22-Oct-07 20:48 

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.