Forum Replies Created

Viewing 15 posts - 3,481 through 3,495 (of 7,191 total)

  • RE: SQL Agent Job- Foreground

    Two things you have to look out for when you run a package from a SQL Server Agent job:

    (1) Interactive components. Things like pop-up messages or user applications will...

  • RE: Maximum Tenancy Ref

    What I want though is just the Maximum row number for each place ref.

    Do it like I showed you. Change the ORDER BY to DESC instead of ASC,...

  • RE: Maximum Tenancy Ref

    Something like this?

    WITH Tenancies AS (

    SELECTLOC.[place-ref] AS 'Place Ref'

    ,PLA.address1 AS 'Address1'

    ,PLA.address2 AS 'Address2'

    ,PLA.address3 AS 'Address3'

    ,PLA.address4 AS 'Address4'

    ,PLA.address5 AS 'Address5'

    ,PLA.[post-code] AS 'Postcode'

    ,LOC.[location-sts] AS 'Location Status'

    ,LOC.[location-type] AS 'Location Type'

    ,LOC.scheme AS 'Scheme'

    ,LOC.[mgt-area] AS...

  • RE: Details to collected from sql servers for upgrading to 2012 version.

    Have you tried using the Upgrade Advisor?

    John

  • RE: If not exists returning false when should be true

    An alternative worth considering, since you have a primary key constraint, is to skip the existence check, and instead to handle the error when it occurs.

    John

  • RE: Updating multiple rows

    Surely you just want to do this?

    UPDATE sy01200

    SET INET5 = LEFT(convert(varchar(40),EmailToAddress),LEN(convert(varchar(40),EmailToAddress))-14)

    WHERE Master_Type = 'EMP'

    John

  • RE: Cte for String in random order

    If you can split it, just order the results by NEW_ID() and reconcatenate.

    John

  • RE: Phantom FK violation

    Actually, I'm puzzled. Since the value of @nKeyWord_IdArg isn't set anywhere, I'd expect it to be NULL and therefore no deletion should be attempted. Unless ANSI_NULLS is set...

  • RE: Phantom FK violation

    I think it's this in your stored procedure:

    DELETEdbo.Keywords

    WHERE@nKeyWord_IdArg = @nKeyWord_IdArg

    That's going to delete the whole table (unless @nKeyWord_IdArg is null).

    John

  • RE: Unique Indexes Are Code; Non-Unique Indexes Are Data

    MVDBA (6/26/2014)


    The usage of a non-unique index is optional. Just because an index exists doesn't mean that the server will use it.

    how is this different from a unique...

  • RE: Thrown into SQL position

    Should I append my t log backups or write each t log file to its on file? Of course this will make restoring harder as I will have to restore...

  • RE: SSMS Login failure

    OK, you need to start SQL Server in a simple configuration so that it doesn't load model and msdb, then restore model. There should be plenty of resources out...

  • RE: SSMS Login failure

    Is SQL Server running? What happens if you try to start it?

    John

  • RE: SSIS JOb Scheduling

    That's how it works. If your job is still running at its next scheduled time, it won't run again until the next scheduled time after that (unless, of course,...

  • RE: Problems doing point in time recovery

    Grant's link doesn't work (for me, anyway), so I'll attempt to answer your questions briefly (although you probably could answer them yourself with a bit of search engine magic).

    First, no,...

Viewing 15 posts - 3,481 through 3,495 (of 7,191 total)