Click here to Skip to main content
15,918,003 members
Home / Discussions / Database
   

Database

 
GeneralRe: Very easy question Pin
Guinness4Strength24-Jun-04 6:29
Guinness4Strength24-Jun-04 6:29 
GeneralRe: Very easy question Pin
Steven Campbell24-Jun-04 7:23
Steven Campbell24-Jun-04 7:23 
GeneralRe: Very easy question Pin
Snorri Kristjansson27-Jun-04 22:46
professionalSnorri Kristjansson27-Jun-04 22:46 
GeneralRe: Very easy question Pin
Grimolfr28-Jun-04 8:10
Grimolfr28-Jun-04 8:10 
Generaldatabase Error Pin
Anonymous24-Jun-04 0:50
Anonymous24-Jun-04 0:50 
Generaldouble click on the row of datagrid and retrieve the data from the SQL server Pin
viviansm23-Jun-04 20:47
viviansm23-Jun-04 20:47 
GeneralACCESS please Pin
Anonymous23-Jun-04 15:59
Anonymous23-Jun-04 15:59 
GeneralAdd a semi-colon (;) to the end of my select statement Pin
inyoursadachine23-Jun-04 11:17
inyoursadachine23-Jun-04 11:17 
Hi,
I'm making an OleDbConnection using the Sybase ASE OLE DB Provider with the following code:
_____________________________________________________________________
OleDbConnection oDbConn = new OleDbConnection(sConnectionString);
OleDbCommand oCmd = new OleDbCommand("SELECT * from master.table;", oDbConn);
OleDbDataAdapter oData = new OleDbDataAdapter(oCmd.CommandText, oConn);
DataTable oTable = new DataTable("master.table");
oData.Fill(oTable);
__________________________________________________________________

The database I'm connecting to -requires- a semi-colon at the end of the SELECT command. I've tried ending my SELECT with a semi-colon (see above) but one of my OleDb objects is removing it before it is sent to the database as I can see the following databas error when running my program:

SQL Parser: parse error at line 1.
Command: SELECT * from master.table
Issued by:

How do I control the SQL statements sent to the database via the OleDbConnection so I can add a semi-colon to my SELECTs??

TIA,
Matt


GeneralRe: Add a semi-colon (;) to the end of my select statement Pin
VenkatFor.NET24-Jun-04 3:48
VenkatFor.NET24-Jun-04 3:48 
GeneralRe: tell me some idea Pin
Christian Graus23-Jun-04 16:50
protectorChristian Graus23-Jun-04 16:50 
GeneralRe: tell me some idea Pin
Christian Graus24-Jun-04 12:43
protectorChristian Graus24-Jun-04 12:43 
GeneralRe: tell me some idea Pin
Dave Kreskowiak25-Jun-04 7:43
mveDave Kreskowiak25-Jun-04 7:43 
GeneralRe: tell me some idea Pin
Dave Kreskowiak25-Jun-04 7:45
mveDave Kreskowiak25-Jun-04 7:45 
GeneralRe: tell me some idea Pin
Christian Graus27-Jun-04 11:16
protectorChristian Graus27-Jun-04 11:16 
GeneralOracle GUID support Pin
Michael Wolski23-Jun-04 4:46
Michael Wolski23-Jun-04 4:46 
GeneralJET download Pin
RChin23-Jun-04 0:56
RChin23-Jun-04 0:56 
GeneralRe: JET download Pin
Dave Kreskowiak25-Jun-04 7:48
mveDave Kreskowiak25-Jun-04 7:48 
GeneralRe: JET download Pin
Graham Bradshaw26-Jun-04 14:16
Graham Bradshaw26-Jun-04 14:16 
GeneralSQLXML & Default parameters Pin
RichardGrimmer22-Jun-04 22:30
RichardGrimmer22-Jun-04 22:30 
GeneralSql Server does not exists or acces denied Pin
pdnitin22-Jun-04 21:09
pdnitin22-Jun-04 21:09 
GeneralRe: Sql Server does not exists or acces denied Pin
Thea Burger22-Jun-04 21:16
Thea Burger22-Jun-04 21:16 
Generalcheck for the duplicate data Pin
viviansm21-Jun-04 20:06
viviansm21-Jun-04 20:06 
GeneralRe: check for the duplicate data Pin
Wilbur J. Pereira21-Jun-04 22:11
Wilbur J. Pereira21-Jun-04 22:11 
GeneralRe: check for the duplicate data Pin
VenkatFor.NET22-Jun-04 3:06
VenkatFor.NET22-Jun-04 3:06 
GeneralPulling the SECOND latest readings for ALL properties in a table! Pin
lostsheep00721-Jun-04 19:48
lostsheep00721-Jun-04 19: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.