在VB中打开受密码保护的SQL Server数据库 [英] opening passwrod protected SQL server database in VB
本文介绍了在VB中打开受密码保护的SQL Server数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在VB中使用以下代码打开Access数据库:
Hi All,
I am using the following code in VB to open access database:
With objAcc
.OpenCurrentDatabase App.Path & "\SerialTagging.accdb", True, "pass123"
.DoCmd.TransferText acExportDelim, , "FinalOutput", App.Path & "\Output\BOSS_SN_MCC.csv", -1
.CloseCurrentDatabase
End With
我想转换相同的For SQL Server数据库..
任何帮助或建议,将不胜感激.
问候,
Raj
I want to convert the same For SQL Server database..
Any help or suggestion would be greatly appreciated.
Regards,
Raj
推荐答案
您需要使用 ^ ]或 ^ ]
在此处检查连接字符串.[ ^ ].
You need to useOledbConnection
[^] orSqlConnection
[^]
Check connection strings here[^].
这篇关于在VB中打开受密码保护的SQL Server数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文