I would like to insert a range of values into a pair of SQL tables, with data requiring some pre-processing (like attaching a common time stamp and some revamp of the data in both tables). Ideally I prefer to shield my code from direct SQL statements, opting to use stored procedures instead. How could I pass these values to a stored procedure?
Thank you.
EDIT I am using SQL Server 2012 but want to be compatible with 2008. If there is a 2012-specific solution, please let me know, I will gladly consider it.