Click here to Skip to main content
15,887,341 members
Home / Discussions / Database
   

Database

 
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 
AnswerRe: Executing querys in distributed server Pin
pmarfleet22-Oct-07 20:59
pmarfleet22-Oct-07 20:59 
GeneralRe: Executing querys in distributed server Pin
Vipin.d22-Oct-07 21:23
Vipin.d22-Oct-07 21:23 
GeneralRe: Executing querys in distributed server Pin
pmarfleet22-Oct-07 21:38
pmarfleet22-Oct-07 21:38 
GeneralRe: Executing querys in distributed server Pin
Vipin.d22-Oct-07 22:32
Vipin.d22-Oct-07 22:32 
Questionin sql server 2005 i need to send e mails periodically. Pin
prasadbuddhika22-Oct-07 19:51
prasadbuddhika22-Oct-07 19:51 
AnswerRe: in sql server 2005 i need to send e mails periodically. Pin
neeraj_indianic22-Oct-07 20:18
neeraj_indianic22-Oct-07 20:18 
AnswerRe: in sql server 2005 i need to send e mails periodically. Pin
Marek Grzenkowicz22-Oct-07 23:51
Marek Grzenkowicz22-Oct-07 23:51 
Question[SOLVED] Create a database in Microsoft SQL Server 2005 Pin
CodingLover22-Oct-07 18:57
CodingLover22-Oct-07 18:57 
AnswerRe: Create a database in Microsoft SQL Server 2005 Pin
CodingLover22-Oct-07 20:04
CodingLover22-Oct-07 20:04 
QuestionData driven schedule with Reporting Services Pin
deemikey22-Oct-07 14:10
deemikey22-Oct-07 14:10 
QuestionSQL Query Pin
Giri K22-Oct-07 13:07
Giri K22-Oct-07 13:07 

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.