Forum Replies Created

Viewing 15 posts - 151 through 165 (of 216 total)

  • RE: To change datetype varchar(14)

    The wrinkle is that "20111107070115" won't CAST to datetime as is. He has to first STUFF a space before the time portion and some colons between the HH:MM:SS.

    Dang. You're...

  • RE: To change datetype varchar(14)

    I Dont want to change on the DB , i want to have that display as YYYY/MM/DD when i want to generate reports for the application reports, the database is...

  • RE: help with sql query

    I am sorry, but your statement of the problem is very unclear. I (and many others) are very happy to help, but we need a better description from you.

    Please...

  • RE: delete in batch makes drive space almost full

    The very best solution to your problem would be to get more storage space. It is the lack of storage space that is causing you to jump through hoops.

    If,...

  • RE: Top command question

    Without getting into the specifics of the execution plans for the two queries, I can say this has to do with how the query optimizer processes the TOP command. ...

  • RE: To change datetype varchar(14)

    I agree with the other posts: if possible, change this to a real date type field. Then changing the display in a procedure or application is a simple...

  • RE: delete in batch makes drive space almost full

    this is a test environment, but it mimics the production server, so we still want to keep the backups, although we keep only two weeks backup on disk vs production...

  • RE: Month End SSIS package help required

    Working with dates is always a challenge, and even simple questions like this don't have ready-made solutions available.

    The answer, as the other respondents have stated, is to create a calendar...

  • RE: SSIS keep autonumeric field values when transfering object (table)

    Let me restate the problem to make sure I understand it. You are copying table data from one database to another using SSIS. The table includes an identity...

  • RE: Error occurs when I add a rollback tran inside my trigger

    OK. This is interesting. You start a transaction somewhere else, update some data, and then check for an error condition inside a trigger. If the error condition...

  • RE: SQL Server Query Writing Help Needed

    Account - Need to pull fields RepCode [this is the current rep code assigned to the account, need only those starting with Z, X or ending in XX]

    Because of this...

  • RE: SQL Server Query Writing Help Needed

    Here you go. Let me know if you have any questions.

    ;WITH [PreviousUpdate]

    AS

    ( SELECT AccountNo

    ,MAX(RecordDate) AS [CurrentDate]

    ...

  • RE: CTEs

    dva2007 (11/2/2011)


    Just to clarify something for my knowledge, i thought CTE can be replacement of temp tables. I've started using CTEs and it is useful in terms of code readability,...

  • RE: Index scan vs. seek

    Execution plans is 100% index seek on my_index

    We would like to see the actual execution plan, if you wouldn't mind. (The ACTUAL plan, not the estimated plan.)

    Right click anywhere...

  • RE: Index Rebuild - Job running over 16 hours.....

    Index rebuilds in full recovery are fully logged. Because of this, the index may be taking a long time because of transaction log issues. It might be running out of...

Viewing 15 posts - 151 through 165 (of 216 total)