ralphtrent
Programmer
Hi
I have a table that can get very large very quick. I want to create an "archiving" procedure. The database in on SQL 2000. My origional plan was to bcp the data out and the bcp the data in, but i am getting an error when I do that. It says that 'the file specified can not be found', but that is wronge because if I echo out my command that I am using to the BCP out and run that in a command window, it works, so I am not sure what the error is really saying.
So my alternate way of doing this is to select all the data and put it in to a Data Table and then write the data to a file tabbed delimated. Now I want to get the data in to the archive table on the datasource. I was thinking about writting an insert statemenent for each line in the file, but I will not know which datatype the data is, so I will not know when I need quotes and not need them.
So my question is, if I have a datatable filled with data, is there a way to put that data in another table on the datasource?
Thanks
I have a table that can get very large very quick. I want to create an "archiving" procedure. The database in on SQL 2000. My origional plan was to bcp the data out and the bcp the data in, but i am getting an error when I do that. It says that 'the file specified can not be found', but that is wronge because if I echo out my command that I am using to the BCP out and run that in a command window, it works, so I am not sure what the error is really saying.
So my alternate way of doing this is to select all the data and put it in to a Data Table and then write the data to a file tabbed delimated. Now I want to get the data in to the archive table on the datasource. I was thinking about writting an insert statemenent for each line in the file, but I will not know which datatype the data is, so I will not know when I need quotes and not need them.
So my question is, if I have a datatable filled with data, is there a way to put that data in another table on the datasource?
Thanks