我已经实现了用ADOX动态创建表,但是原来的数据库中还有一些查询表,我需要动态创建这些查询表,不知道用ADOX如何动态创建查询表呢?

解决方案 »

  1.   

    304323 ACC2002: How to Use ADOX to Create an SQL Pass-Through Query 
    http://support.microsoft.com/kb/304323/
      

  2.   

    只是SQL字符串不同而已,自己改改就行了
      

  3.   

    'Modify the following connection string to reference an existing DSN for
     'the sample SQL Server PUBS database.  cmd.Properties _
         ("Jet OLEDB:Pass Through Query Connect String") = _
           "ODBC;DSN=myDSN;database=pubs;UID=sa;PWD=;"
    这句我不懂阿,DSN database UID PWD 都要怎么设置阿
      

  4.   

    这句不用加
    CommandText写查询的SQL就可以了