Search Result

Collapse
8 results in 0.0043 seconds.
Keywords
Members
Tags
oledb
  •  

  • How to fix "Syntax error in INSERT INTO statement" using OLEDB?

    hi I am working on an application that manages the data in a access database. but i cant seem to get past this error.

    When i try to run it it says:
    "Syntax error in INSERT INTO statement" syntax error, I have made all the fields in database TEXT(255) so it cant be that.

    any help regarding this will be much appreciated, i am new to datasets and would love any help or guides i can get on the matter....
    See more | Go to post

  • Ed Pisa
    started a topic Insert Command Syntax Error

    Insert Command Syntax Error

    Hello,

    I have been working with this problem now for several days. I can delete and Update my data but I can not get it to insert a new record. I receive the syntax error insert into. I am not using any reserved words and I have not been able to find my answer googling like crazy. Any help would be greatly appreciated. below is the code that seems to give me the problem.

    Code:
    ElseIf NEWMODE = True Then
    ...
    See more | Go to post

  • senthil kumar v
    started a topic Read hyphen from a CSV file

    Read hyphen from a CSV file

    I have a small application which reads a CSV file using OLEDB dataadapter into a datatable. I have a scenario where the cells can contain only a hyphen(-). But the dataadapter reads it as zero(0).

    Please suggest a solution.Thanks .
    See more | Go to post

  • How to create a dataset from access database at runtime

    I want to create a dataset at runtime from an access database (or another database) but at designtime I don't know the structure.

    Ideally what I want to do is:

    Code:
    Dim ds as new DataSet = OpenAccessDB("MyAccessDB.mdb")
    or

    Code:
    Dim ds as new DataSet = OpenDB("MyConnectString")

    At the moment I only want to read in the database,...
    See more | Go to post

  • Syntax error in OLEDB Insert statement with parameters

    Hullo,

    I have a quite simple piece of code that returns a syntax error in the query execution: Have you got any idea about what might be wrong?

    Code:
             public void SQLCommandWithParam(string name, byte[] image)
                {
                OleDbCommand sqlCommand1 = new OleDbCommand();
                System.Data.OleDb.OleDbConnection myOleConnection = new System.Data.OleDb.OleDbConnection();
    ...
    See more | Go to post
    Last edited by tlhintoq; Mar 23 '10, 04:42 PM. Reason: [CODE] ...Your code goes between code tags [/CODE]

  • msjonathan
    started a topic Read all values excel as string

    Read all values excel as string

    Hej,
    I can read an excel 2007 file, but it reads 13:15 as a date. So I searched for a good connection string on Connectionstrin gs.com and found one I had to add an extended property IMEX=1

    Code:
     ConnectionsString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" +
     pImportTemplate.Location + ";Extended Properties=\"Excel 8.0;HDR=YES;IMEX=1\"";
    And I did so but when...
    See more | Go to post

  • msjonathan
    started a topic Update excel file with oledb
    in .NET

    Update excel file with oledb

    Hej hej,

    I am trying to write an SQL update statement where I want to update an Excel file. But my Update statement is not valid, I have to use set .... But I do not know the columns in the Excel file, those can be different each time.
    First I read an excel file with this code: http://codehill.com/2009/01/reading-...s-using-oledb/

    I change some things in the DataTable and then I want to write to a copy of the...
    See more | Go to post

  • Infog
    started a topic OLE DB connection pooling

    OLE DB connection pooling

    I would like to use a client-side connection pool with my VB.NET application. MS Access is used for the database. One user (a V.P.) is running the applicationvia Parallels on a Mac, which makes any delay much more noticeable.

    However, the interwebs are a little sparse on implementation information for OLE DB connection pooling.As far as I can tell, the key here is to enable connection pooling with ODBC 3.0, via SQLSetEnvAttr.
    ...
    See more | Go to post
Working...