My company has recently updated out ERP and databases from SQL 7.0 to SQL 2000. I am having trouble with a stored procedure which worked under the old platform. The proc populated a table which is used for reporting. It involves an INSERT <table>
SELECT ()
The select statement is valid on its own, but the full insert fails due to an invalid column name or wrong number of values. The destination table has an IDKey field which is just sequential, this is the only field which is not included in the insert statement. SQL 7.0 always added the IDKey on its own, is SQL 2000 different in this respect? Am I going to have to modify the procedure to sequentially assign and write the IDKey, or is there a trigger or setting somewhere that needs to be changed to have the IDKey assigned for each row?
Thanks.
SELECT ()
The select statement is valid on its own, but the full insert fails due to an invalid column name or wrong number of values. The destination table has an IDKey field which is just sequential, this is the only field which is not included in the insert statement. SQL 7.0 always added the IDKey on its own, is SQL 2000 different in this respect? Am I going to have to modify the procedure to sequentially assign and write the IDKey, or is there a trigger or setting somewhere that needs to be changed to have the IDKey assigned for each row?
Thanks.