That's really a pretty vague request. It's like stopping to ask for directions and saying:"I'm trying to drive somewhere, how do I get there?" All we really know is:- You have Excel- You want to copy it to a database. The fact is: SQL isn't a "database", it's a LANGUAGE(Structured Query Language)A language used to write to databases like Oracle, Ingres, SQLServer and even Microsoft Access. So: you don't "write to SQL", you instead write SQL statements that write to a table in a database. To write to a table in a database, you have to have Excel connect to the database(and provide valid authentication)then you have to know the name of the tables, table structure, and any constraints before you can generate the SQL commands to write to the database. A database server like Oracle or SQLserver can have multiple databases. In my company, we have two Oracle servers.One for Development and one for Production.On each server, there are 10 separate databases.I have write access to two of them, and Read-Only access to three others.One of the databases I use consists of 262 tables. The databases do not share data between each other. All that being said:There are MANY approaches to writing Excel data to an external database.In some cases, you can connect an Excel table to a database table directly.In other cases, you must understand SQL as well as VBA in order to use VBA to write the SQL statement and execute it. So: taking on this task as someone "new to VBA" is pretty huge if you're not already well versed in SQL and your specific database. Before any of us could begin help, we'd need to know more of your situation.What database "engine" are you using?have you connected Excel to it previously?Do you know anything about SQL or any other type of programming?
Paul----------------------------------------- “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.” - John Wesley ----------------------------------------- On Friday, August 26, 2016 2:24 AM, ALL IS WELL HELP ME <excellea...@gmail.com> wrote: Dear Friends, I'm New to excel VBA, I'm trying to update/insert Sql Table from Excel. That is whenever i insert or update Excel Table it should automatically update/insert to SQL. Thanks,7092063444 -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at https://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/d/optout. -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at https://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/d/optout.