Results 1 to 3 of 3

Thread: Convertion from MS Sql to MySql

  1. #1
    Join Date
    Dec 2006
    Posts
    1

    Convertion from MS Sql to MySql

    Hi All,

    Below I have given a stored procedure for User Registration in MS Sql

    /******Stored Procedure MS Sql Starts Here*******/

    CREATE PROC InsertRegDetails
    (
    @UserId numeric(9) ,
    @FName varchar(50),
    @LName varchar(50),
    @Email varchar(100),
    @DepartmentName varchar(50)
    )
    AS
    BEGIN TRANSACTION

    INSERT INTO LoginTable VALUES(@UserId,@FName,@LName,@Email)

    INSERT INTO DeptTable
    VALUES(@UserId,@DepartmentName)

    IF @@ERROR<>0
    BEGIN
    ROLLBACK
    RAISERROR('ERROR IN REGISTRATION',16,1)
    RETURN
    END
    COMMIT
    GO

    /******Stored Procedure for MS Sql Ends Here*******/

    I need it to convert into MySql. How I Can do it , Please Help me.


    Thanks in Advance
    Manoj

  2. #2
    Join Date
    Dec 2006
    Location
    Mumbai
    Posts
    4

    Thumbs up Convertion

    Down load Free Trial version of MsSql <-> MySql from following link
    http://www.sharewareconnection.com/m...-converter.htm



    or
    http://www.snapfiles.com/get/mssqlmysql.html

  3. #3
    Join Date
    Jan 2007
    Posts
    9
    you can use any 'pump' software like
    http://www.sqlmanager.net/en/products/mysql/datapump

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •