What is the best way to write VBA code to connect to SQL Server 2005 from Excel?
Excel file users can run XP, Vista, Win7, and I want to prevent driver installation as much as possible.
I understand that XP uses MDAC, while Vista / Win7 uses DAC. Does this mean that the link to MDAC 2.8 will not work on a Vista machine and vice versa?
Will my VBA code work on both unless I add a link and use late binding, for example. CreateObject ("ADODB.Connection")?
source share