SitePoint Sponsor

User Tag List

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

    MSSQL Error Check

    Hi all,

    In MS SQL Server what is the alternative to using mysql's die(mysql_error())??

    PHP Code:
     $query "SELECT * FROM table";
     
     
    $result mssql_query($query) or die('Meeting Query Error'
    Thanks.

    Kevin.

  2. #2
    SitePoint Wizard silver trophy Jelena's Avatar
    Join Date
    Feb 2005
    Location
    Universum, 3rd Corner
    Posts
    3,000
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Take a look at mssql_get_last_message()
    -- Jelena --

  3. #3
    SitePoint Wizard bronze trophy Kailash Badu's Avatar
    Join Date
    Nov 2005
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what progarmming languate are you using. die is php function

  4. #4
    SitePoint Addict I don`t mind's Avatar
    Join Date
    Feb 2006
    Location
    LA
    Posts
    218
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    not sure if it works in mssql but just put a @ at the beginning so the error reporting is enabled


    but you better ask that in the database forum
    Last edited by I don`t mind; Feb 14, 2006 at 06:55.
    Words are weapons of Mass Destruction.


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
  •