Click here to Skip to main content
15,894,017 members
Home / Discussions / Database
   

Database

 
GeneralStrongly typed DataSet from a web service Pin
bjoernen15-Apr-04 2:51
bjoernen15-Apr-04 2:51 
GeneralDuplicate a SQL Server table Pin
Robby15-Apr-04 2:11
Robby15-Apr-04 2:11 
GeneralRe: Duplicate a SQL Server table Pin
RichardGrimmer18-Apr-04 22:26
RichardGrimmer18-Apr-04 22:26 
GeneralRe: Duplicate a SQL Server table Pin
-Dr_X-20-Apr-04 10:02
-Dr_X-20-Apr-04 10:02 
GeneralSQL query required Pin
Shah Shehpori15-Apr-04 1:10
sussShah Shehpori15-Apr-04 1:10 
GeneralRe: SQL query required Pin
raj_sarna15-Apr-04 1:41
raj_sarna15-Apr-04 1:41 
GeneralRe: SQL query required Pin
Colin Angus Mackay15-Apr-04 1:52
Colin Angus Mackay15-Apr-04 1:52 
GeneralAdding new rows to empty table in C# Pin
Craig Bumpstead14-Apr-04 21:21
Craig Bumpstead14-Apr-04 21:21 
Hi,

I am having trouble adding new rows to an empty MS Access table.
I manually created the table in MS access named server and created two
columns Date & Time.
When I run the following code I get: "Syntax error in INSERT INTO
statement".

Any help would be great.
Thank you.

OleDbCommand fgSelectCommand = conn.CreateCommand();

fgSelectCommand.CommandText = "SELECT TOP 1 * FROM Server";

OleDbDataAdapter fgADOAdapter = new OleDbDataAdapter();

OleDbCommandBuilder fgCommandBuilder = new
OleDbCommandBuilder(fgADOAdapter);

fgADOAdapter.SelectCommand = fgSelectCommand;

DataTable fgDataTable = new DataTable("Server");

fgADOAdapter.FillSchema(fgDataTable, SchemaType.Source);

DataRow fgDataRow = fgDataTable.NewRow();

fgDataRow["Date"] = logWeb.LogDate;

fgDataRow["Time"] = logWeb.LogTime;

fgDataTable.Rows.Add(fgDataRow);

fgADOAdapter.Update(fgDataTable);


GeneralRe: Adding new rows to empty table in C# Pin
-Dr_X-15-Apr-04 16:36
-Dr_X-15-Apr-04 16:36 
GeneralRe: Adding new rows to empty table in C# Pin
Craig Bumpstead18-Apr-04 12:19
Craig Bumpstead18-Apr-04 12:19 
Generalrun time error Pin
williamchou14-Apr-04 16:12
williamchou14-Apr-04 16:12 
GeneralRe: run time error Pin
Nino_114-Apr-04 16:19
Nino_114-Apr-04 16:19 
GeneralRe: run time error Pin
williamchou14-Apr-04 16:56
williamchou14-Apr-04 16:56 
GeneralRe: run time error Pin
Mike Dimmick15-Apr-04 2:26
Mike Dimmick15-Apr-04 2:26 
GeneralProblems with Sandbox Mode Pin
blakeb_114-Apr-04 9:23
blakeb_114-Apr-04 9:23 
GeneralRe: Problems with Sandbox Mode Pin
monrobot1314-Apr-04 10:00
monrobot1314-Apr-04 10:00 
GeneralRe: Problems with Sandbox Mode Pin
Mike Dimmick15-Apr-04 2:28
Mike Dimmick15-Apr-04 2:28 
GeneralRe: Problems with Sandbox Mode Pin
Chris Meech16-Apr-04 9:26
Chris Meech16-Apr-04 9:26 
GeneralReporting Services Pin
Kant14-Apr-04 9:09
Kant14-Apr-04 9:09 
GeneralSELECT and UPDATE in one statement Pin
iluha14-Apr-04 4:39
iluha14-Apr-04 4:39 
GeneralRe: SELECT and UPDATE in one statement Pin
Janya26-Apr-04 14:44
Janya26-Apr-04 14:44 
GeneralProblem with table format when pulled from SQL Server to Sql Server CE, using RDA Pull Method Pin
JustChiLLin14-Apr-04 1:13
JustChiLLin14-Apr-04 1:13 
Generalthe problem of @@TRANCOUNT--how to eliminate the no.266 error Pin
williamchou13-Apr-04 23:33
williamchou13-Apr-04 23:33 
GeneralRe: the problem of @@TRANCOUNT--how to eliminate the no.266 error Pin
Mike Dimmick14-Apr-04 5:28
Mike Dimmick14-Apr-04 5:28 
GeneralSET DATEFORMAT Pin
monrobot1312-Apr-04 19:13
monrobot1312-Apr-04 19:13 

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.