The object name contains more than the maximum number of prefixes. The maximum is 3

后端 未结 9 2183
醉梦人生
醉梦人生 2020-12-20 12:15

My stored procedure is trying to write a record in to a database on another Server. The statement is here:

IF @Builds > 0
   BEGIN
        SET @DPU = @Fa         


        
9条回答
  •  天命终不由人
    2020-12-20 13:22

    Please change the tables from the start and try to insert with the normal way

    Use ManufacturingPortal 
    
    IF @Builds > 0
    
       BEGIN
    
           SET @DPU = @Failures / @Builds
    
           INSERT INTO OPC.WriteRequests (ID, RegisterID, Value, RequestedDate, IsCompleted)
           VALUES(@PLCID, 'F8:10' , CAST(@DPU AS NUMERIC(10,2)), GETDATE(), 0)    
    
       END 
    

提交回复
热议问题