Select into table in another database that is password protected?

后端 未结 2 1043
天涯浪人
天涯浪人 2021-01-14 12:14

In Microsoft Access 2003 and Visual Basic 6 I\'m trying to copy a table to another access database that is password protected like this...

Select * INTO tabl         


        
2条回答
  •  生来不讨喜
    2021-01-14 12:38

    If doesn't work this

    SELECT * INTO [;PWD=TestPass;DATABASE=C:\Docs\database2.mdb].table2 FROM table1
    

    Try to add "" like this

    SELECT * INTO [";PWD=TestPass;DATABASE=C:\Docs\database2.mdb"].table2 FROM table1
    

    It worked for me (Delphi with jet SQL)

提交回复
热议问题