I have a recordset that I get from one data source. What I would like to be able to do is a SELECT INTO or something to make a table out of it in SQL Server. Would this be possible?
To make a new table in SQL you would need to run a Create Table SQL statement. You would need the properties of each column from the recordsource and then pass them into your SQL statement (Type and size would do). You also need to be careful with your datatypes because certain fields may be created as numeric when they may actually be doubles, singles etc.
I actually decided to make a stationary table and delte the data when I'm done with it.
Oh, ok, I should have realized. You're saying insert each column in the recordset, like rst![column1]. That makes sense. In my haste, I had got frustrated and made arrays for each column and assigned the data to arrays. I think I will change it to your way.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.