Forum Replies Created

Viewing 15 posts - 166 through 180 (of 297 total)

  • Reply To: Performing String Split on items which have been String Split

    There are of course several ways to do this, but since the format is pretty fixed, you could use this:

    DECLARE @TestString VARCHAR(MAX) = N'B0AF47E9-E161-4EAD-A690-99C06E80A4B4_11, 441D9F5D-D4AA-416F-8F09-F70DE5D36644_12';
    With sp_data as...
  • Reply To: What am I doing wrong with this subquery?

    It would obviously be easier to offer help if you'd only provide some kind of test data for us to play around with, and the desired outcome for the test...

  • Reply To: How to group the data by student name and display data in multi level

    kaj wrote:

    Looks like you already have all the data connected. Now you only need to have the data presented in the right way. That task is for reporting tools or...

  • Reply To: How to group the data by student name and display data in multi level

    Looks like you already have all the data connected. Now you only need to have the data presented in the right way. That task is for reporting tools or other...

    • This reply was modified 3 years, 6 months ago by kaj. Reason: typo
    • This reply was modified 3 years, 6 months ago by kaj.
  • Reply To: AND syntax

    Using your own syntax, the query could be:

    SELECT [VALUE] 
    FROM dbo.TABLE_1 t1
    WHERE
    IDMEASURE=(
    SELECT max(IDMEASURE)
    ...
  • Reply To: What am I doing wrong with this subquery?

    You might also want to investigate the aggregate function STRING_AGG(), which should make what I think you want very easy.

    https://docs.microsoft.com/en-us/sql/t-sql/functions/string-agg-transact-sql?view=sql-server-ver15

     

  • Reply To: Issue with Execute SQL Task in Sequence container returning 0 results

    Have you checked the scope of all the variables used? The right scope can have a big impact once you move to using containers.

    If you have defined the same variable...

  • Reply To: Weird issue when connecting to instance from DMZ computer

    A thought (it happens :-)):

    Have you tried looking at and comparing the routing tables on both servers to see if packages take the same route from both sides? Done a...

  • Reply To: C# String.Split() using a multi-character delimiter in a script task

    Have you tried string.Split(new string[] { "|--|" }) ?

    The split function is actually expecting an array of strings.

    https://docs.microsoft.com/en-us/dotnet/api/system.string.split?view=netframework-4.5

     

  • Reply To: Weird issue when connecting to instance from DMZ computer

    I retract my comment about HostRecordTTL being able to influence the stability of a connection. I saw TTL and somehow immediately assumed it was related to network TTL. Which...

    • This reply was modified 3 years, 7 months ago by kaj. Reason: Typo
  • Viewing 15 posts - 166 through 180 (of 297 total)