HOWTO: Debug OLE DB Providers That Are Called From SQL Server 7.0ID: Q222123
|
This article provides tips for debugging OLE DB Providers which are called from SQL Server version 7.0. Moreover, SQL Server 7.0 can perform distributed queries by using the OPENROWSET and OPENQUERY Transact SQL functions.
HRESULT FinalConstruct()
{
if (!IsDebuggerPresent())
{
char szDebuggerCmd[100];
wsprintf(szDebuggerCmd, "C:\\Program Files\\Microsoft Visual Studio\\Common\\MSDev98\\Bin\\MSDEV -p %ld", (long)GetCurrentProcessId());
PROCESS_INFORMATION pi;
STARTUPINFO si;
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
si.lpDesktop = "Winsta0\\Default";
CreateProcess(NULL, szDebuggerCmd, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi);
Sleep(5000);
_asm int 3
}
return FInit();
}
Additional query words:
Keywords : kbATL kbDatabase kbOLEDB kbProvider kbSQLServ kbGrpVCDB
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: July 2, 1999