I have tried simple print statements and it works.
Eg:
DECLARE @CheckCnt int
SELECT @CheckCnt=COUNT(*) FROM Table1
print @CheckCnt
This prints the count.
Now if I try this it doesn't print at all.
Eg:
DECLARE @Record_Identifier char(1)
DECLARE Cursor1 CURSOR FOR
SELECT Record_Identifier FROM...
I created a stored procedure that will return the error code if it fails. When executing the proc, I get the message like this and what is returned is
Output Messages:
Server: Msg 242, Level 16, State 3, Procedure p_load_data, Line 280
The conversion of a char data type to a datetime data type...
I am using DTS in SQL Server 2000.
Inside DTS,using VB scripting modules I am trying to do the following:
1. Insert into ERRORLOG table.
ERRORNUM varchar(5)
ERRORdet varchar(50)
2. Execute a stored procedure.
SQL Server : Server1.aaa.com
UserID : mysuser
Password : mypass
Database : PYMT1...
I want to convert the string type to integer and then add 1 to that number. Then convert it back to string.
This is my code now and doesn't work.
'Read the control file record
ControlRecord = Controlfile.ReadLine
'Get the control number, This is string type
LastControlNum = Mid(ControlRecord...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.