Getting Erorr
Feb 28, 2008
hi
below is my procedure but when i execute this i m gettin g following error
Syntax error converting the varchar value 'empbankdetailsBACS' to a column of data type int.
what is problem
-- EXEC sp_GetPaymentMethod 0
CREATE PROCEDURE sp_GetPaymentMethod
@PaymentMethodID int = 0
AS
BEGIN
SET NOCOUNT ON
SELECT
PaymentMethodID,
PM.Descn,
'empbankdetails'+ PM.Descn as 'Descn2',
DateCreated,
LastModified,
0 as 'Value'
INTO
#tmpPaymentMethodGlobalSettings
FROM
t_PayrollPaymentMethod PM, t_GlobalSettings GS
WHERE
PaymentMethodID = 0 OR 0 = 0
ORDER BY
Descn
Declare @SqlString1 varchar(1000)
Declare @SqlString2 varchar(250)
Set @SqlString2 = ''
Declare @Payment integer
Declare @Descn varchar(50)
Declare Payment Cursor for
Select PaymentMethodID
from #tmpPaymentMethodGlobalSettings
Open Payment
FETCH NEXT FROM Payment into @Payment
WHILE @@FETCH_STATUS = 0
BEGIN
Declare @Value int
Select @Descn = Descn2 from #tmpPaymentMethodGlobalSettings where
PaymentMethodID = @Payment
--Set @SqlString1 = '
--Declare @Value int
Select @Value = @Descn from t_GlobalSettings
Update #tmpPaymentMethodGlobalSettings
Set Value = @Value where PaymentMethodID = Convert(varchar(10),
@Payment)
-- exec (@SqlString1)
FETCH NEXT FROM Payment into @Payment
END
CLOSE Payment
DEALLOCATE Payment
Select * from #tmpPaymentMethodGlobalSettings
--Drop Table tmpPaymentMethodGlobalSettings
IF @@error <> 0
RETURN(0)
ELSE
RETURN(1)
END
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
View 7 Replies
Aug 30, 2006
Hi All,
I installed SQL Express Advanced Services, and when i try to create Data Base or any connection, it shows me this message..http://www.unlimitednetwork.net/data/sql_express_error.JPG
I don't know what to do , and what does it mean that SQL Express requier to function properly!!!!!!!!
Any Help.
Thanks.
View 1 Replies
View Related
May 2, 2001
My DTS package fails with the following error:
DTSRun: Loading... DTSRun: Executing... DTSRun OnStart: DTSStep_DTSActiveScriptTask_1 DTSRun OnFinish: DTSStep_DTSActiveScriptTask_1 DTSRun: Package execution complete. Process Exit Code 9. The step failed.
What does Exit Code 9 means?
View 1 Replies
View Related
Mar 10, 2007
after its saying 100% installed its doing the next error:
http://img171.imageshack.us/img171/3786/8847ig0.gif
please help!
btw here's the log file
################################################## #############################
Starting Service ...
Hebrew_CI_AS
-m -Q -T4022 -T3659
An error occurred while attempting to start the service (1084)
SQL Server configuration failed.
################################################## #############################
17:04:32 Process Exit Code: (-1)
17:04:40 Setup failed to configure the server. Refer to the server error logs and C:WINDOWSsqlstp.log for more information.
17:04:40 Action CleanUpInstall:
17:04:40 C:WINDOWSTEMPSqlSetupBinscm.exe -Silent 1 -Action 4 -Service SQLSERVERAGENT
17:04:40 Process Exit Code: (1060) the currect service are not found as installed service.
17:04:40 C:WINDOWSTEMPSqlSetupBinscm.exe -Silent 1 -Action 4 -Service MSSQLSERVER
17:04:40 Process Exit Code: (0)
17:04:40 StatsGenerate returned: 2
17:04:40 StatsGenerate (0x80000000,0x1,0xf000000,0x200,1033,303,0x0,0x1,0 ,0,0
17:04:40 StatsGenerate -1,Administrator)
17:04:40 Installation Failed.
View 2 Replies
View Related
Oct 2, 2007
Hey guys, I need your generous heart to share something with what I am experiencing. I found the error from Sql Profiler. Here is the result of my trace:
/*w/o runtime*/
declare @P1 int
set @P1=0
exec CP_glmJournalEntry_Save 1, '110802010200', 'To record PPC-Visa transaction, $4,967.39@Php46.22
select @P1
/*w runtime*/
declare @P1 int
set @P1=NULL
exec CP_glmJournalEntry_Save 1, '210204020202', 'Sample
select @P1
May I know if the runtime came from the stored proc or on the application itself.
Moreover I want to know a lot with stored procedure. I am confusing now because there are times that runtime didn't occur. While some other times runtime occured.
I hope you'll goin to help me,, thanks in advance!
View 2 Replies
View Related