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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mollytu

  1. mollytu

    question about heap tables

    I'm seeking clarification. I've seen heap tables defined as tables with no CLUSTERED index, but can have NON-clustered indexes on them. However, it does seem that SQL Server makes a distinction between these definitions. As in the sysindexes table, indid 0, 1, 2 are for no-indexes, clustered...
  2. mollytu

    question about calling a stored procedure

    Markros, could you show a little example of what you mean... like an inline function?
  3. mollytu

    question about calling a stored procedure

    What about just looping the proc through each row in the table? That was my idea.
  4. mollytu

    question about calling a stored procedure

    That is a good idea, but I'm not allowed to modify the sp.
  5. mollytu

    question about calling a stored procedure

    Hi, How do you call a stored procedure to run for every row in a table? For example: EXEC myProc @field1, @field2, @outVar OUT, @outVar OUT against all the rows in a given table? Thank you
  6. mollytu

    case syntax help

    Thanks. I changed it around so that it's like: SELECT 'name', SUM (CASE WHEN ptno IN (99) THEN recno END) AS 'a', SUM (CASE WHEN ptno IN (99) THEN recno END) AS 'b' FROM x ... that works
  7. mollytu

    case syntax help

    Hi, What is wrong with this syntax? I want to name the column in the case for use in the #temp table but doesn't seem to like it. SELECT 'name', CASE WHEN ptno IN (99) THEN SUM (recno) 'a' WHEN ptno IN (13) THEN SUM (recno) 'b' END INTO #temp from myTable error: Msg 102, Level 15, State...

Part and Inventory Search

Back
Top