Forum Replies Created

Viewing 15 posts - 1,966 through 1,980 (of 2,356 total)

  • RE: Script to Backup & Shrink tempdb

    Welsh Corgi (10/2/2015)


    I need a script to Backup & Shrink tempdb.

    namesize

    tempdev1024

    templog64

    tempdev21024

    tempdev31024

    tempdev41024

    tempdev51024

    tempdev61024

    tempdev71024

    tempdev81024

    I can't believe how many tempdb's there are?

    Because at some point someone probably read an article recommending the creation of...

  • RE: Are the posted questions getting worse?

    SQLRNNR (10/1/2015)


    Ed Wagner (10/1/2015)


    I'm headed to SQL Saturday Pittsburgh this weekend. I'll be my first visit to this location, but I've heard good things about it.

    If anyone lives in...

  • RE: need help with sql query, please help!

    patilpallavi16 (9/30/2015)


    This statement also works. THANKS!

    I also tried with the condition as : WHERE roofyearbuilt < year(getdate()) - 17. This works too.

    Do you have any idea why these different statements...

  • RE: When IsNumeric not numeric?

    Luis Cazares (9/30/2015)


    Kim Crosser (9/30/2015)


    In addition to Try_Parse, there is a new function Try_Convert, which does what IsNumeric should always have done.

    set <output_value> = Try_Convert(<type>, <source_value>);

    Try_Convert returns the source_value converted...

  • RE: syntax help please ....

    What's the point? What problem are you trying to solve?

  • RE: syntax help please ....

    INSERT INTO [Member_Info] ( [MemberID], [MemberNbr],[MM_MIN_EligibilityStartDate], [MM_MAX_EligibilityEndDate] )

    select MemberID, MemberNbr,

    MIN(M.MonthBeginDate) as [MM_MIN_EligibilityStartDate],

    MAX(case when M.MonthEndDate = 0 then 99999999 else M.MonthEndDate end ) as [MM_MAX_EligibilityEndDate]

    FROM MemberMonth M...

  • RE: syntax help please ....

    ALTER TABLE TABLE_NAME NOCHECK CONSTRAINT ALL may work.

    But, just out of curiosity, if it's ok to have data in the table that violates the primary key, what's the point...

  • RE: need help with sql query, please help!

    Is this homework?

    What have you tried so far?

    What would you use the mod function for?

    Based upon the limited information you have provided, try this:

    SELECT *

    FROM YourTable

    WHERE Orderdate...

  • RE: How to migrate huge databases ?

    Jacob Wilkins (9/28/2015)


    The process that Kristen describes will work nicely.

    To really minimize downtime, I like to set up mirrors from the old environment to the new. Then migration is just...

  • RE: Grant all logins select on one table in one database

    Will a logon trigger work?

  • RE: When IsNumeric not numeric?

    paul.knibbs (9/28/2015)


    Eric M Russell (9/28/2015)

    For example, if you have a VarChar column that should only contain values that are covertable to a specific data type (ie: Int or Date), then...

  • RE: When IsNumeric not numeric?

    Kristen-173977 (9/26/2015)


    Michael L John (9/25/2015)


    IsNumeric does not look for numbers, it returns 1 if a value can be successfully be CONVERTED or CAST to a numeric data type.

    Not sure about...

  • RE: ssrs 2012 data that is cached

    Starting and ending dates seem to be an issue for many people. Are the database fields datetime data types? Then check if the code is considering the time...

  • RE: Performance Tuning - Confused by What I'm Seeing

    Remove the with and option recompile.

    Start with DBCC FREEPROCCACHE and DBCC DROPCLEANBUFFERS.

    Then, do your 5 iterations of each. See what happens with the execution times.

    By doing with recompile,...

  • RE: When IsNumeric not numeric?

    Vic Rauch-303403 (9/25/2015)


    Thank you for all the comments. My question was how to make IsNumeric tell me the truth about an alpha field. UDP Broadcaster did post a...

Viewing 15 posts - 1,966 through 1,980 (of 2,356 total)