Forum Replies Created

Viewing 15 posts - 841 through 855 (of 13,874 total)

  • Reply To: Can find the issue for join that does not work

    Does Jonathan's (excellent) response solve your problem?


  • Reply To: Converting file name MMDDYYYY.txt to a Date Field

    kaj wrote:

    Make the filename use the international ISO format YYYYMMDD instead of that quaint american date format and you'll have no trouble at all. 🙂

    +1, this has the added benefit...


  • Reply To: Converting file name MMDDYYYY.txt to a Date Field

    Put the date into YYYYMMDD format before casting and it should work.

    DECLARE @x VARCHAR(100) = '09142023';

    SELECT @x
    ,SomeDate = CAST (CONCAT (RIGHT(@x,...

  • Reply To: How do I keep the cost of an Azure SQL Database down?

    Here is a possible approach.

    1. Get the code for your DB into a VS database project and check that into a DevOps Git repo.
    2. Set the database project to target...

  • Reply To: Creating a subquery which conflicts with the where clause...

    If you would provide just 10 rows of sample data, in consumable format, it would help a lot.


  • Reply To: Can find the issue for join that does not work

    Presumably, your question is not this:

    "Why are no results returned when I join on two columns containing values which do not match?"

    What is your real question?


  • Reply To: Can find the issue for join that does not work

    yrstruly wrote:

    The issue is, all of these tables dont have primary/secondary keys, which i brought in with sl code.

    Because these keys dont correspond to one another it gives me these...


  • Reply To: Running Top 1 over groups of data , to yield 1 result per group

    Like this?

    WITH ordered
    AS (SELECT *
    ,rn = ROW_NUMBER () OVER (PARTITION BY adc.channelid ORDER BY adc.recordcount DESC)
    ...

  • Reply To: Can find the issue for join that does not work

    You seem to have a lot of Postgres problems ... why not find a Postgres forum?

    There is a button that says 'Code' in your icon bar. With >3,000 points, you...


  • Reply To: Script Editor not opening

    Parthprajapati wrote:

    1. Repair Microsoft Visual Studio Tools for Applications. This is a common solution that has worked for many people. To do this, open Control Panel and go to Programs...

  • Reply To: Only getting few records into destination table

    Run the package in Visual Studio and add some data viewers in the data flow to find out what's going on and where the missing data is going.

    I suggest changing...


  • Reply To: when execute multi query on same time on sql serv using threading get error 40 ?

    Jeff Moden wrote:

    Maybe it's something wrong with FireFox but I see no "stack trace" in the original post.

    Here's a plain-text version for your delight:

    SqlException: Snix_Connect (provider: SNI_PN7, error: 40 - SNI_ERROR_40)

    Snix_Connect...


  • Reply To: Get the change record details with flag

    LearnSQL wrote:

    Any thoughts or suggestions on the above

    As I said, with no ordering, my thoughts are that it's impossible, because the flag could be set against a different row every...


  • Viewing 15 posts - 841 through 855 (of 13,874 total)