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

  • SEARCH
  • Home
  • 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 799811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:11:28+00:00 2026-05-14T23:11:28+00:00

I am using OPENQUERY to do an insert from MSSQL 2005 to MySQL. How

  • 0

I am using OPENQUERY to do an insert from MSSQL 2005 to MySQL. How do I get at the last inserted id on the MySQL db back into my MSSQL procedure?

  • 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-05-14T23:11:29+00:00Added an answer on May 14, 2026 at 11:11 pm

    By the following work around i can able to solve my problem
    Following function to get identity value

    CREATE FUNCTION GetIdentity (   @tablename varchar(50) ) 
    RETURNS varchar(50) 
    AS 
    BEGIN   
    -- Return the result of the function    
    RETURN (select cast(IDENT_CURRENT(@tablename) as varchar(50))) 
    END 
    GO
    
    
    SELECT id FROM OPENQUERY(IMDECONP38, 'select Customer.dbo.GetIdentity (''CustomerMaster'') as id')
    

    related question : SQL Server identity issue

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

Sidebar

Ask A Question

Stats

  • Questions 507k
  • Answers 507k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Yes, this can indeed be necessary. You see, JUnit will… May 16, 2026 at 4:11 pm
  • Editorial Team
    Editorial Team added an answer You need to upgrade your SDK to 4.0.1 to use… May 16, 2026 at 4:11 pm
  • Editorial Team
    Editorial Team added an answer while(sqlite3_step(compiledStatement) == SQLITE_ROW) { char *myChar = (char *)sqlite3_column_text(compiledStatement, 0);… May 16, 2026 at 4:11 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm having issues when trying to call a MySQL (5.0.77) stored procedure with parameters,
Nightly, I need to fill a SQL Server 2005 table from an ODBC source
Using Javascript, is there a standard way to get the absolute path of an
Using PHP I'm attempting to take an HTML string passed from a WYSIWYG editor
I am trying to execute a stored procedured from a linked database in MS
I've been connecting to an oracle 10g server using ms sql servers linked server
I have an ADSI connection in my SQL Server (2005) and I'm able to
Using SVN you can right click a folder TEST and add it to the
Using PHP, I'm trying to give each specific text its own variable. I believe
Using jQuery's UI Tabs. This is my code. <div id=tabs> <ul> <li><a href=#tabs-1>Find a

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.