Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8963517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:22:32+00:00 2026-06-15T16:22:32+00:00

How to change a generator value with dbExpress framework? I want to change generator

  • 0

How to change a generator value with dbExpress framework? I want to change generator value directly with dbExpress, without writing a stored procedure in RDBMS side or etc.
Please help me for doing that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:22:34+00:00Added an answer on June 15, 2026 at 4:22 pm

    AFAIK DBExpress don’t have any class specialized in dealing with sequences/generators.

    You still can use a standard TSQLQuery to instruct the dbEngine to alter a generator value, like this:

    procedure TMyDataModule.RestartMyGenerator;
    begin
      Q := TSQLQuery.Create;
      try
        Q.SQLConnection := MyConnection;
        //compatible with firebird 1.x and 2.x
        //Q.SQL.Text := 'set generator mygenerator to 0';  
        //better alternative, but compatible only with firebird 2.x
        Q.SQL.Text := 'alter sequence mygenerator restart with 0';
        Q.ExecSQL;
      finally
        Q.Free;
      end;
    end;
    

    (untested code, written directly in this window)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to show the value of a ComboBox in it's Change event handler.
Hi, I had Generate custom layouts in my screen, i want change color or
I am looking for constant time algorithm can change an ordered integer index value
Suppose I have a generator whose __next__() function is somewhat expensive and I want
I want to create a weighted random number generator in CoffeeScript. Here is the
I would like to create unique value generator that would work like this: I
We need to change the session ID length generated by tomcat. By default it
I try to change over htaccess from http://www.mydomain.com/pictures/generated/product/1/280_280_75/nopic.jpg to http://www.mydomain.com/pictures/generated/product/1/280_280_75/nopic1.jpg Here is my rules
Similar to How to change "Generate Method Stub" to throw NotImplementedException in VS? ,
i'm trying to change the default look and feel for the spotify playlist generated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.