Question : MSSQL proble with insert statement - query will not compile

all the Radactive_ILoad_Images table and fields have red lines under them and inavailed object tags. this same script work one time, but now I cannot compile it in the query
-----------------------
INSERT INTO [CustomerImages] ([ImageID],[EquipmentID],  [ImageData], MIMEType)
SELECT DISTINCT Equipment.[UserId], Equipment.[EquipmentID], [ImageBytes],[MIMEType]
FROM Equipment, [Radactive_ILoad_Images], [Example_E_204__Records]
WHERE Equipment.ID = (SELECT MAX(ID) FROM Equipment)
 AND [ConfigurationInternalCode] = 'Ex_E_204_ILoad1'
 AND ResizeInternalCode = 'Thumb1' AND ImageId = (SELECT MAX(ImageId) FROM Radactive_ILoad_Images)

Answer : MSSQL proble with insert statement - query will not compile

this means that THAT object name does not exist (any longer?) or the login does not have permissions to it.
please double (aka triple)- check the table names, resp the db you are connected to.
Random Solutions  
 
programming4us programming4us