Results 1 to 7 of 7

Thread: How To Check SQL Syntax in Server

  1. #1
    Join Date
    Feb 2009
    Posts
    14

    How To Check SQL Syntax in Server

    Hello , I Am Using the SQL Server Management Studio , But I Dont How to Check the Syntax For Sql Queries , Can you Tell me How Can i Check the Sql Syntax In Query Analyzer or Is there a way to Check to within or in SQL Server Management Studio It Self , I Want To find Out Syntax Errors , Thanks in advance For Your Replies

  2. #2
    Join Date
    May 2008
    Posts
    115

    Re: How To Check SQL Syntax in Server

    You Can use Mimer SQL Validator All too often people find themselves locked into a specific DBMS because their SQL code doesn't conform to the SQL standard Mimer SQL Validator gives you the low down on your code and helps you by providing a list of lexical units (tokens) and a suggested correction. Also, use the validator to find out exactly which words are vendor-reserved.

  3. #3
    Join Date
    Jan 2008
    Posts
    1,521

    Re: How To Check SQL Syntax in Server

    Alternatively i Think there is a Software Called as CAST Which has a free product called Code-Checker that will check your PL/SQL code for you and suggest where there are errors or you could stand some improvement. The checks range from structural to procedural and can pinpoint potential performance issues.I think You Can Use it

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: How To Check SQL Syntax in Server

    You Can prefix the SQL statement with the word EXPLAIN. This will catch any syntax errors and verify that all the names referenced in the statement are valid. and also in Management Studio, there is a button with a Checkmark on the toolbar. That will syntax check the sql without running it.

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    Re: How To Check SQL Syntax in Server

    Use the Check push button to parse an SQL statement. Parsing the statement checks it for correct SQL syntax.

    To check SQL syntax:
    • Edit the SQL statement in the SQL code view.
    • Click Check. If the SQL code is invalid, an error message window opens.

  6. #6
    Join Date
    Jan 2012
    Posts
    1

    Re: How To Check SQL Syntax in Server

    We use DIAB (DbaInABox), it has an excellent tool for checking SQL code on Windows SQL Server called SQL code check. It's part of a larger package but hey! lots of extras so not a bad deal.

  7. #7
    openxcellaus Guest

    Re: How To Check SQL Syntax in Server

    I think DIAB core resources have good powerful properties making them ideal for applications where shock and effect loads could be experienced. It is used for structural members paneling.

Similar Threads

  1. How can I force a machine to check in with the WSUS server?
    By Billie in forum Server Update Service
    Replies: 4
    Last Post: 14-05-2012, 05:45 PM
  2. SQL Server - Update Query Syntax Error
    By rmadler in forum Software Development
    Replies: 2
    Last Post: 02-02-2010, 05:10 AM
  3. Replies: 3
    Last Post: 12-10-2009, 10:34 AM
  4. Replies: 21
    Last Post: 26-07-2007, 04:04 AM

Tags for this Thread

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
  •  
Page generated in 1,713,504,318.52978 seconds with 17 queries