Integrating Excel and C#
How to do the same stuff in Excel and C#
Sunday, November 27, 2016
How to make an ADO Connection to SQL Server
Microsoft continuos updates the drivers for ADODB so depending on which version of SQL use: '
Dim Cnxn As ADODB.Connection
Open connection strCnxn = "Provider='sqloledb';Data Source='MySqlServer';" & _ "Initial Catalog='Pubs';Integrated Security='SSPI';"
Set Cnxn = New ADODB.Connection
Cnxn.Open strCnxn
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment