Forum Replies Created

Viewing 15 posts - 181 through 195 (of 514 total)

  • RE: Backup Coupled Databases Simultaneously

    No matter what you do the time factor is too large.

    Sorry, but I don't know of any job scheduler that is capable of starting at the nano second level.

    Given the...

  • RE: Not able to locate stored proc. but it is running in job step

    And one reason that it might appear to be phantom is the schema. If it is owned by something other than dbo, it might not show up if just...

  • RE: Not able to locate stored proc. but it is running in job step

    This will check all databases

    EXEC sp_MSforeachdb 'USE ?;SELECT ''?'' as dbname,* FROM sys.all_objects WHERE NAME LIKE ''%cycle%'''

  • RE: HELP --- SQL Programming

    DECLARE @bob-2 VARCHAR(200)

    SELECT @bob-2 = 'robert'

    SELECT UPPER(SUBSTRING(@bob,1,1)) + LOWER(SUBSTRING(@bob,2,LEN(@bob)))

    SELECT @bob-2 = 'ROBERT'

    SELECT UPPER(SUBSTRING(@bob,1,1)) + LOWER(SUBSTRING(@bob,2,LEN(@bob)))

  • RE: SQL SERVER 2005 vs ORACLE 10G

    What fun.

    I have worked with both pretty extensively now, but for the past year, it has been almost exclusively SQL Server. Before that it was about 15 years of...

  • RE: HELP --- SQL Programming

    Got the message about there being 39 possible deductions. FYI, I don't mind you sending me stuff that you don't want to post, but I do want to keep...

  • RE: HELP --- SQL Programming

    Here is the same example using a CASE/Group by rather than the pivot.

    SELECT t1_id,

    MAX(CASE WHEN RN = 1 THEN deduction END) AS Deduction1,

    ...

  • RE: HELP --- SQL Programming

    You sent me 4 queries which all could be represented by a view/table where the PK is Empl_ID (Except Deductions)

    From your comments You didn't appear to have issue with the...

  • RE: HELP --- SQL Programming

    Trying to figure out why I wasn't seeing the dups. Not the pivot, the test table

    IF(OBJECT_ID('tempdb..#t1') IS NOT NULL) DROP TABLE #t1

    IF(OBJECT_ID('tempdb..#t2') IS NOT NULL) DROP TABLE #t2

    CREATE...

  • RE: HELP --- SQL Programming

    This can also be done with a series of case/group by statements. The pivot however is designed for this situation.

    It's not that I don't want to help you with...

  • RE: HELP --- SQL Programming

    Based upon what you sent me, I think this is now what you are looking for.

    IF(OBJECT_ID('tempdb..#t1') IS NOT NULL) DROP TABLE #t1

    IF(OBJECT_ID('tempdb..#t2') IS NOT NULL) DROP TABLE #t2

    CREATE...

  • RE: HELP --- SQL Programming

    SELECT col1,col2,col3,col4,col5,col6

    FROM table1

    inner join table2 on table1.personnel_id = table2.personnel_id

    Is this what your talking about?

  • RE: Measuring DB activity

    Steve Jones - Editor (11/28/2007)


    I won't recommend this, but I have worked in places where we've turned off servers to see if we got complaints.

    I'd recommend auto close before...

  • RE: Role of TempDB

    Oh forgot to add.

    DO NOT SHRINK YOUR TEMPDB!!!!! this really screws up the whole thing.

  • RE: Role of TempDB

    There are no good techniques for preliminary sizing of the tempdb. This is because it's usage has almost no correlation with anything else.

    The short answer is this....

Viewing 15 posts - 181 through 195 (of 514 total)