Hi,
I got an error when trying create new user login in GP 2010. The SQL server is 2012.
Msg 102, Level 15, State 1, Procedure syUserMSTRInsertTrigger, Line 1
Incorrect syntax near '2147483647'.
I turned on the dex log and found the error came from following statement.
INSERT INTO DYNAMICS.dbo.SY01400 (USERID, USERNAME, Zoom_Fields_Font_Color, Zoom_Fields_Font_Style, Editable_Fields_Backgrou, Editable_Fields_Font_Col, Editable_Fields_Pattern, Editable_Fields_Pattern_, Scrolling_Fields_Backgro, Scrolling_Fields_Font_Co, Scrolling_Fields_Pattern, Scrolling_Fields_PatCor, Required_Fields_Font_Col, Required_Fields_Font_Sty, Internet_Browser, Internet_Address, Internet_Type, Internet_Address_Name, PASSWORD, USRCLASS, MDFRDENT, MODIFDT, CREATDDT, LSTUSRED, PRTOSCRN, PRTOPRTR, SHRQFLDS, DISTPROC, HSCRLARW, SOPTYPE, RELID, SECACCS, TODOOPEN, TODOPERSOPEN, TODOPERSROLL, PALETTETYPE, ORGANIZATIONALVIEW, ACCOUNTINGVIEW, USERLANG, UserRole) VALUES ( 'test', 'test', 6, 2, 10, 2, 4, 2, 10, 2, 4, 2, 2, 2, '', '', 0, '', 0x00202020202020202020202020202020, '', 0, '2014.09.14', '2014.09.14', 'sa', 0, 1, 1, 0, 0, 1, 0, 0x00000000, 0, 0, 0, 0, 0, 0, 0, 1)
I checked table SY01400 and have no clue where is wrong.
Here is the whole log:
---------------------------------
/*
/* Date: 09/15/2014 Time: 11:01:22
SQLSTATE:(01000) Native Err:(5701) stmt(0):*/
[Microsoft][SQL Server Native Client 10.0][SQL Server]Changed database context to 'master'.*/
/*
/* Date: 09/15/2014 Time: 11:01:22
SQLSTATE:(01000) Native Err:(5703) stmt(0):*/
[Microsoft][SQL Server Native Client 10.0][SQL Server]Changed language setting to us_english.*/
/*
/* Date: 09/15/2014 Time: 11:01:22
SQLSTATE:(00000) Native Err:(5703) stmt(0):*/
*/
/*
/* Date: 09/15/2014 Time: 11:01:22
SQLSTATE:(00000) Native Err:(5703) status(0):*/
SWSTATUS DUMP*/
/* Date: 09/15/2014 Time: 11:01:22
stmt(47142312):*/
BEGIN SET DATEFORMAT ymd
SET NOCOUNT ON
SET CURSOR_CLOSE_ON_COMMIT OFF
SET ANSI_NULLS ON
SET ANSI_WARNINGS OFF
SET ANSI_NULL_DFLT_ON ON
SET ANSI_PADDING ON
SET NUMERIC_ROUNDABORT OFF
END
/* Date: 09/15/2014 Time: 11:01:22
stmt(47150392):*/
{ CALL DYNAMICS.dbo.zDP_SY01400SS_1 ( 'test' ) }
/* Date: 09/15/2014 Time: 11:01:28
stmt(47154432):*/
{ CALL DYNAMICS.dbo.zDP_SY05400SS_1 ( 0 ) }
/* Date: 09/15/2014 Time: 11:01:28
stmt(47146352):*/
BEGIN INSERT INTO DYNAMICS.dbo.SY01400 (USERID, USERNAME, Zoom_Fields_Font_Color, Zoom_Fields_Font_Style, Editable_Fields_Backgrou, Editable_Fields_Font_Col, Editable_Fields_Pattern, Editable_Fields_Pattern_, Scrolling_Fields_Backgro, Scrolling_Fields_Font_Co, Scrolling_Fields_Pattern, Scrolling_Fields_PatCor, Required_Fields_Font_Col, Required_Fields_Font_Sty, Internet_Browser, Internet_Address, Internet_Type, Internet_Address_Name, PASSWORD, USRCLASS, MDFRDENT, MODIFDT, CREATDDT, LSTUSRED, PRTOSCRN, PRTOPRTR, SHRQFLDS, DISTPROC, HSCRLARW, SOPTYPE, RELID, SECACCS, TODOOPEN, TODOPERSOPEN, TODOPERSROLL, PALETTETYPE, ORGANIZATIONALVIEW, ACCOUNTINGVIEW, USERLANG, UserRole) VALUES ( 'test', 'test', 6, 2, 10, 2, 4, 2, 10, 2, 4, 2, 1, 2, '', '', 0, '', 0x00202020202020202020202020202020, '', 0, '2014.09.15', '2014.09.15', 'sa', 0, 1, 1, 0, 0, 1, 0, 0x00000000, 0, 0, 0, 0, 0, 0, 0, 1) ; SELECT @@IDENTITY ; END
/*
/* Date: 09/15/2014 Time: 11:01:28
SQLSTATE:(37000) Native Err:(102) stmt(47146352):*/
[Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near '2147483647'.*/
/*
/* Date: 09/15/2014 Time: 11:01:28
SQLSTATE:(00000) Native Err:(102) stmt(47146352):*/
*/
/*
/* Date: 09/15/2014 Time: 11:01:28
SQLSTATE:(00000) Native Err:(102) status(58):*/
SWSTATUS DUMP*/
---------------------------------
Please help.
Thanks in advance!
Huan
*This post is locked for comments