I'm running the following SQL inside a cfquery tag
INSERT INTO Meeting_RFPMeetings (RFP_ID, Meeting_ID, Inserted, Create_UserID)
SELECT 21, 15835, {ts '2012-02-09 14:08:28'}, 42126
UNION ALL
SELECT 21, 15917, {ts '2012-02-09 14:08:28'}, 42126
UNION ALL
SELECT 21, 17052, {ts '2012-02-09 14:08:28'}, 42126
but it only inserts one row to the database. When I run the query in Query Analyzer it inserts 3 row. I'm using a loop and queryparam's in my actual statement, but even this version fails.
I'm using this code to insert data on another server and it works fine, but here even a
INSERT INTO TABLE (ID)
SELECT ID FROM TABLE1
only inserts one row.
The database server is MSSQL 2000
I tried finding a setting in my DSN but nothing stood out to me as to why it wouldn't be working