How can I join on a stored procedure?

insert the result of the SP into a temp table, then join: CREATE TABLE #Temp ( TenantID int, TenantBalance int ) INSERT INTO #Temp EXEC TheStoredProc SELECT t.TenantName, t.CarPlateNumber, t.CarColor, t.Sex, t.SSNO, t.Phone, t.Memo, u.UnitNumber, p.PropertyName FROM tblTenant t INNER JOIN #Temp ON t.TenantID = #Temp.TenantID …

Error message: (provider: Shared Memory Provider, error: 0 – No process is on the other end of the pipe.)

Typically, to troubleshoot this, you go to SQL Server Configuration Manager (SSCM) and: ensure Shared Memory protocol is enabled ensure Named Pipes protocol is enabled ensure TCP/IP is enabled, and is ahead of the Named Pipes in the settings Maybe it can help: Could not open a connection to SQL Server Note : If this … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)