Forum Replies Created

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

  • RE: string to DATE failing when appending to a table.

    Many thanks Martin, 
    That was the missing step, setting the date type in the advanced tab of the source data. I had to do it for both the table creation...

  • RE: string to DATE failing when appending to a table.

    Cheers, 
    I'd be interested in what you find.

  • RE: string to DATE failing when appending to a table.

    OK, I'll try again in the hope that it provides more calrity on the issue I am having..... 

    I attach 3 files.

    1. The csv data file, Import1.csv (attached here as a...
  • RE: string to DATE failing when appending to a table.

    sgmunson - Wednesday, October 24, 2018 8:34 AM

    We're missing a few critical details here.   When you say you ran an import of...

  • RE: Avoiding duplicates from file import

    Thanks guys for the help. Think i've now something which will work. Still don't fully understand the surrogate key. Gotta research a bit more. Also ignored the 'merge' for the...

  • RE: Avoiding duplicates from file import

    daniel.freedman 80164 (11/12/2014)


    You may be over-thinking this a little. Just have a holding table with a surrogate key field and use that for the clustered index (the data is stored...

  • RE: Avoiding duplicates from file import

    Cheers Daniel,

    Holding table is the way to go for sure. Was going need that for other validation.

    Craig's idea to combine fields to make a key field is also going...

  • RE: Avoiding duplicates from file import

    Cheers Craig, for the quick response.

    Logically, i figured as much. Since i can't control the data coming in, I'd have to check against each existing record.

  • RE: Securing objects for a new user (what's the easiest way?)

    Cheers guys,

    I have used the script approach before, when adding new SP's for example, but its still tedious when i gotta list out all my stored procedures for...

  • RE: Restricting a sysadmin login

    Thanks Gail for the quick reply.

    Problem was i had a user with the same name, in the db users list.

    Once i remove it, then it allowed me to re-create...

  • RE: Consolidating records

    Luis Cazares (1/31/2014)


    It's more like:

    SELECT fname, lname, MAX(location1), MAX(location2)

    FROM #Something

    GROUP BY fname, lname

    You hit the nail on the head Louis.

    Many thanks 🙂

  • RE: Counting results

    Thanks again.

    Here's the code i ended with. (bit raw and needs tidying but works).

    (code has been simplified for ease of reading, and left out the obvious stuff. Changed...

  • RE: Counting results

    Thanks for help.

    I understand now that i have to work around, but have an answer if I use sum in place of count, and remove the results field. Gives...

  • RE: Counting results

    Gianluca Sartori (3/31/2010)


    Try using LEFT join instead of INNER JOIN, assigning a predetermined value to NULL answers (-1 in my example):

    No that did not work. But i see the...

  • RE: Counting results

    First many thanks for the really quick reply.

    Here's the code. While the second reply will get me an answer, results are in 2 colums. Need them as a list....

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