troubleshooting Question

Using the sequence object

Avatar of Brock
BrockFlag for Canada asked on
Microsoft SQL Server
4 Comments1 Solution42 ViewsLast Modified:
Good Morning Experts,

I am trying to insert a sequence into the following insert record.

INSERT INTO SF4204_HDR ([OPRID]
 ,[RUN_CNTL_ID]
 ,[EMPLID]
 ,[NAME]
 ,[ACAD_PLAN]
 ,[ACAD_LEVEL_BOT]
 ,[PLAN_DESCR]
 ,[INVOICE_ID]
 ,[PRIOR_YEAR_AMT]
 ,[ADDRESS1]
 ,[ADDRESS2]
 ,[CITY]
 ,[STATE]
 ,[POSTAL]
 ,[COMMENTSHORT]
 ,[NC_SELCRIT_YN])
 SELECT 'LN'
 ,'TEST'
 ,COMMON_ID
 ,'  '
 ,'  '
 ,'  '
 ,'  '
 ,'  '
 ,NEXT VALUE FOR Invoice_Seq
 ,'  '
 ,'  '
 ,'  '
 ,'  '
 ,'  '
 ,'  '
 '  '
  FROM PS_EMPLOYEE

It is not populating.  Any ideas why.  It is sqlserver.  I can run the select ok and I see it populating but not when I do the insert.

Thanks, Brock.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros