ontheDB
09-24-03, 13:07
| Hi, How would you populate a table from an sql server ? I'm not that familiar w/ Excel, Where would I put my connection/SQL statements ? e.g. Set cmd = CreateObject("ADODB.Command") Set rs = CreateObject("ADODB.Recordset") Set cn = CreateObject("ADODB.Connection") cn.Provider = "SQLOLEDB" cn.ConnectionString = "server=blah;database=blah;uid=blah;pwd=blah" cn.ConnectionTimeout = 600 cn.Open |