Forum Replies Created

Viewing 15 posts - 1 through 15 (of 103 total)

  • RE: XML

    Mark Cowne - Friday, February 8, 2019 5:27 AM

    This should do it

    SELECT '001' AS "area",
           (SELECT --'admin@company.com' AS "notify",
          (SELECT ...

  • RE: XML

    Thom A - Friday, February 8, 2019 5:23 AM

    bicky1980 - Friday, February 8, 2019 3:19 AM

    February 8, 2019 at 6:45 am

    #2021489

  • RE: XML

    If I needed to drop the notify from XML how would I achieve this?

  • RE: XML

    Fantastic!  Does exactly as needed.

    Thanks very much!

  • RE: Sum values with an If?

    Great - I've adapted your statement, but using the case has solved the issue! Thanks

    I worded my original query slightly wrong too! Shoudl have said single=25, deposit=35, monthly=value in...

  • RE: Difference between two dates (Excluding Weekends)

    Thanks for all your responses!

    The ideal way as stated would be a using a calendar table.

    For Info: Working hours are not taken into consideration, only weekends need to...

  • RE: Bulk Insert - CSV with and without quotes

    Thanks for the replies, I'll have a look into reformatting the file with .net

  • RE: Count Records in Table and....

    Roland Alexander STL (1/2/2013)


    Well, it's not printing anything because @totalrecs is NULL when you concatentate it, and NULL concatenated with anything else yields NULL. You will need to assign @totalrecs...

  • RE: Count Records in Table and....

    2. What do you expect to happen when more than 2000 records are INSERTed into destination in the first query? In other words, 2000-count(*) is negative.

    Sorry- The first command...

  • RE: How to import data from .csv file into a table in sql server using bcp in/out

    I personally use a Bulk Insert statement:

    BULK INSERT [tablename]

    from '[Full File Path]'

    WITH ( BATCHSIZE = 100000, FIELDTERMINATOR = ',' )

  • RE: Merge Duplicate values

    Fantastic! Works Great!

  • RE: Merge Duplicate values

    No they are all labelled telno

  • RE: Merge Duplicate values

    Sorry, I wasn't very clear.

    The final table would have empty columns where there was less telephone numbers.

    I want each telephone number in a sperate column on the record e.g. telno1,...

  • RE: Help with Counts

    GSquared (1/19/2012)


    I see what the original method is doing. The way it goes about achieving it isn't particularly sensible, but it does have a functional pattern to it.

    Is the...

  • RE: Help with Counts

    Who's Gus?

Viewing 15 posts - 1 through 15 (of 103 total)