Forum Replies Created

Viewing 15 posts - 6,076 through 6,090 (of 7,185 total)

  • RE: Which Stored Procedure changed

    Yes, something like this:

    SELECT SPECIFIC_SCHEMA + '.' + SPECIFIC_NAME AS ProcName, LAST_ALTERED

    FROM INFORMATION_SCHEMA.ROUTINES

    WHERE ROUTINE_TYPE = 'PROCEDURE'

    AND LAST_ALTERED > GETDATE() - 7

    John

  • RE: Stored Procedures to execute other SPs containing parameters

    Debbie

    A wrapper procedure is just a procedure that calls other procedures. Now, what is it exactly that you're trying to do?

    John

  • RE: sql2000 transaction log keeps filling up

    Is your server involved in replication or log shipping? If not, it sounds as if you have 10GB of uncommitted transaction(s). Try using DBCC OPENTRAN and sp_who2 to...

  • RE: sql2000 transaction log keeps filling up

    Do you have users using the database at midnight? If not, it's probably a scheduled job that's doing it. If you do have users on at that time,...

  • RE: Conditional Alteration of Stored Procedurs

    rbarryyoung (3/14/2008)[hr

    You have to double them up. It is confusing at first, but you get used to it soon enough.

    Or you can do what somebody suggested on one of...

  • RE: Multi Statement Table Valued Functions In A Join

    OK, how about putting the result set of the function into a temp table:

    SELECT dbo.fn_Find_Security_Details(Sedol_Number, AsAt)

    INTO #MyTempTable

    FROM #tmpUsed

    and then joining to that instead?

    John

  • RE: Multi Statement Table Valued Functions In A Join

    Jamie

    Will this work?

    ...FROM #tmpUsed t INNER JOIN (

    SELECT Bid, Price_date, sedol_number

    FROM dbo.fn_Find_Security_Details(Sedol_Number, AsAt)

    ) f

    ON f.sedol_number=t.sedol_number

    John

  • RE: create temp view

    Jeff Moden (3/13/2008)


    Of course, if the table exists and you're only selecting one row, why do you need a view to begin with?

    As I mentioned, that's an extreme example. ...

  • RE: create temp view

    Ah. Please take care to post in the correct forum. There are no CTEs in SQL Server 2000. Would you be able to use a subquery instead?...

  • RE: create temp view

    Jeff Moden (3/13/2008)


    No... no way to create a temp view. Creating a TempTable to hold what the TempView would have contained is the next best thing and pretty darned...

  • RE: What does cardinality mean

    Kiran

    You should read the topic "Cardinality estimation" in Books Online. If there's anything you don't understand, or if it doesn't cover everything you need to know, please post again....

  • RE: Generate index on foreign key columns

    Does this work where the foreign key constraint consists of more than one column?

    John

  • RE: Find new customers for every month

    What have you tried so far? It would also help if you were to post the DDL for your table(s) and some sample data.

    Thanks

    John

  • RE: enhancing sql command

    You're not going to get anywhere by shouting. I don't even see a question in your original post, so what is it that you're asking?

    Please start off by posting...

  • RE: What should be a simple query

    Then Jason's query should work. How about the results of this?

    SELECT TOP 20 OutStartDate + OutStartTime, OutEndDate + OutStartTime

    FROM vwOutofOffice

    Have a look at the results and see if they...

Viewing 15 posts - 6,076 through 6,090 (of 7,185 total)