Ok,
Ive hit a brick wall! I am doing the following actions:
1. Upload a .CSV file from client to server (done)
2. Copy data from .CSV file into temporary table SQL server 2000 database (done)
3. Copy data from temporary table into main table (Code written to do that)
4. Delete temporary table (code written to do that)
5. Delete uploaded .CSV file from server, and
6. Inform user that the process is complete.
I am using a stored procedure to carry out step 2. In its current form everything is working out correctly. I need to modify step 2 inorder to handle multiple simultaneous uploads.
My solution was to create a temporary table for each user uploading and then transfer the data to the main table. Again I wish to use stored procedures. The catch is that I dont know the name of my database table at the beginning, as a unique name is generated for each upload. I have tried passing the table name into the stored procedure as a parameter, but when I go:
I get an error telling me that "@TableName" is not declared.
Any suggestions on how to get around this little problem?
Mike55
Ive hit a brick wall! I am doing the following actions:
1. Upload a .CSV file from client to server (done)
2. Copy data from .CSV file into temporary table SQL server 2000 database (done)
3. Copy data from temporary table into main table (Code written to do that)
4. Delete temporary table (code written to do that)
5. Delete uploaded .CSV file from server, and
6. Inform user that the process is complete.
I am using a stored procedure to carry out step 2. In its current form everything is working out correctly. I need to modify step 2 inorder to handle multiple simultaneous uploads.
My solution was to create a temporary table for each user uploading and then transfer the data to the main table. Again I wish to use stored procedures. The catch is that I dont know the name of my database table at the beginning, as a unique name is generated for each upload. I have tried passing the table name into the stored procedure as a parameter, but when I go:
Code:
insert into @TableName Values(1,1,1)
I get an error telling me that "@TableName" is not declared.
Any suggestions on how to get around this little problem?
Mike55