Forum Replies Created

Viewing 15 posts - 26,131 through 26,145 (of 26,487 total)

  • RE: truncation

    Try this:

    select substring('2006-zzzz', 1, patindex('%-%', '2006-zzzz') - 1)

    You would actually replace the hardcoded string with a variable or column name.

  • RE: Full Backup, Differential Backup, and Log Backup

    I just reread what you posted regarding your backup process.  To be sure what is going on,

    you use the same filename for your transaction log backup file each day.  It...

  • RE: Full Backup, Differential Backup, and Log Backup

    My concern with your process is this; If you were attempting to restore to 10:00 AM Thursday due to a hardware failure and your Thursday morning Differential Backup file was...

  • RE: overflow error

    My suggestion is that we start asking Best to show us what he has done before doing his work for him.  Perhaps then, we can help his to start helping...

  • RE: Full Backup, Differential Backup, and Log Backup

    I am curious as to why you truncate the log at 10:00 PM.  Are there any jobs or user activity that occurs between 9:00 PM (the last transaction log backup)...

  • RE: truncation

    If, in this case, you are always looking for the first 4 characters, use SUBSTRING or LEFT.  I would just use substring: substring('2006-zzzz', 1, 4)

     

  • RE: Please Help

    right here:

    Select count(*) from PartnerLeadTypes e2 where e2.PartnerLeadTypeID <= e.PartnerLeadTypeID) as e.rownumber

    Take the e. off the alias.

  • RE: Restoring v65 db on sql2005

    Looking at SQL Server 2005 and SQL Sever 200, it looks like you will need to restore the 6.5 database to either SQL Server 7.0 or SQL Server 2000 first...

  • RE: union sum

    See if this works for you:

    declare @Name varchar(50)

    set @Name = 'ABC' -- or what ever nema you are testing

    select

        HREMP.Name,

        count(dt.Name)

    from

        dbo.HREMP

        inner join (

            select

                mlog.Name

            from

                dbo.mlog --...

  • RE: Problem with Subtraction of Dates

    What should the result of this calculation be based on your example?

     

  • RE: Backup errors

    My first question is what database are you trying to run this maintaenace plan against?

    The first error is due to the fact that the database could not be placed in...

  • RE: Help requested on getdate

    KH, That's because of the typo.  I left out the '0,' after the 'dateadd(dd,', which is what Michael was tell me.

  • RE: Help requested on getdate

    Michael, Regarding the typo, that's what I get for writing the select statement on one system and typing it on another (didn't use cut and paste).

    Thanks

  • RE: Unique index allows duplicate values

    I think it would help if you could post the DDL for the table and index.

     

  • RE: Operating system error 5(Access is denied.) to master.mdf''''

    Sounds like a permissions issue on the file or directory.  Is the S drive local or on a san?

     

Viewing 15 posts - 26,131 through 26,145 (of 26,487 total)