Insert Data from VBA UserForm to SQL Server Database in Excel

preview_player
Показать описание
In this video, I will demo how to Insert Data from VBA UserForm to SQL Server Database in Excel

======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
Check out our new online store for some programming merchandise!
Рекомендации по теме
Комментарии
Автор

If anyone else has an issue connecting to the SQL server (at 2:51)you can also do it this way:
con.Open "Driver={SQL Security=true;"
Where for server is the specific Server name. This can be found under the properties option on your SQL database. Same with the Database name. SQL default is that Windows authentication will validate the server. To connect you would use the "Integrated Security=True;"

Arthur-eble
Автор

Hello, nice video. I just didn't understand the part where you check if the INSERT was successful. How does the rowsAffected changes its value?

MrBalthazar