Forum Replies Created

Viewing 15 posts - 16 through 30 (of 518 total)

  • RE: sql2k5 tempdb

    You cannot create four tempdb databases......are they perhaps talking about four files for the tempdb? And did whoever told you this include any logic for it? I've split out multiple...

  • RE: Help with Update Query

    Sure...just put a wrapper on it....

     

    Create Proc usp_proc_name As

    UPDATE OrdMain

    SET

    ListTotal = A.SumOfListItem

    FROM

    (SELECT Order_ID,SUM(ListEach) AS SumOfListItem

    FROM OrdItem

    GROUP BY Order_ID)

    AS A

    WHERE OrdMain.Order_ID = A.Order_ID

    AND OrdMain.Order_Num = N'11589'

     

    and take the...

  • RE: Help with Update Query

    Try something more along this route:

     

    UPDATE

    OrdMain

    SET

    ListTotal

    = A.SumOfListItem

    FROM

    (

    SELECT...

  • RE: Creating a trigger

    You will need to accomplish this within whatever GUI you are having them use....it is not a database function.

  • RE: How to replicate automatically any newer articles.

    Of course it's possible.....isn't everything....I'm not sure it would be wise though....

     

    Set up a process that monitors for new objects and schedule it...

    feed the results of the monitoring process into...

  • RE: Locate Foreign keys without Indexes

    I did not mean to imply that you were a novice......

    Once you create your .sql files for the foreign keys, and another for your indexes......how do you determine the keys...

  • RE: Replicate DB Tables only

    Script the db, and run script on second server....

  • RE: Can starting a snapshot cause blocking?

    One at a time, as the snapshots for each table are generated...

  • RE: Locate Foreign keys without Indexes

    If all I needed was a picture of them, I am sure I would use what you suggest. However, I need a list of fields and tables as my solution...

  • RE: Search Query please help

    Use this methodology, and so long as the optionals are null, your good....

    SELECT

      PolicyProcedureID,

      IDNumber,

       Title,

      DateUpdated,

       Author,

      ExecutiveSummary,

      Body,

     SupportingDocuments,

     Comment,

     PolicyNumber ,

     PolicyProcedureType,

     PolicyProcedureStatusDescription,

     PolicyDepartName,

     ReviewerName   

    FROM

       PolicyProcedures

    WHERE 

         Title  LIKE  ISNULL(@SearchTitle+ '%', Title)

      AND   ...

  • RE: linked server on Oracle and Oracle query questions

    It looks like the schema which the table belongs to

  • RE: Question of the Day for 25 Apr 2006

    I answered "D" as well, as the syntax was incorrect, throwing an error for the first part and giving the username for the second......for the question, as asked, "D" WAS...

  • RE: Locate Foreign keys without Indexes

    I have a set of scripts that writes the indexes and foreign keys to a table which could then be queried to get what you need on a mass scale......

    Here:

    if...

  • RE: Table information

    Here is a down and dirty way to do it....

    Select

    SO.NAME,

    SI

    .Rows

    From

    Sysobjects SO

  • RE: Can starting a snapshot cause blocking?

    Yes, it certianly can.......but there are ways around it.....look at the options for creating the snapshot.....

Viewing 15 posts - 16 through 30 (of 518 total)