Forum Replies Created

Viewing 15 posts - 811 through 825 (of 921 total)

  • RE: Union Execute

    You could insert the results into the same temporary table, then use SELECT DISTINCT if you want a true union result set instead of UNION ALL.

    --Jonathan

  • RE: Subqueries

    SELECT Qn_Id, Qn_Set, Qn_No

    FROM Questions q

    WHERE Qn_Id =

    (SELECT TOP 1 Qn_Id

    FROM Questions

    WHERE Qn_Set = q.Qn_Set

    ORDER BY NEWID())

    ORDER BY Qn_Set

    --Jonathan

  • RE: Trigger - Can they be bypassed?

    quote:


    However, if the stored procedure is being called by an application, it is safe to assume that login identity is being provided....

  • RE: Obese log file

    quote:


    Here is a script my company uses regularly to clean up large logs. The last statement is to ensure the size...

  • RE: Trigger - Can they be bypassed?

    quote:


    It is a privilege to see so much confusion.


    My thought exactly. OP was...

  • RE: Stuck in SQL update

    quote:


    Jonathan, you are right in the need for order when using TOP. The problem is that the full query runs in...

  • RE: Crystal Report Parameter Search & SP

    quote:


    If I already have the vendor numbers in a permanent table, why would I need to put them in a temporary table?

    ...

  • RE: Stuck in SQL update

    quote:


    GuardData: I am getting

    Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <=...

  • RE: On delete trigger for a view

    quote:


    quote:


    ...One does not drop a database by deleting it from sysdatabases or an updatable...

  • RE: Stuck in SQL update

    UPDATE Master SET Om_Note =

    (SELECT TOP 1 SUBSTRING(Txt_Notes,1,60)

    FROM OrderNotes

    WHERE OrderID = Master.OrderID AND Type_Cd = 9

    ORDER BY NoteID)

    --Jonathan

    Edited by - jonathan on 09/30/2003 09:02:21 AM

    Edited...

  • RE: Current SQL Server log messages

    quote:


    I checked the lightweight pooling and it's not on.


    Then I guessed wrong.

  • RE: On delete trigger for a view

    Triggers on views must be INSTEAD OF, not FOR. But there is no useful purpose for the trigger you are creating. One does not drop a database by deleting it...

  • RE: Memory Counters

    quote:


    Question being what should the ratio of these counters be. I've read in places that these counters should come close to each...

  • RE: system processes

    In SQL Server 2000, user process SPIDs start at 51. In SQL Server 7, you'd be better off using SIDs, where 0x01 is the system.

    --Jonathan

  • RE: Instance Name Change

    Backup your databases and then sp_dropserver, sp_addserver and restore.

    See question 5 in:

    http://support.microsoft.com/?kbid=260414

    --Jonathan

Viewing 15 posts - 811 through 825 (of 921 total)