Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. MastermindSQL

    SQL Query help

    I have a table in a following format: PK ID NextID -- --- ------ 1 200 300 2 100 200 3 300 400 4 50 100 Now I want to get a resultset like: ID DisplayOrder --- ------------ 50 1 100 2 200 3 300 4 400 5 Thanks in advance.
  2. MastermindSQL

    SQL Server Best Practice

    What is the difference between the following two cases: Case 1: CREATE PROC MyProc AS ..... RETURN GO ---------- BEGIN TRAN EXEC MyProc COMMIT =================== Case 2: CREATE PROC MyProc AS BEGIN TRAN ..... COMMIT RETURN GO ---------- EXEC MyProc Which one of the above is a...
  3. MastermindSQL

    Checking objects before compiling Stored Proc

    Could someone suggest me a way to check the underlying objects while compiling a stored procedure? For example if I have a code like this: --------------------------- CREATE PROC dbo.FOO AS SELECT Col1, Col2 FROM dbo.NonExistingTable RETURN GO --------------------------- In this case the...

Part and Inventory Search

Back
Top