I am in a hurry to find out if I can edit a SQL database using VBA. How doable is this? To what extent? What code will I need for this?
To improve the usefulness of the responses, here's what I'm working with:
- SQL skill level = I am trained in SQL. Done several courses (some twice) through different providers. I humbly rate myself as basic/amateur skill. (I was forced to work with vanilla SQL and with TSQL using SSMS compatibility level 90 for many of my early SQL years. Consequently I am aware of but uncomfortable with using more recent features such as OVER)
- VBA skill level = I consider myself above-average experience with VBA (Some forum members may disagree! I freely admit that many of the threads I start would appear highly unusual if you were unaware that they were a mere part in a much larger - and more complex - whole! )
- I have used VBA for several years to read from different types of databases
- Environment = The SQL database in question is on MS SQL Server (2008 r2). I have full admin access to the database and can read data from it using VBA.
So can I UPDATE and INSERT into tables?
Could I DROP a table?
Could I use VBA to remotely add a new table to the SQL DB?
What would be most useful to me now would be a VBA function that would allow me to replace a certain table with a 2d array. But IDK how. And there's the old problem of data types.
Bookmarks