Forum Replies Created

Viewing 15 posts - 10,816 through 10,830 (of 13,878 total)

  • RE: how to Get CSV of a column from a table.

    Google some FOR XML PATH queries and you'll crack this soon enough.

  • RE: Display duplicate records in table query - Message 4145 error

    bharatgi (4/6/2012)


    thanks - but how do i display both duplicate records in the same query?

    Do you have a unique key on this table?

  • RE: Display duplicate records in table query - Message 4145 error

    Try this:

    select

    [SLA]

    ,[PCCode]

    ,[PrCode]

    ,[LocalID]

    ,[DateOfBirth]

    ,[Number]

    ,[ATariff]

    ,[DSeen]

    ,[MPI]

    ,[Service]

    ,[POD]

    ,[Device]

    ,[ActivityDate]

    ,[SeenDate]

    ,[DateActivity]

    ,[Period]

    , Count(*) [Count]

    FROM [PROV].[dbo].[DA]

    group by

    [SLA]

    ,[PCCode]

    ,[PrCode]

    ,[LocalID]

    ,[DateOfBirth]

    ,[Number]

    ,[ATariff]

    ,[DSeen]

    ,[MPI]

    ,[Service]

    ,[POD]

    ,[Device]

    ,[ActivityDate]

    ,[SeenDate]

    ,[DateActivity]

    ,[Period]

    having count(*) > 1

  • RE: Datat is not Loading

    Andy Hyslop (4/6/2012)


    Phil Parkin (4/6/2012)


    Are you saying that it works when you run it manually but not when it is run as a scheduled job?

    I got the impression that no...

  • RE: insert values

    So what? You're in a 2005 forum.

    If I told you that my car was 'not working', would you know how to fix it?

  • RE: Datat is not Loading

    Are you saying that it works when you run it manually but not when it is run as a scheduled job?

  • RE: Rendering Through URL to JPEG with all Pages

    As far as I know, you cannot create a JPEG file with multiple pages.

  • RE: SSIS Import

    I'm not sure exactly what those settings affect, but worth a try 🙂

  • RE: SSIS Import

    Have a look in Tools / Options / Database Tools / Table and Database Designers / Column Options in BIDS.

  • RE: Joining datetime dates to calendar table

    Lynn Pettis (3/30/2012)


    Phil Parkin (3/30/2012)


    Jeff Moden (3/30/2012)


    If you can make a small mod to your Calendar table... I usually create a Calendar table with 2 date columns to easily solve...

  • RE: SSIS 2005 Foreach loop

    Koen Verbeeck (3/30/2012)


    The reason there's no error is probably because the For Each Loop thinks it has no access rights, so there are no files to loop over.

    So I would...

  • RE: Joining datetime dates to calendar table

    Jeff Moden (3/30/2012)


    If you can make a small mod to your Calendar table... I usually create a Calendar table with 2 date columns to easily solve such an eventuality. ...

  • RE: Foreachloop variables

    What I cannot figure out is how to set a FileToMove variable and a DestinationFolder variable to the DocumentFileName and DocumentFilePath from the DocumentIndex Sql table.

    Create two new variables in...

  • RE: BETWEEN ages

    its the same logic.

    Not in my opinion. In statements such as 'between a and b', it is generally assumed that 'a' is smaller, less or fewer than 'b', whatever a...

  • RE: Invalid character value for cast specification or get rid of hard coding

    Koen Verbeeck (3/30/2012)


    Phil Parkin (3/30/2012)


    Or create a linked server on the TBL_A server to the server with the codes table. Then create a view on the TBL_A server which returns...

Viewing 15 posts - 10,816 through 10,830 (of 13,878 total)