SQL Bulk Insert has been tuned over the years to work well with the Microsoft .NET Framework. This tutorial shows you how to take advantage of its power. SQL Bulk Insert is not a new technology. In ...
If I have a variable rs ("ColumnA") that is an empty string "" and I want to insert it into a table as a NULL instead, isn't there a SQL function that would ...
I've had the same issue before and resorted to using a query that does the insert then returns @@identity. You can do it without a full blown stored procedure and just using an SqlCommand, IIRC.
proc sql; create table proclib.paylist (IdNum char(4), Gender char(1), Jobcode char(3), Salary num, Birth num informat=date7. format=date7., Hired num informat=date7 ...