Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

How to insert rows into table via sql with correct updating the rownumber

(0) ShareShare
ReportReport
Posted on by 35

Hi everyone. We use XAL3.50 with an sql server 2008 database.

I need to insert serveral rows in a xal table, so I have to fetch the correct rownumber from the xalseq table to give it to the new row. Does anyone know how  xal is working on this problem and how I can solve it using a sql routine?  Thanks in advance.

  • Re: How to insert rows into table via sql with correct updating the rownumber

    try this one

    SELECT  [SEQID]

         ,[DATASET]

         ,[SEQNO]

     FROM [xal].[dbo].[XALSEQ]

  • Suggested answer
    Henrik Hansen Profile Picture
    Henrik Hansen 340 on at
    Re: How to insert rows into table via sql with correct updating the rownumber

    Hello Stephan,

    There is a stored procedure sp_xal_seqno on the database that can be used to increment the rownumber in the xalseq table.

    Best Regards

    Henrik Hansen

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans