2

I don't really see where I'm going wrong with this fairly simple query:

DECLARE @id int;
SET @id = 84;

INSERT INTO Activity_Ax_Account_Numbers
VALUES(@id,'N/A');

INSERT INTO Activity_Files
VALUES(@id,0x66696C6C65722073747566660D0A,'Filler',0);

INSERT INTO Activity_Settings
VALUES(@id,0,0,0);

I have to do the above a couple of times as I need to transfer data from an old database to a new one by hand (Don't ask, that's just how it is T_T). So the above is something I'm going to do a lot and instead of doing this by hand I thought I could just make a simple query I could run as then I only have to do one row of data by hand for every entry instead of four.

But I get the error in the title when I try to execute the query. It's an MS SQL 11.0 server that I connect to via HeidiSQL.

TT.
  • 15,774
  • 6
  • 47
  • 88
OmniOwl
  • 5,477
  • 17
  • 67
  • 116

0 Answers0