Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.3k views
in Technique[技术] by (71.8m points)

sql server - ADO VBA Connecting to an Azure SQL database without installing a driver

I am using this connection string to connect to an Azure SQL database from inside Excel and everything works fine because I have installed Microsoft's OLE DB driver.

I was wondering if it is possible to connect without installing this driver? I have many users that should do it and it is not practical to ask IT for many installations. The users themselves are not a local admin on their Windows 10 so I am looking for a workaround

'connection string (azure)
Public Const sConnectionStringAzure = "Provider=MSOLEDBSQL;" & _
                        "DataTypeCompatibility=80;" & _
                        "Server=tcp:myserver.database.windows.net,1433;" & _
                        "Database=mydatabase;" & _
                        "Uid=BasicUser@myserver;" & _
                        "Pwd={abc};" & _
                        "Encrypt=yes;Connection Timeout=30;"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...