Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find server 'TQCSERVER' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.
การแก้ไขเบื้องต้นผมต้องเปลี่ยน Connection จาก
set conn = CreateObject("ADODB.connection")
conn.open "Driver={SQL Server};Server=TQCSERVER;Database=Mydatabase;UID=sa;PWD=;"
เป็น
set conn = CreateObject("ADODB.connection")
conn.open "Driver={SQL Native Client};Server=TQCSERVER;Database=Mydatabase;UID=sa;PWD=;"