SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard
    Join Date
    Apr 2004
    Location
    dublin
    Posts
    2,036
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mysql_error() + SQL Server

    Hi all,

    What are the equivalent functions in mssql of mysql_errno() & mysql_error()???

    Thanks.

  2. #2
    SitePoint Zealot
    Join Date
    Aug 2005
    Location
    Bucharest, Romania
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you could try running the following queries:
    Code:
    SELECT @@ERROR AS error_code
    
    SELECT 
    	cast (description as varchar(255)) 
    AS 
    	err_description
    FROM 
    	master.dbo.sysmessages 
    WHERE 
    	error = ERROR_CODE_HERE

    alos you can try using: mssql_get_last_message() .


Bookmarks

Posting Permissions

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