I have deployed my BAM activities and they (tables/stored procs) exist in BAMPrimaryImport database. But I'm getting an error when the process runs:
TDDS failed to execute event. Could not find stored procedure 'dbo.bam_xxx_PrimaryImport'.**
I ran the SQL Profiler and it shows it's trying to run the command below against BizTalkDTADb database!
exec TDDS_GetColumnInfo @objectName=N'[dbo].[bam_xxx_PrimaryImport]'**
Apparently bam_xxx_PrimaryImport does not exist in BizTalkDTADb .
So why it's trying to run that command against BizTalkDTADb database but not BAMPrimaryImport?