Robert said:
Anyone have some VBA script for creating and populating an SQL Server
2000 table in a database with the data in the Excel spreadsheet?
Robert:
Here are a couple of links that might be useful
http://www.dailydoseofexcel.com/archives/2006/01/21/create-mdb-tables-in-vba/
http://www.dailydoseofexcel.com/archives/2005/12/02/create-insert-into-sql-statements/
The first one describes creating and populated Jet databases, but the
populating part should be the same for any database. I basically make an
INSERT INTO statement and Execute it. I don't show the connection string on
that post, but it wouldn't do you any good anyway because you'll have to
make a connection string for SQLServer.
The second link is a different version of the MakeInsertInto function. I
don't remember all the changes, but if you use the function, I thought it
would be best to show you both versions.
Sorry that's not a very good answer to your question, but hopefully it gets
you started.