各位大哥,大姐,请问怎样将SQL表中内容转换成ACESS格式,并存储成ACESS文件。

解决方案 »

  1.   

    利用数据转换即可。delphi下就现成的例子。
      

  2.   

    insert into OpenRowSet('microsoft.jet.oledb.4.0',';database=e:\db1.mdb','select * from PchSht')
    select * from PchSht
    即可
      

  3.   

    必须用程序实现 不能用工具的 谢谢大家 有更详细的方法吗?
    nxfbccu()你的方法好像不行啊?能说详细点吗?
      

  4.   

    insert into OpenRowSet('microsoft.jet.oledb.4.0',';database=e:\db1.mdb','select * from PchSht')
    select * from PchSht
    括号中的pchsht是Access中(即db1.mdb中存在的表)必须存在表,也就是说你应该先在db1.mdb中先建pchsht 表
    最后的pchsht是SQL中的原表
      

  5.   

    以下方法可直接产生数据库和表:master..xp_cmdshell 'bcp "gsp.dbo.PchSht" out "e:\db1.mdb" -c -q -U"sa" -P""'
      

  6.   

    再补充一点:
    insert into OpenRowSet('microsoft.jet.oledb.4.0',';database=e:\db1.mdb','select * from PchSht')
    select * from PchSht
    pchsht字段必须跟SQL中一样