Well I have been trying to get this problem sorted for a few weeks, have tried rebuilding a xp pro machine and reinstalling sql 2000 server, still no go. The same exe file except for the SQL server name is being used on 2 xp machine one XP Home and one XP Pro the XP home works the XP Pro does not. the Stored procs did not work until I install delphi 2007 and was still runing the exe I orginally put on the machine. The stored proc gets a string param.
I have done a sql trace on the two machines and there also seems to be a lot of login and logout auditing happening on the machine it does not work on although all auditing is turned off on the server. I have the full log for each machine of just starting the program up and getting to the security screen.
below are the two line relevant to the stored proc im trying to get working.
Working installation
exec sp_executesql N'SELECT SPECIFIC_CATALOG, SPECIFIC_SCHEMA, SPECIFIC_NAME, PARAMETER_NAME, CASE WHEN
IS_RESULT=''YES'' THEN ''RESULT'' ELSE PARAMETER_MODE END, DATA_TYPE, COALESCE(CHARACTER_MAXIMUM_LENGTH,
NUMERIC_PRECISION), NUMERIC_SCALE, ORDINAL_POSITION, CONVERT(BIT,1) FROM INFORMATION_SCHEMA.PARAMETERS WHERE
(SPECIFIC_CATALOG = @P1 or (1=2)) AND (SPECIFIC_SCHEMA = @P2 OR (1=2)) AND (SPECIFIC_NAME = @P3 or (1=2)) AND
(PARAMETER_NAME = @P4 or (1=1)) ORDER BY SPECIFIC_CATALOG, SPECIFIC_SCHEMA, SPECIFIC_NAME, ORDINAL_POSITION', N'@P1
varchar(11),@P2 varchar(3),@P3 varchar(13),@P4 varchar(1)', 'Tickets_New', 'dbo', 'sp_GetRegHist', 'A'
exec "sp_GetRegHist" N'ye5256'
Non Working installation
-- network protocol: LPC
set quoted_identifier on
set implicit_transactions off
set cursor_close_on_commit off
set ansi_warnings on
set ansi_padding on
set ansi_nulls on
set concat_null_yields_null on
set language us_english
set dateformat mdy
set datefirst 7
exec [Tickets_New]..sp_procedure_params_rowset N'sp_GetRegHist', 1, N'dbo', NULL
I have tried different components and was not able to get any to a testing stage without errors like, can not be done with a unidirectional dataset ...
all help greatly appreciated.
Rodney