How to connect excel to sql server by VBA Code, fix ADODB

preview_player
Показать описание
This video, I use Microsoft Excel 2016 connect to sql server 2014 by VBA Code and add ADO (ActiveX Data Object), but you can use other version(Excel 2007, Excel 2010, Excel 2013) for connecting excel with sql server. I hope this video can help you some .
Рекомендации по теме
Комментарии
Автор

i have problem when i try to run this code in vba and then run time error '3001' Arguments are of the wrong type or out of acceptable range or are in conflict with one another.

IkfaYass
Автор

Thanks a lot man, that was really helpful.

devops_junkie
Автор

This was very helpful to me. Thank you.

forum
Автор

Hi thank you for the video, I am getting the following errr while executing. ". Error when compiling: Function call on the left side of the assignment must return the type Variant or Object". and does it work exactly the same with mysql as well? waiting for your reply

renukapasupuleti
Автор

I am getting run time error for cn.open strconn.

error - data source name not found and no default driver specified

a.rakeshpatro
Автор

getting run time error data source name not found and no default driver specified.., please help

raviyadav-ocbv
Автор

Salut je une petite problème et le problème est que je voulais connecté les tables Access sur des UserForm de Excel. Merci pour votre réponse

reagansendwe
Автор

Hello, I need a codigfo in vba to get the data from the Access database and put it in the SQL server, always overlapping every new incersion, thanks in advance. weber

weberrodrigues
Автор

ActiveX is no longer supported in Office/Win 64bit editions. So you have to use ODBCConnection object which is inbuilt into Excel. ActiveX is dead!

LatinoTropico
Автор

@E Angkor - wow, awesome! could you please add excel/oracle connection? I've got an error in my macro after installed Windows 10. (Runtime error '-2147467259 (80004005)': Error while trying to retrieve text for error ORA-01019)

I've already test with...
MSDAORA.Oracle
MSDAORA.1
OLEDB and so on..

rokrman
Автор

Could you please share the source with us?

JobQuestUnveiled