Forum Replies Created

Viewing 15 posts - 5,716 through 5,730 (of 7,608 total)

  • RE: tempdb log 75GB

    lawson2305 (10/9/2014)

    Scott I wanted to add what does multiple data files provide? Is there a read on this somewhere?

    Yes, plenty of people have investigated and written on this. ...

  • RE: tempdb log 75GB

    lawson2305 (10/8/2014)


    ok found the offending EXE causing this issue but I have some questions on the tempdb. This will have to be looked at why this is happening by...

  • RE: Identity and Scope_Identity with triggers

    joepacelli (10/8/2014)


    The outputrowcount is fine. It returns 1

    it's my identity column which is returning 0

    I also tried Ident_current('dbo.jobid')

    This returns the correct value

    But, according to MSDN site

    Be cautious about using IDENT_CURRENT...

  • RE: Need Help with Stored Procedure

    Luis Cazares (10/8/2014)


    ScottPletcher (10/8/2014)


    Hmm, seems to be that code would list the same customer, the "first" one, over and over rather than listing every individual customer in the state. ...

  • RE: Conversion of varchar to datetime

    Eirikur Eiriksson (10/3/2014)


    The following is wrong

    datediff(day, convert(varchar,MANUFACTUREDDATE, 101),convert(varchar,getdate(), 103))

    ,it is comparing MM/DD/YYYY to DD/MM/YYYY, the only thing the convert does in the query is setting the format of the output...

  • RE: Identity and Scope_Identity with triggers

    @@ROWCOUNT must be captured immediately after the SQL statement or its value gets reset.

    However, since you've added an OUTPUT clause, you can get the number of rows affected form that...

  • RE: Need Help with Stored Procedure

    Hmm, seems to be that code would list the same customer, the "first" one, over and over rather than listing every individual customer in the state. Are you actually...

  • RE: Datatype to be changed from Varchar to Nvarchar

    Hmm, I read it as going to varchar to nvarchar.

    That is tricky, if any code uses local variables of type "varchar" to hold those columns. Given the implicit conversion...

  • RE: How to resolve deadlock issues.

    New Born DBA (10/7/2014)


    ScottPletcher (10/7/2014)


    You're welcome!

    Please let me know [if] it actually helps.

    It's working just fine. Before creating the index on the table, deadlocks occurred every half an hour but...

  • RE: Changing Datetime to Int and set it to beginning of month

    Luis Cazares (10/7/2014)


    ScottPletcher (10/7/2014)


    For consistency, I'd stick with just explicitly CASTing the second value to an int:

    SELECT CAST(DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0) AS int)

    I agree with you, but you missed...

  • RE: How to resolve deadlock issues.

    New Born DBA (10/7/2014)


    ScottPletcher (10/7/2014)


    New Born DBA (10/7/2014)


    ScottPletcher (10/7/2014)


    New Born DBA (10/7/2014)


    ScottPletcher (10/7/2014)


    USE [DBName]

    GO

    CREATE CLUSTERED INDEX [Company_FormName] ON [dbo].[COLUMN_NEXT_ID]

    (

    [Company], [Form_Name]

    )WITH ( FILLFACTOR = 100 ) ON [PRIMARY]

    Now this is the...

  • RE: How to resolve deadlock issues.

    New Born DBA (10/7/2014)


    ScottPletcher (10/7/2014)


    New Born DBA (10/7/2014)


    ScottPletcher (10/7/2014)


    USE [DBName]

    GO

    CREATE CLUSTERED INDEX [Company_FormName] ON [dbo].[COLUMN_NEXT_ID]

    (

    [Company], [Form_Name]

    )WITH ( FILLFACTOR = 100 ) ON [PRIMARY]

    Now this is the warning I am getting:

    Warning!...

  • RE: How to resolve deadlock issues.

    New Born DBA (10/7/2014)


    ScottPletcher (10/7/2014)


    USE [DBName]

    GO

    CREATE CLUSTERED INDEX [Company_FormName] ON [dbo].[COLUMN_NEXT_ID]

    (

    [Company], [Form_Name]

    )WITH ( FILLFACTOR = 100 ) ON [PRIMARY]

    Now this is the warning I am getting:

    Warning! The maximum key length...

  • RE: Changing Datetime to Int and set it to beginning of month

    For consistency, I'd stick with just explicitly CASTing the second value to an int:

    SELECT CAST(DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0) AS int)

  • RE: How to resolve deadlock issues.

    USE [DBName]

    GO

    CREATE CLUSTERED INDEX [Company_FormName] ON [dbo].[COLUMN_NEXT_ID]

    (

    [Company], [Form_Name]

    )WITH ( FILLFACTOR = 100 ) ON [PRIMARY]

Viewing 15 posts - 5,716 through 5,730 (of 7,608 total)