CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Mar 2010
    Posts
    22

    HELP: Why EXcute() of CDaodatabase does not work with "CREATE TABLE" sql

    Using CDaodatabase and CDaoRecordset to work with Sql2000 personal.

    sql = _T("SELECT * INTO YOU FROM MY WHERE 1=2");
    db.Execute(sql);

    Excute() is doing well with copying a table, but

    sql = _T("CREATE TABLE THEY (DATES Long NOT NULL PRIMARY KEY,CROSS Long NULL);");
    db.Execute(sql);

    Excute( ) does not work!!! it does not work with "CREATE TABLE" sql!!!!

    Why??
    Last edited by genliu777; November 16th, 2011 at 08:52 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured