Forum Replies Created

Viewing 15 posts - 46 through 60 (of 290 total)

  • Reply To: nested subqueries vs separate queries performance difference

    Jonathan AC Roberts wrote:

    water490 wrote:

    Jonathan AC Roberts wrote:

    The optimiser should be able to simplify the query to remove the nesting so it might not make much difference.

    One of the big advantages of putting you...

  • Reply To: temp table level of precision

    Ken McKelvey wrote:

    water490 wrote:

    Jeff Moden wrote:

    water490 wrote:

    I have never used float for table definitions.  I am not sure why the INTO command I used ended up with that data type.

    You did some...

  • Reply To: nested subqueries vs separate queries performance difference

    Jonathan AC Roberts wrote:

    The optimiser should be able to simplify the query to remove the nesting so it might not make much difference.

    One of the big advantages of putting you results into...

  • Reply To: nested subqueries vs separate queries performance difference

    ratbak wrote:

    For some reason, you didn't ask -- perhaps deliberately -- about the simplest and probably the best option, which is just:

    SELECT field1,field2
    FROM table1

    Because there is no...

  • Reply To: temp table level of precision

    Jeff Moden wrote:

    water490 wrote:

    thank you everyone!

    I used the script that Jonathan provided.  It turns out that temp was using float when I used numeric.  Once I made this change the numbers...

  • Reply To: temp table level of precision

    thank you everyone!

    I used the script that Jonathan provided.  It turns out that temp was using float when I used numeric.  Once I made this change the numbers match.

  • Reply To: incremental load

    Phil Parkin wrote:

    How many tables are updated during this process?

    Does each table have date created / date modified columns?

    Is the incoming data purely inserts, or inserts + updates, or inserts +...

  • Reply To: SSIS error

    Jeffrey Williams wrote:

    Just curious - but you stated you are using SSIS, but here you are using a stored procedure to execute a BULK INSERT?

    I have to ask why you decided...

  • Reply To: SSIS error

    Ed B wrote:

    Does this work?

    'INSERT INTO DBO.DataTable
    SELECT *, NULL, ''N'' AS PROCESSED_FLAG
    FROM #TEMP_TABLE'

    it worked!  thank you so much!

    • This reply was modified 8 months, 3 weeks ago by  water490.
  • Reply To: SSIS error

    Ed B wrote:

    I assume the source file does not contain a processed_flag or processed_date column. I just ran a quick bulk insert test and when I added an extra column to...

  • Reply To: SSIS error

    MarkP wrote:

    Next step on the debug root now we've sorted the "is it plugged in" equivalent.

    Can you swap the exec for print so that you can see exactly what is...

  • Reply To: SSIS error

    MarkP wrote:

    I'd check your variables.  No sign of @FILEPATH being declared or populated anywhere in that.

    What does the execute statement of the stored procedure that you are issuing look like?

    [quote-1...

  • Reply To: SSIS error

    MarkP wrote:

    I'd check your variables.  No sign of @FILEPATH being declared or populated anywhere in that.

    What does the execute statement of the stored procedure that you are issuing look like?

    it...

  • Reply To: SSIS error

    frederico_fonseca wrote:

    error is very clear - your bulk insert is failing because of data conversion between input (your file) and the output (#TEMP_TABLE).

    it has Nothing to do with that flag...

    • This reply was modified 8 months, 3 weeks ago by  water490.
    • This reply was modified 8 months, 3 weeks ago by  water490.
    • This reply was modified 8 months, 3 weeks ago by  water490.
  • Reply To: SSIS error

    Jeff Moden wrote:

    Does you code actually look like what you posted?  I ask because there is no space between the terms "SET" and "Processed_Flag" and there needs to be.

    there are spaces. ...

Viewing 15 posts - 46 through 60 (of 290 total)