M
Mike
I need to send an entire datatable to SQL Server for processing. There
isn't a lot of records (maybe 100 at the most) at any given time. What
would be the best and simplest way to set this up?
My idea was to populate a temp table with the datatable and use a query
to pull the records out that I need. Just not sure of how to go about
this.
I created a sp with parameters for each field (155). This sp then
creates a temp table and runs in INSERT command with the parameters as
the values. The last step is to use the temp table in a view that pulls
out the necessary records.
Is there a way to pass the entire datatable at once rather than
executing row by row?
I just really don't want to type out 155 parameter add and value
statements.
Thanks
Mike
isn't a lot of records (maybe 100 at the most) at any given time. What
would be the best and simplest way to set this up?
My idea was to populate a temp table with the datatable and use a query
to pull the records out that I need. Just not sure of how to go about
this.
I created a sp with parameters for each field (155). This sp then
creates a temp table and runs in INSERT command with the parameters as
the values. The last step is to use the temp table in a view that pulls
out the necessary records.
Is there a way to pass the entire datatable at once rather than
executing row by row?
I just really don't want to type out 155 parameter add and value
statements.
Thanks
Mike