Forum Replies Created

Viewing 15 posts - 2,386 through 2,400 (of 2,647 total)

  • RE: How to automate database scripting

    Easy enough! 🙂 Use the wizard to script what you want, or script the entire database and then remove what you don't need. You may want to add in sp_change_users_login...

  • RE: Sort Data by Shift

    SELECT HeaderID, SerialNumber, DateTested, OperatorID, StationID,

    CASE

    WHEN CONVERT(VARCHAR(8),DateTested,108) >= '07:01:00' AND CONVERT(VARCHAR(8),DateTested,108) < '16:31:00' THEN '1st Shift'

    WHEN CONVERT(VARCHAR(8),DateTested,108) >= '01:11:00' AND CONVERT(VARCHAR(8),DateTested,108) < '07:01:00' THEN '3rd Shift'

    ELSE '2nd Shift'

    END AS Shift

    FROM...

  • RE: sql puzzle.

    ChrisM@home (10/17/2011)


    ekant_alone (10/17/2011)


    I have a table enployee and a column gender.

    The possible values in the table are 'm' or 'f'

    In this puzzle i need to swap m with f and...

  • RE: sql puzzle.

    ekant_alone (10/17/2011)


    I have a table enployee and a column gender.

    The possible values in the table are 'm' or 'f'

    In this puzzle i need to swap m with f and f...

  • RE: Unallocated Space

    SpringTownDBA (10/14/2011)


    ALTER DATABASE tempdb MODIFY FILE...

    followed by restarting sqlserver is the easiest way.

    If your tempdb grew too big, you might consider pre-sizing it big and disabling auto-growth.

    I do not recommend...

  • RE: Database synchronization

    We use transactional replication with updateable subscriptions. Fundamentally, it is a bi-directional replication.

    Thanks,

    Jared

  • RE: Database synchronization

    Saga... (10/13/2011)


    You can use Database mirroring or Replication....

    Mirroring is not bi-directional, it is only 1 way.

    Thanks,

    Jared

  • RE: Clone a DB and update weekly for read only use

    You say that there will not be many changes... Why not use transactional replication?

    Jared

  • RE: documentation of a stored procedure

    What you are asking for is called pseudocode. Here is one link, but if you google it you will find many examples and theory.

    http://www.unf.edu/~broggio/cop2221/2221pseu.htm

    Thanks,

    Jared

  • RE: SSIS question

    How exactly are you accessing and parsing this data? Are you using a query, and if so can you post it please? In the meantime, you could try running a...

  • RE: Source Control Vs Email -- Are you serious ????

    I love this one 🙂

    Jared

  • RE: Unique Constraint allowed duplicates??

    I would just delete them from your article and then reinitialize, if you can.

    Jared

  • RE: How to compile the stored procedure while creating

    jcrawf02 (10/17/2011)


    jared-709193 (10/17/2011)


    Keep in mind that this will still not get you what you are looking for, I think. The procedure will still compile and will be created, THEN you...

  • RE: Sort Data by Shift

    Lynn Pettis (10/17/2011)


    Select COUNT(SerialNumber),

    CASE WHEN DATEPART(hour,(DateTested)) between 7 AND 16 THEN '1st SHIFT'

    WHEN DATEPART(hour,(DateTested)) between 16 AND 1 THEN '2nd SHIFT'

    WHEN DATEPART(hour,(DateTested)) between 1 AND 7 THEN '3rd SHIFT'

    END

    FROM...

  • RE: How to compile the stored procedure while creating

    Keep in mind that this will still not get you what you are looking for, I think. The procedure will still compile and will be created, THEN you will execute...

Viewing 15 posts - 2,386 through 2,400 (of 2,647 total)