you need to use the include files and libraries that comes with SQL Server 2000 instead of the ones that came with VC6.0. You might need to install the development tool from  SQL Server 2000 CD. Add the proper include path to C:\Program Files\Micosoft SQL Server 2000\80\Tools\DevTools\includeAlso seehttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/odssql/ods_6_con_01_22sz.asphttp://support.microsoft.com/default.aspx?kbid=205415

解决方案 »

  1.   

    Using xp_srv_paraminfo_sample
    This Microsoft® Visual C++® sample shows how to analyze parameters from an extended stored procedure call, and post a result set to the client about each parameter and parameter value.Default Location
    x:\Program Files\Microsoft SQL Server\80\Tools\Devtools\Samples\ODS\Xp_paramRunning the Sample
    To create the extended stored procedure DLLs for these samples, in the appropriate sample subdirectory, open the supplied .dsw file in Microsoft Visual C++. To run this program 1、Build the Xp_param.dll.2、Place the compiled Xp_param.dll in the Microsoft SQL Server\80\Tools\Binn directory.3、Start the server.4、Start SQL Query Analyzer, and then run the Xp_param.sql script.