I am trying to copy records from one database to another on the same server. It keeps giving me an Invalid Object Name error for the database I am copying from, but the name is correct. Target database is BS_Database and the Source Database is BS_Copy. Here is my query:
Insert into BS_Database.tbl_Training_Attempt_New
([AttemptId]
,[RequirementId]
,[EmployeeCompanyId]
,[TaskId]
,[CourseId]
,[RecordId]
,[StartDate]
,[Score]
,[IsComplete]
,[CompleteDate]
,[IsPassed]
,[Active]
,[TimeInSession])
SELECT
[AttemptId]
,[RequirementId]
,[EmployeeCompanyId]
,[TaskId]
,[CourseId]
,[RecordId]
,[StartDate]
,[Score]
,[IsComplete]
,[CompleteDate]
,[IsPassed]
,[Active]
,[TimeInSession]
FROM BS_Copy.tbl_Training_Attempts_New WHERE
IsPassed = 0