Congratulations!

[Valid Atom 1.0] This is a valid Atom 1.0 feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://stackoverflow.com/feeds/user/22194

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <feed xmlns="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:re="http://purl.org/atompub/rank/1.0">
  3.    <title type="text">User codeulike - Stack Overflow</title>
  4.    <link rel="self" href="https://stackoverflow.com/feeds/user/22194" type="application/atom+xml" />
  5.    <link rel="alternate" href="https://stackoverflow.com/users/22194" type="text/html" />
  6.    <subtitle>most recent 30 from stackoverflow.com</subtitle>
  7.    <updated>2024-04-26T20:49:07Z</updated>
  8.    <id>https://stackoverflow.com/feeds/user/22194</id>
  9.    <creativeCommons:license>https://creativecommons.org/licenses/by-sa/4.0/rdf</creativeCommons:license>
  10.            <entry>
  11.        <id>https://stackoverflow.com/questions/78073061/-/78073111#78073111</id>
  12.        <re:rank scheme="https://stackoverflow.com">4</re:rank>
  13.        <title type="text">Answer by codeulike for What is the maximum length that an Oracle Cloud ID (OCID) can have?</title>
  14.        <author>
  15.            <name>codeulike</name>
  16.            <uri>https://stackoverflow.com/users/22194</uri>
  17.        </author>
  18.        <link rel="alternate" href="https://stackoverflow.com/questions/78073061/what-is-the-maximum-length-that-an-oracle-cloud-id-ocid-can-have/78073111#78073111" />
  19.        <published>2024-02-28T08:54:59Z</published>
  20.        <updated>2024-02-28T08:54:59Z</updated>
  21.        <summary type="html">&lt;p&gt;You&#x27;re right, this doesn&#x27;t seem to be defined anywhere. e.g this is an oracle page talking about OCIDs but doesn&#x27;t give the length:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://docs.public.oneportal.content.oci.oraclecloud.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Resource_Identifiers&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.public.oneportal.content.oci.oraclecloud.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Resource_Identifiers&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;However I did find this obscure bit of code from some cloud-foundry thing:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://github.com/cloudfoundry-incubator/bosh-oracle-cpi-release/blob/master/src/github.com/oracle/bosh-oracle-cpi/vendor/oracle/oci/core/models/volume_backup_policy.go&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/cloudfoundry-incubator/bosh-oracle-cpi-release/blob/master/src/github.com/oracle/bosh-oracle-cpi/vendor/oracle/oci/core/models/volume_backup_policy.go&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;// The OCID of the volume backup policy.&#xA;// Required: true&#xA;// Max Length: 255&#xA;// Min Length: 1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So I&#x27;d say the max length is 255. I know its not much to go on, but 255 seems like a good bet for this sort of modern id.&lt;/p&gt;&#xA;</summary>
  22.    </entry>
  23.            <entry>
  24.        <id>https://stackoverflow.com/questions/78062577/-/78066544#78066544</id>
  25.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  26.        <title type="text">Answer by codeulike for SQL Query optimization for Join containing the DateTime</title>
  27.        <author>
  28.            <name>codeulike</name>
  29.            <uri>https://stackoverflow.com/users/22194</uri>
  30.        </author>
  31.        <link rel="alternate" href="https://stackoverflow.com/questions/78062577/sql-query-optimization-for-join-containing-the-datetime/78066544#78066544" />
  32.        <published>2024-02-27T09:46:56Z</published>
  33.        <updated>2024-02-27T09:46:56Z</updated>
  34.        <summary type="html">&lt;p&gt;Call me old school but sometimes a temp table is worth trying, especially if the proportion of employees with &lt;code&gt;ContractExpire &amp;gt; &#x27;20240410&#x27;&lt;/code&gt; is only a fraction of the total. The idea is that this forces the optimiser to only spend time looking at the subset that you&#x27;re interested in.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT e.EmpID, t.Status, t.Id&#xA;INTO #temptransactions&#xA;FROM Employee e&#xA;INNER JOIN Transactions t ON e.EmpID = t.EmpID &#xA;WHERE e.ContractExpire &amp;gt; &#x27;20240410&#x27;&#xA;&#xA;-- creating index is optional but will probably help&#xA;CREATE INDEX idx_temptransactions on #temptransactions(EmpId, Id)&#xA;&#xA;&#xA;SELECT COUNT(DISTINCT t1.EmpID) &#xA;FROM #temptransactions t1 &#xA;    INNER JOIN (SELECT EmpId,MAX(Id) as maxId &#xA;          FROM #temptransactions t2&#xA;          GROUP BY EmpId) newest&#xA;    ON newest.EmpId = t1.EmpId&#xA;    AND newest.maxId = t1.Id&#xA;WHERE t1.Status = 20&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;</summary>
  35.    </entry>
  36.            <entry>
  37.        <id>https://stackoverflow.com/questions/1256925/-/9862901#9862901</id>
  38.        <re:rank scheme="https://stackoverflow.com">50</re:rank>
  39.        <title type="text">Answer by codeulike for SSRS multi-value parameter using a stored procedure</title>
  40.        <author>
  41.            <name>codeulike</name>
  42.            <uri>https://stackoverflow.com/users/22194</uri>
  43.        </author>
  44.        <link rel="alternate" href="https://stackoverflow.com/questions/1256925/ssrs-multi-value-parameter-using-a-stored-procedure/9862901#9862901" />
  45.        <published>2012-03-25T18:40:54Z</published>
  46.        <updated>2024-02-07T22:54:23Z</updated>
  47.        <summary type="html">&lt;p&gt;You need three things:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;p&gt;In the SSRS dataset properties, pass the multi-value param to the stored procedure as a comma-delimited string&lt;/p&gt;&#xA; &lt;pre class=&quot;lang-vb prettyprint-override&quot;&gt;&lt;code&gt; =Join(Parameters!TerritoryMulti.Value, &amp;quot;,&amp;quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In SQL Server, you need a table-value function that can split a comma-delimited string back out into a mini table (eg &lt;a href=&quot;https://stackoverflow.com/a/512300/22194&quot;&gt;see here&lt;/a&gt;). edit: Since SQL Server 2016 you can use the built-in function &lt;code&gt;STRING_SPLIT&lt;/code&gt; for this&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;In the stored procedure, have a where clause something like this:&lt;/p&gt;&#xA; &lt;pre class=&quot;lang-sql prettyprint-override&quot;&gt;&lt;code&gt; WHERE sometable.TerritoryID in (select value from STRING_SPLIT(@TerritoryMulti,&#x27;,&#x27;))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;... where STRING_SPLIT is splitting the comma-delimited string back out into a table structure. NB: If you&#x27;re on something older than SQL Server 2016 you&#x27;ll need a custom function here instead of STRING_SPLIT, e.g. &lt;a href=&quot;https://stackoverflow.com/a/512300/22194&quot;&gt;see here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;(Full steps and code in my blog post &#x27;&lt;a href=&quot;https://codeulike.com/2012/03/ssrs-multi-value-parameters-with-less.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;SSRS multi-value parameters with less fail&lt;/a&gt;&#x27;):&lt;/p&gt;&#xA;</summary>
  48.    </entry>
  49.            <entry>
  50.        <id>https://stackoverflow.com/questions/77788170/removing-1-and-2-from-a-string-with-out-removing-11-and-12/77788351#77788351</id>
  51.        <re:rank scheme="https://stackoverflow.com">2</re:rank>
  52.        <title type="text">Answer by codeulike for Removing &quot;1, &quot; and &quot;2, &quot; from a string with out removing &quot;11, &quot; and &quot;12, &quot;</title>
  53.        <author>
  54.            <name>codeulike</name>
  55.            <uri>https://stackoverflow.com/users/22194</uri>
  56.        </author>
  57.        <link rel="alternate" href="https://stackoverflow.com/questions/77788170/removing-1-and-2-from-a-string-with-out-removing-11-and-12/77788351#77788351" />
  58.        <published>2024-01-09T16:37:39Z</published>
  59.        <updated>2024-01-09T17:05:57Z</updated>
  60.        <summary type="html">&lt;p&gt;edit: after typing all this out, I see its similar to the answer Thom A already gave except I&#x27;m using CTEs instead of creating tables.&lt;/p&gt;&#xA;&lt;p&gt;You can use STRING_SPLIT to pivot the csv field into proper data, then process that data, then use STRING_AGG to unpivot it back into a csv field.&lt;/p&gt;&#xA;&lt;p&gt;STRING_SPLIT was introduced in SQL Server 2016&lt;br /&gt;&#xA;STRING_AGG was introduced in SQL Server 2017&lt;/p&gt;&#xA;&lt;p&gt;For example if your key is MyPrimaryKey and the field with the CSV data is called CsvField you can split it out like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;select t.MyPrimaryKey, LTRIM(RTRIM(split.value)) as split_out&#xA;from MyTable t&#xA;    cross apply STRING_SPLIT(t.CsvField,&#x27;,&#x27;) as split&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will give you separate rows for each value like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;MyPrimaryKey split_out&#xA;------------ ---------&#xA;one          2&#xA;one          3&#xA;one          4&#xA;one          5&#xA;one          6&#xA;two          1&#xA;two          2&#xA;     etc...&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Once you&#x27;ve got it in that format, you can easily remove the values you dont want, using something like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;with cteStageOne as (&#xA;    select t.MyPrimaryKey, LTRIM(RTRIM(split.value)) as split_out&#xA;    from MyTable t&#xA;        cross apply STRING_SPLIT(t.CsvField,&#x27;,&#x27;) as split&#xA;)&#xA;select *&#xA;from cteStageOne&#xA;where split_out not in (&#x27;1&#x27;,&#x27;2&#x27;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here&#x27;s a complete solution that re-aggregates the strings back together:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;with cteStageOne as (&#xA;    select t.MyPrimaryKey, LTRIM(RTRIM(split.value)) as split_out&#xA;    from MyTable t&#xA;        cross apply STRING_SPLIT(t.CsvField,&#x27;,&#x27;) as split&#xA;), cteStageTwo as (&#xA;    select MyPrimaryKey, split_out&#xA;    from cteStageOne&#xA;    where split_out not in (&#x27;1&#x27;,&#x27;2&#x27;)&#xA;)&#xA;select MyPrimaryKey, STRING_AGG(split_out,&#x27;, &#x27;) as recombine&#xA;from cteStageTwo&#xA;group by MyPrimaryKey&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;</summary>
  61.    </entry>
  62.    <entry>
  63.        <id>https://stackoverflow.com/q/5694241</id>
  64.        <re:rank scheme="https://stackoverflow.com">238</re:rank>
  65.        <title type="text">DDD - the rule that Entities can&#x27;t access Repositories directly</title>
  66.            <category scheme="https://stackoverflow.com/tags" term="oop" />
  67.            <category scheme="https://stackoverflow.com/tags" term="domain-driven-design" />
  68.            <category scheme="https://stackoverflow.com/tags" term="repository-pattern" />
  69.            <category scheme="https://stackoverflow.com/tags" term="s#arp-architecture" />
  70.        <author>
  71.            <name>codeulike</name>
  72.            <uri>https://stackoverflow.com/users/22194</uri>
  73.        </author>
  74.        <link rel="alternate" href="https://stackoverflow.com/questions/5694241/ddd-the-rule-that-entities-cant-access-repositories-directly" />
  75.        <published>2011-04-17T15:02:02Z</published>
  76.        <updated>2023-12-22T20:58:06Z</updated>
  77.        <summary type="html">
  78.            &lt;p&gt;In Domain Driven Design, there seems to be &lt;a href=&quot;http://thinkddd.com/blog/2009/03/02/the-specification-pattern/&quot; rel=&quot;noreferrer&quot;&gt;lots&lt;/a&gt; of &lt;a href=&quot;https://stackoverflow.com/questions/827670/is-it-ok-for-entities-to-access-repositories/827693#827693&quot;&gt;agreement&lt;/a&gt; that Entities should not access Repositories directly. &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Did this come from Eric Evans &lt;a href=&quot;http://www.amazon.co.uk/Domain-driven-Design-Tackling-Complexity-Software/dp/0321125215&quot; rel=&quot;noreferrer&quot;&gt;Domain Driven Design&lt;/a&gt; book, or did it come from elsewhere?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Where are there some good explanations for the reasoning behind it?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;edit: To clarify: I&#x27;m not talking about the classic OO practice of separating data access off into a separate layer from the business logic - I&#x27;m talking about the specific arrangement whereby in DDD, Entities are not supposed to talk to the data access layer at all (i.e. they are not supposed to hold references to Repository objects)&lt;/p&gt;&#xA;&#xA;&lt;p&gt;update: I gave the bounty to BacceSR because his answer seemed closest, but I&#x27;m still pretty in the dark about this. If its such an important principle, there should be some good articles about it online somewhere, surely?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;update: March 2013, the upvotes on the question imply there&#x27;s a lot of interest in this, and even though there&#x27;s been lots of answers, I still think there&#x27;s room for more if people have ideas about this.&lt;/p&gt;&#xA;
  79.        </summary>
  80.    </entry>
  81.    <entry>
  82.        <id>https://stackoverflow.com/q/74070542</id>
  83.        <re:rank scheme="https://stackoverflow.com">2</re:rank>
  84.        <title type="text">Powershell Add-Member with an expression for the value</title>
  85.            <category scheme="https://stackoverflow.com/tags" term="powershell" />
  86.            <category scheme="https://stackoverflow.com/tags" term="calculated-property" />
  87.        <author>
  88.            <name>codeulike</name>
  89.            <uri>https://stackoverflow.com/users/22194</uri>
  90.        </author>
  91.        <link rel="alternate" href="https://stackoverflow.com/questions/74070542/powershell-add-member-with-an-expression-for-the-value" />
  92.        <published>2022-10-14T14:10:12Z</published>
  93.        <updated>2023-10-29T20:23:43Z</updated>
  94.        <summary type="html">
  95.            &lt;p&gt;Trying to add a new member to an array of powershell objects, can&#x27;t get the expression to evaluate. Here&#x27;s some example code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$testData =&#xA;@([pscustomobject]@{Name=&amp;quot;Cat&amp;quot;;Legs=4},&#xA;[pscustomobject]@{Name=&amp;quot;Parrot&amp;quot;;Legs=2},&#xA;[pscustomobject]@{Name=&amp;quot;Snake&amp;quot;;Legs=0})&#xA;&#xA;# this works&#xA;$testData | Select-Object Name, Legs, @{N=&#x27;CopyName&#x27;;E={$_.Name}}&#xA;&#xA;# why doesnt this work?&#xA;$testData | Add-Member -NotePropertyName &amp;quot;CopyName&amp;quot; -NotePropertyValue $_.Name&#xA;$testData&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;(Using Powershell 7)&lt;/p&gt;&#xA;
  96.        </summary>
  97.    </entry>
  98.            <entry>
  99.        <id>https://stackoverflow.com/questions/69947188/-/77074351#77074351</id>
  100.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  101.        <title type="text">Answer by codeulike for Load data to Salesforce using ADF SF connector</title>
  102.        <author>
  103.            <name>codeulike</name>
  104.            <uri>https://stackoverflow.com/users/22194</uri>
  105.        </author>
  106.        <link rel="alternate" href="https://stackoverflow.com/questions/69947188/load-data-to-salesforce-using-adf-sf-connector/77074351#77074351" />
  107.        <published>2023-09-09T23:28:55Z</published>
  108.        <updated>2023-09-09T23:28:55Z</updated>
  109.        <summary type="html">&lt;p&gt;ADF now has a built-in &lt;a href=&quot;https://learn.microsoft.com/en-us/azure/data-factory/connector-salesforce?tabs=data-factory&quot; rel=&quot;nofollow noreferrer&quot;&gt;Salesforce Connector&lt;/a&gt;. It uses Bulk API V1 but thats perfectly respectable - Bulk API V1 and V2 co-exist and V1 is better in some ways*&lt;/p&gt;&#xA;&lt;p&gt;The ADF Salesforce Connector is pretty good but if you want to retrieve the results of a bulk load (which rows failed etc) you have to jump through a few hoops, see &lt;a href=&quot;https://www.codeulike.com/posts/2023/adf-salesforce&quot; rel=&quot;nofollow noreferrer&quot;&gt;blog post&lt;/a&gt; about it.&lt;/p&gt;&#xA;&lt;p&gt;* re: Bulk API V1 and V2: I prefer V1 because it lets you retrieve results via the UI, but V2 doesn&#x27;t. V1 lets you set a batch size but V2 doesn&#x27;t, etc.&lt;/p&gt;&#xA;</summary>
  110.    </entry>
  111.            <entry>
  112.        <id>https://stackoverflow.com/questions/837358/-/837378#837378</id>
  113.        <re:rank scheme="https://stackoverflow.com">14</re:rank>
  114.        <title type="text">Answer by codeulike for CREATE LOGIN - can&#x27;t use @parameter as username</title>
  115.        <author>
  116.            <name>codeulike</name>
  117.            <uri>https://stackoverflow.com/users/22194</uri>
  118.        </author>
  119.        <link rel="alternate" href="https://stackoverflow.com/questions/837358/create-login-cant-use-parameter-as-username/837378#837378" />
  120.        <published>2009-05-07T22:25:04Z</published>
  121.        <updated>2023-08-11T11:40:57Z</updated>
  122.        <summary type="html">&lt;p&gt;Apparently CREATE LOGIN only accepts literals.&#xA;You could try wrapping it in an exec and building it as a string:&lt;/p&gt;&#xA;&lt;p&gt;Add &lt;code&gt;quotename&lt;/code&gt; for safety from sql injection attacks&lt;/p&gt;&#xA;&lt;pre class=&quot;lang-sql prettyprint-override&quot;&gt;&lt;code&gt;DECLARE @sql nvarchar(max) = &#x27;CREATE LOGIN &#x27; &#x2B; quotename(@username) &#x2B; &#x27; WITH PASSWORD = &#x27; &#x2B; quotename(@password, &#x27;&#x27;&#x27;&#x27;);&#xA;EXEC(@sql)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;</summary>
  123.    </entry>
  124.    <entry>
  125.        <id>https://stackoverflow.com/q/4080215</id>
  126.        <re:rank scheme="https://stackoverflow.com">4</re:rank>
  127.        <title type="text">Salesforce API: get the time on the Salesforce server</title>
  128.            <category scheme="https://stackoverflow.com/tags" term="time" />
  129.            <category scheme="https://stackoverflow.com/tags" term="salesforce" />
  130.        <author>
  131.            <name>codeulike</name>
  132.            <uri>https://stackoverflow.com/users/22194</uri>
  133.        </author>
  134.        <link rel="alternate" href="https://stackoverflow.com/questions/4080215/salesforce-api-get-the-time-on-the-salesforce-server" />
  135.        <published>2010-11-02T17:09:36Z</published>
  136.        <updated>2023-05-12T12:28:05Z</updated>
  137.        <summary type="html">
  138.            &lt;p&gt;With the Salesforce API, is there a way to get the current time on the Salesforce server?&lt;/p&gt;&#xA;
  139.        </summary>
  140.    </entry>
  141.    <entry>
  142.        <id>https://stackoverflow.com/q/74110642</id>
  143.        <re:rank scheme="https://stackoverflow.com">3</re:rank>
  144.        <title type="text">Powershell - how to read Ansi CSV file</title>
  145.            <category scheme="https://stackoverflow.com/tags" term="powershell" />
  146.            <category scheme="https://stackoverflow.com/tags" term="powershell-7.2" />
  147.        <author>
  148.            <name>codeulike</name>
  149.            <uri>https://stackoverflow.com/users/22194</uri>
  150.        </author>
  151.        <link rel="alternate" href="https://stackoverflow.com/questions/74110642/powershell-how-to-read-ansi-csv-file" />
  152.        <published>2022-10-18T12:01:15Z</published>
  153.        <updated>2023-04-06T08:36:13Z</updated>
  154.        <summary type="html">
  155.            &lt;p&gt;Notepad&#x2B;&#x2B; says the CSV file is Ansi encoded.&lt;/p&gt;&#xA;&lt;p&gt;The Powershell 7 Import-CSV commandlet has various -Encoding options but &#x27;Ansi&#x27; is not one of them.&lt;/p&gt;&#xA;&lt;p&gt;How do I get Powershell to read this CSV without mangling it?&lt;/p&gt;&#xA;&lt;p&gt;The options for -Encoding are:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ascii&lt;/li&gt;&#xA;&lt;li&gt;bigendianunicode&lt;/li&gt;&#xA;&lt;li&gt;bigendianutf32&lt;/li&gt;&#xA;&lt;li&gt;oem&lt;/li&gt;&#xA;&lt;li&gt;unicode&lt;/li&gt;&#xA;&lt;li&gt;utf7&lt;/li&gt;&#xA;&lt;li&gt;utf8&lt;/li&gt;&#xA;&lt;li&gt;utf8BOM&lt;/li&gt;&#xA;&lt;li&gt;utf8NoBOM&lt;/li&gt;&#xA;&lt;li&gt;utf32&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;
  156.        </summary>
  157.    </entry>
  158.            <entry>
  159.        <id>https://stackoverflow.com/questions/75743627/-/75744017#75744017</id>
  160.        <re:rank scheme="https://stackoverflow.com">1</re:rank>
  161.        <title type="text">Answer by codeulike for I get runtime error when editing a currently existing recordset in my vba module</title>
  162.        <author>
  163.            <name>codeulike</name>
  164.            <uri>https://stackoverflow.com/users/22194</uri>
  165.        </author>
  166.        <link rel="alternate" href="https://stackoverflow.com/questions/75743627/i-get-runtime-error-when-editing-a-currently-existing-recordset-in-my-vba-module/75744017#75744017" />
  167.        <published>2023-03-15T11:20:59Z</published>
  168.        <updated>2023-03-15T11:20:59Z</updated>
  169.        <summary type="html">&lt;p&gt;Runtime error runtime error &#x27;-214352571(80020005)&#x27; usually means Type Mismatch which means you&#x27;ve got some sort of problem with strings vs numbers or maybe a null value problem.&lt;/p&gt;&#xA;&lt;p&gt;This line is giving the error:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.kolCod.AddItem kol!klC&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;... and I think this line is pulling a value from a recordset and adding it to a combobox as an item?&lt;/p&gt;&#xA;&lt;p&gt;What is the value of kol!klC? Maybe it is null? In which case you could try this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;.kolCod.AddItem Nz(kol!klC,&amp;quot;(empty)&amp;quot;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;</summary>
  170.    </entry>
  171.            <entry>
  172.        <id>https://stackoverflow.com/questions/75734744/-/75734825#75734825</id>
  173.        <re:rank scheme="https://stackoverflow.com">4</re:rank>
  174.        <title type="text">Answer by codeulike for C# Null Coalescing for choosing between an object&#x27;s properties?</title>
  175.        <author>
  176.            <name>codeulike</name>
  177.            <uri>https://stackoverflow.com/users/22194</uri>
  178.        </author>
  179.        <link rel="alternate" href="https://stackoverflow.com/questions/75734744/c-sharp-null-coalescing-for-choosing-between-an-objects-properties/75734825#75734825" />
  180.        <published>2023-03-14T14:57:48Z</published>
  181.        <updated>2023-03-14T15:04:38Z</updated>
  182.        <summary type="html">&lt;p&gt;I would add it to the class&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;class User{&#xA;  long Id;&#xA;  string FirstName;&#xA;  string Nickname;&#xA;&#xA;  string NameToBeCalledBy { &#xA;    get { return this.Nickname ?? this.FirstName; }&#xA;  }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then you can do&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;string nameToBeCalledBy = locationObj.Users.First(u =&amp;gt; u.Id == 1).NameToBeCalledBy;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Thats kindof what classes were for, in the old days, to keep methods related to an object&#x27;s data near that data. Although the .Select() answers people have given are also pretty tidy.&lt;/p&gt;&#xA;</summary>
  183.    </entry>
  184.            <entry>
  185.        <id>https://stackoverflow.com/questions/1303075/-/1303126#1303126</id>
  186.        <re:rank scheme="https://stackoverflow.com">2</re:rank>
  187.        <title type="text">Answer by codeulike for Nothing from Property TagKey()</title>
  188.        <author>
  189.            <name>codeulike</name>
  190.            <uri>https://stackoverflow.com/users/22194</uri>
  191.        </author>
  192.        <link rel="alternate" href="https://stackoverflow.com/questions/1303075/nothing-from-property-tagkey/1303126#1303126" />
  193.        <published>2009-08-19T23:15:31Z</published>
  194.        <updated>2022-12-21T15:02:47Z</updated>
  195.        <summary type="html">&lt;p&gt;It&#x2019;s possible to get rid of the containing tag with a CompositeControl, but it&#x2019;s working against the way CompositeControl likes to work (see below).&lt;/p&gt;&#xA;&lt;p&gt;The proper way, apparently, is to set TagKey to whatever the main tag of your control actually is (a div, table, or whatever).&lt;/p&gt;&#xA;&lt;p&gt;Then override AddAttributesToRender() to set the attributes you want on your wrapper tag.&lt;/p&gt;&#xA;&lt;p&gt;The stuff you want inside the wrapping tags should be rendered by overriding the RenderContents() method.&lt;/p&gt;&#xA;&lt;p&gt;CompositeControl inherits from WebControl. See a discussion of the user of TagKey and AddAttributesToRender() &lt;a href=&quot;https://learn.microsoft.com/en-us/previous-versions/f820d25y%28v=vs.140%29&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Someone on GeeksWithBlogs writes about a similar issue &lt;a href=&quot;https://web.archive.org/web/20190904010434/http://geekswithblogs.net/mcastro/archive/2006/01/19/66393.aspx&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To just get rid of the wrapping though, see this &lt;a href=&quot;https://social.msdn.microsoft.com/Forums/en-US/aadf87a5-1c27-48b0-b60a-986f74ed659b/removing-span-tags-in-custom-control-amp-tabindex?forum=aspservercontrols&quot; rel=&quot;nofollow noreferrer&quot;&gt;forum post&lt;/a&gt; that shows a way to override the control constructor and the RenderBeginTag and RenderEndTag methods to remove the wrapping tags.&lt;/p&gt;&#xA;</summary>
  196.    </entry>
  197.            <entry>
  198.        <id>https://stackoverflow.com/questions/72200372/active-directory-web-service-adws-is-missing-on-windows-10-pro/74578746#74578746</id>
  199.        <re:rank scheme="https://stackoverflow.com">2</re:rank>
  200.        <title type="text">Answer by codeulike for Active directory web service (ADWS) is missing on Windows 10 Pro</title>
  201.        <author>
  202.            <name>codeulike</name>
  203.            <uri>https://stackoverflow.com/users/22194</uri>
  204.        </author>
  205.        <link rel="alternate" href="https://stackoverflow.com/questions/72200372/active-directory-web-service-adws-is-missing-on-windows-10-pro/74578746#74578746" />
  206.        <published>2022-11-26T00:02:18Z</published>
  207.        <updated>2022-11-26T00:02:18Z</updated>
  208.        <summary type="html">&lt;p&gt;The Powershell ActiveDirectory examples that you find on the web usually assume you are using a PC thats on the domain, and you are logged into that PC as a domain user. But often these days thats not the case.&lt;/p&gt;&#xA;&lt;p&gt;These days people are often logged into their own PC as &#x27;Joe&#x27; and connected via VPN to a company&#x27;s domain, with the DC running in Azure somewhere.&lt;/p&gt;&#xA;&lt;p&gt;And when its like that, you have to tell the cmdlet where the DC is, and supply some credentials. So you do that like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Get-ADUser -Server (name or IP address of DC) -Credential (Get-Credential) -filter *&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The &#x27;Get-Credential&#x27; bit will interactively ask you for credentials - you need to supply credentials for a user in the domain&lt;/p&gt;&#xA;</summary>
  209.    </entry>
  210.            <entry>
  211.        <id>https://stackoverflow.com/questions/1785474/-/74566541#74566541</id>
  212.        <re:rank scheme="https://stackoverflow.com">4</re:rank>
  213.        <title type="text">Answer by codeulike for Get index of current item in a PowerShell loop</title>
  214.        <author>
  215.            <name>codeulike</name>
  216.            <uri>https://stackoverflow.com/users/22194</uri>
  217.        </author>
  218.        <link rel="alternate" href="https://stackoverflow.com/questions/1785474/get-index-of-current-item-in-a-powershell-loop/74566541#74566541" />
  219.        <published>2022-11-24T21:55:52Z</published>
  220.        <updated>2022-11-24T21:55:52Z</updated>
  221.        <summary type="html">&lt;p&gt;I found &lt;a href=&quot;https://stackoverflow.com/a/1785546/22194&quot;&gt;C&#xE9;dric Rup&#x27;s answer&lt;/a&gt; very helpful but if (like me) you are confused by the &#x27;%&#x27; syntax/alias, here it is expanded out:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$letters = { &#x27;A&#x27;, &#x27;B&#x27;, &#x27;C&#x27; }&#xA;$letters | ForEach-Object -Begin {$counter = 0} -Process {...;$counter&#x2B;&#x2B;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;</summary>
  222.    </entry>
  223.            <entry>
  224.        <id>https://stackoverflow.com/questions/74261797/sql-how-to-select-data-countries-that-only-has-code-with-3-characters/74261866#74261866</id>
  225.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  226.        <title type="text">Answer by codeulike for SQL How to select data (countries) that only has code with 3 characters?</title>
  227.        <author>
  228.            <name>codeulike</name>
  229.            <uri>https://stackoverflow.com/users/22194</uri>
  230.        </author>
  231.        <link rel="alternate" href="https://stackoverflow.com/questions/74261797/sql-how-to-select-data-countries-that-only-has-code-with-3-characters/74261866#74261866" />
  232.        <published>2022-10-31T10:24:05Z</published>
  233.        <updated>2022-10-31T10:24:05Z</updated>
  234.        <summary type="html">&lt;p&gt;Like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;select count(distinct country) as &amp;quot;Number of Countries&amp;quot; &#xA;FROM owid_energy_data    &#xA;where len(iso_code) = 3&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;</summary>
  235.    </entry>
  236.    <entry>
  237.        <id>https://stackoverflow.com/q/74123310</id>
  238.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  239.        <title type="text">Powershell function returns Array of Arrays, but gets flattened if only 1 Array [duplicate]</title>
  240.            <category scheme="https://stackoverflow.com/tags" term="powershell" />
  241.            <category scheme="https://stackoverflow.com/tags" term="multidimensional-array" />
  242.        <author>
  243.            <name>codeulike</name>
  244.            <uri>https://stackoverflow.com/users/22194</uri>
  245.        </author>
  246.        <link rel="alternate" href="https://stackoverflow.com/questions/74123310/powershell-function-returns-array-of-arrays-but-gets-flattened-if-only-1-array" />
  247.        <published>2022-10-19T09:52:08Z</published>
  248.        <updated>2022-10-19T09:52:08Z</updated>
  249.        <summary type="html">
  250.            &lt;p&gt;So I&#x27;ve got a long list of strings that I am arranging into &#x27;chunks&#x27; of (say) 10. So the data structure for that is an array of &#x27;chunks&#x27; where each &#x27;chunk&#x27; is an array of up to 10 strings. So you can imagine it like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Chunk Array&#xA;-----------&#xA;a,b,c,d,e,f,g,h,i,j    &amp;lt;-- an array of 10 strings&#xA;h,i,j,k,l,m,n,o,p,q    &amp;lt;-- an array of 10 strings&#xA;r,s,t                  &amp;lt;-- an array of 3 strings&#xA;&#xA;^ So this is an array of three &#x27;chunks&#x27;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have a function that takes in a long list and outputs an array of chunks as above. The function is &lt;a href=&quot;https://stackoverflow.com/a/20112686/22194&quot;&gt;from here&lt;/a&gt; and for most cases it works well.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function ChunkBy($items,[int]$size) {&#xA;    $list = new-object System.Collections.ArrayList&#xA;    $tmpList = new-object System.Collections.ArrayList&#xA;    foreach($item in $items) {&#xA;        $tmpList.Add($item) | out-null&#xA;        if ($tmpList.Count -ge $size) {&#xA;            $list.Add($tmpList.ToArray()) | out-null&#xA;            $tmpList.Clear()&#xA;        }&#xA;    }&#xA;&#xA;    if ($tmpList.Count -gt 0) {&#xA;        $list.Add($tmpList.ToArray()) | out-null&#xA;    }&#xA;&#xA;    return $list.ToArray()&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The problem is that if you call the function with a small list that will result in only one &#x27;chunk&#x27;, powershell flattens the outer array, so instead of an array containing one &#x27;chunk&#x27;, you get a flat array of strings.&lt;/p&gt;&#xA;&lt;p&gt;Here&#x27;s a little helper function to write the chunk structure to the console:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function ShowChunks($items)&#xA;{&#xA;    Write-Output &amp;quot; &amp;quot;&#xA;    Write-Output &amp;quot;array has $($items.Length) chunks&amp;quot;&#xA;    Write-Output &amp;quot;-----------------&amp;quot;&#xA;    foreach($c in $items)&#xA;    {   &#xA;        [system.String]::Join(&amp;quot;,&amp;quot;, $c)&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And here&#x27;s some test code to demonstrate the problem, using the two functions above&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$testArray = (&amp;quot;a&amp;quot;,&amp;quot;b&amp;quot;,&amp;quot;c&amp;quot;,&amp;quot;d&amp;quot;,&amp;quot;e&amp;quot;)&#xA;&#xA;$res1 = ChunkBy $testArray 3&#xA;ShowChunks $res1&#xA;&#xA;$res2 = ChunkBy $testArray 6&#xA;ShowChunks $res2&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;$res1 is fine. But for $res2 this gives:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array has 5 chunks&#xA;-----------------&#xA;a&#xA;b&#xA;c&#xA;d&#xA;e&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But really what I want is:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;array has 1 chunks&#xA;-----------------&#xA;a,b,c,d,e&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;So to summarise, the problem is:&lt;/p&gt;&#xA;&lt;p&gt;I&#x27;ve got a function that returns an &#x27;Array of Arrays&#x27;, but when there&#x27;s only one Array to return, instead of an &#x27;Array of one Array&#x27;, I just get an &#x27;Array&#x27;.&lt;/p&gt;&#xA;&lt;p&gt;This happens because of Powershells tendancy to flatten one-element arrays into just an element. How can we fix it?&lt;/p&gt;&#xA;
  251.        </summary>
  252.    </entry>
  253.            <entry>
  254.        <id>https://stackoverflow.com/questions/3825901/-/3826040#3826040</id>
  255.        <re:rank scheme="https://stackoverflow.com">16</re:rank>
  256.        <title type="text">Answer by codeulike for Bulk insert fixed width fields</title>
  257.        <author>
  258.            <name>codeulike</name>
  259.            <uri>https://stackoverflow.com/users/22194</uri>
  260.        </author>
  261.        <link rel="alternate" href="https://stackoverflow.com/questions/3825901/bulk-insert-fixed-width-fields/3826040#3826040" />
  262.        <published>2010-09-29T21:34:45Z</published>
  263.        <updated>2022-10-13T19:26:00Z</updated>
  264.        <summary type="html">&lt;p&gt;I think you need to define a format file&lt;/p&gt;&#xA;&lt;p&gt;e.g.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;BULK INSERT TableA FROM &#x27;C:\Temp\TableA.txt&#x27;&#xA;WITH (FORMATFILE = &#x27;C:\Temp\Format.xml&#x27;)&#xA;SELECT * FROM TableA&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;For that to work, though, you need a Format File, obviously.&lt;/p&gt;&#xA;&lt;p&gt;See here for general info about creating one:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms191516%28v=SQL.90%29.aspx&quot; rel=&quot;nofollow noreferrer&quot;&gt;Creating a Format File&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;At a guess, from looking at the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms189327%28v=SQL.90%29.aspx&quot; rel=&quot;nofollow noreferrer&quot;&gt;Schema&lt;/a&gt;, something like this might do it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&#xA;&amp;lt;BCPFORMAT xmlns=&amp;quot;http://schemas.microsoft.com/sqlserver/2004/bulkload/format&amp;quot; xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;&amp;gt;&#xA;&amp;lt;RECORD&amp;gt;&#xA;  &amp;lt;FIELD ID=&amp;quot;1&amp;quot; xsi:type=&amp;quot;CharFixed&amp;quot; LENGTH=&amp;quot;3&amp;quot;/&amp;gt;&#xA;  &amp;lt;FIELD ID=&amp;quot;2&amp;quot; xsi:type=&amp;quot;CharFixed&amp;quot; LENGTH=&amp;quot;3&amp;quot;/&amp;gt;&#xA;&amp;lt;/RECORD&amp;gt;&#xA;&amp;lt;ROW&amp;gt;&#xA;  &amp;lt;COLUMN SOURCE=&amp;quot;1&amp;quot; NAME=&amp;quot;Field1&amp;quot; xsi:type=&amp;quot;SQLCHAR&amp;quot; LENGTH=&amp;quot;3&amp;quot;/&amp;gt;&#xA;  &amp;lt;COLUMN SOURCE=&amp;quot;2&amp;quot; NAME=&amp;quot;Field2&amp;quot; xsi:type=&amp;quot;SQLCHAR&amp;quot; LENGTH=&amp;quot;3&amp;quot;/&amp;gt;&#xA;&amp;lt;/ROW&amp;gt;&#xA;&amp;lt;/BCPFORMAT&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;</summary>
  265.    </entry>
  266.            <entry>
  267.        <id>https://stackoverflow.com/questions/73972961/-/73973057#73973057</id>
  268.        <re:rank scheme="https://stackoverflow.com">-1</re:rank>
  269.        <title type="text">Answer by codeulike for ERROR: &#x27;Incorrect syntax near the keyword &#x27;ORDER&#x27;.&#x27;</title>
  270.        <author>
  271.            <name>codeulike</name>
  272.            <uri>https://stackoverflow.com/users/22194</uri>
  273.        </author>
  274.        <link rel="alternate" href="https://stackoverflow.com/questions/73972961/error-incorrect-syntax-near-the-keyword-order/73973057#73973057" />
  275.        <published>2022-10-06T11:30:02Z</published>
  276.        <updated>2022-10-06T11:40:16Z</updated>
  277.        <summary type="html">&lt;p&gt;Probably, you just need to give the subquery an alias:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT TOP 20 * FROM &#xA;    (&#xA;      SELECT DISTINCT&#xA;         p.ItemGroupName, p.Varenummer, s.EAN, s.inventoryQuantity &#xA;      FROM &#xA;        ShopInventory s, ProductData p&#xA;     WHERE s.EAN = p.EAN&#xA;) mytable&#xA;ORDER BY cast(inventoryQuantity AS int) DESC&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Some would say you are using the old join syntax instead of the recommended JOIN clause but for the purposes of solving your question I think thats a bit of a distraction. If you&#x27;re interested in INNER JOIN , OUTER JOIN and all that you can read up here: &lt;a href=&quot;https://stackoverflow.com/questions/38549/what-is-the-difference-between-inner-join-and-outer-join&quot;&gt;What is the difference between &amp;quot;INNER JOIN&amp;quot; and &amp;quot;OUTER JOIN&amp;quot;?&lt;/a&gt;&lt;/p&gt;&#xA;</summary>
  278.    </entry>
  279.    <entry>
  280.        <id>https://stackoverflow.com/q/860966</id>
  281.        <re:rank scheme="https://stackoverflow.com">194</re:rank>
  282.        <title type="text">Calculate a Running Total in SQL Server</title>
  283.            <category scheme="https://stackoverflow.com/tags" term="sql" />
  284.            <category scheme="https://stackoverflow.com/tags" term="sql-server" />
  285.            <category scheme="https://stackoverflow.com/tags" term="t-sql" />
  286.            <category scheme="https://stackoverflow.com/tags" term="cumulative-sum" />
  287.        <author>
  288.            <name>codeulike</name>
  289.            <uri>https://stackoverflow.com/users/22194</uri>
  290.        </author>
  291.        <link rel="alternate" href="https://stackoverflow.com/questions/860966/calculate-a-running-total-in-sql-server" />
  292.        <published>2009-05-13T23:42:26Z</published>
  293.        <updated>2022-10-02T07:01:56Z</updated>
  294.        <summary type="html">
  295.            &lt;p&gt;Imagine the following table (called &lt;code&gt;TestTable&lt;/code&gt;):&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;id     somedate    somevalue&#xA;--     --------    ---------&#xA;45     01/Jan/09   3&#xA;23     08/Jan/09   5&#xA;12     02/Feb/09   0&#xA;77     14/Feb/09   7&#xA;39     20/Feb/09   34&#xA;33     02/Mar/09   6&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I would like a query that returns a running total in date order, like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;id     somedate    somevalue  runningtotal&#xA;--     --------    ---------  ------------&#xA;45     01/Jan/09   3          3&#xA;23     08/Jan/09   5          8&#xA;12     02/Feb/09   0          8&#xA;77     14/Feb/09   7          15  &#xA;39     20/Feb/09   34         49&#xA;33     02/Mar/09   6          55&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I know there are &lt;a href=&quot;https://web.archive.org/web/20200212211219/http://geekswithblogs.net:80/Rhames/archive/2008/10/28/calculating-running-totals-in-sql-server-2005---the-optimal.aspx&quot; rel=&quot;noreferrer&quot;&gt;various ways of doing this&lt;/a&gt; in SQL Server 2000 / 2005 / 2008.&lt;/p&gt;&#xA;&lt;p&gt;I am particularly interested in this sort of method that uses the aggregating-set-statement trick:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO @AnotherTbl(id, somedate, somevalue, runningtotal) &#xA;   SELECT id, somedate, somevalue, null&#xA;   FROM TestTable&#xA;   ORDER BY somedate&#xA;&#xA;DECLARE @RunningTotal int&#xA;SET @RunningTotal = 0&#xA;&#xA;UPDATE @AnotherTbl&#xA;SET @RunningTotal = runningtotal = @RunningTotal &#x2B; somevalue&#xA;FROM @AnotherTbl&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;... this is very efficient but I have heard there are issues around this because you can&#x27;t necessarily guarantee that the &lt;code&gt;UPDATE&lt;/code&gt; statement will process the rows in the correct order. Maybe we can get some definitive answers about that issue.&lt;/p&gt;&#xA;&lt;p&gt;But maybe there are other ways that people can suggest?&lt;/p&gt;&#xA;&lt;p&gt;edit: Now with a &lt;a href=&quot;http://sqlfiddle.com/#!3/c8880/4&quot; rel=&quot;noreferrer&quot;&gt;SqlFiddle&lt;/a&gt; with the setup and the &#x27;update trick&#x27; example above&lt;/p&gt;&#xA;
  296.        </summary>
  297.    </entry>
  298.            <entry>
  299.        <id>https://stackoverflow.com/questions/17858598/-/72469169#72469169</id>
  300.        <re:rank scheme="https://stackoverflow.com">2</re:rank>
  301.        <title type="text">Answer by codeulike for Add styling rules in pandoc tables for odt/docx output (table borders)</title>
  302.        <author>
  303.            <name>codeulike</name>
  304.            <uri>https://stackoverflow.com/users/22194</uri>
  305.        </author>
  306.        <link rel="alternate" href="https://stackoverflow.com/questions/17858598/add-styling-rules-in-pandoc-tables-for-odt-docx-output-table-borders/72469169#72469169" />
  307.        <published>2022-06-01T23:54:52Z</published>
  308.        <updated>2022-06-02T00:00:09Z</updated>
  309.        <summary type="html">&lt;p&gt;I really liked &lt;a href=&quot;https://stackoverflow.com/a/30917615/22194&quot;&gt;gbjbaanb&#x27;s answer&lt;/a&gt; - here&#x27;s a powershell version:&lt;/p&gt;&#xA;&lt;p&gt;Background: Set up a PanDoc &lt;code&gt;--reference-doc&lt;/code&gt; template as described in the &lt;a href=&quot;https://pandoc.org/MANUAL.html&quot; rel=&quot;nofollow noreferrer&quot;&gt;pandoc documentation&lt;/a&gt; for the &lt;code&gt;--reference-doc&lt;/code&gt; parameter&lt;/p&gt;&#xA;&lt;p&gt;Open up Word and create a new custom table style in the template doc. In our example that custom table style is called &#x27;MyCustomTable&#x27;&lt;/p&gt;&#xA;&lt;p&gt;Generate your word doc using the &lt;code&gt;--reference-doc&lt;/code&gt; parameter - the custom table style will be included in the doc, you just have to insert its name in the right place. This bit of powershell will do that for you:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$outFile = &amp;quot;C:\Path\To\Your\Doc.docx&amp;quot;&#xA;$workFolder = &amp;quot;C:\Some\Temp\Folder\Somewhere\&amp;quot;&#xA;# then this replaces table style in $outFile:&#xA;$zipFile = $outFile.Replace(&amp;quot;.docx&amp;quot;,&amp;quot;.zip&amp;quot;)&#xA;Rename-Item $outFile $zipFile &#xA;Expand-Archive $zipFile -DestinationPath $workFolder -Force&#xA;$wordXml = Get-Content &amp;quot;${workFolder}Word\Document.xml&amp;quot;&#xA;$updatedXml = $wordXml.Replace(&#x27;&amp;lt;w:tblStyle w:val=&amp;quot;Table&amp;quot; /&amp;gt;&#x27;,&#x27;&amp;lt;w:tblStyle w:val=&amp;quot;MyCustomTable&amp;quot; /&amp;gt;&#x27;)&#xA;Set-Content -Path &amp;quot;${workFolder}Word\Document.xml&amp;quot; -Value $updatedXml&#xA;Compress-Archive -Path &amp;quot;${workFolder}*&amp;quot; -DestinationPath $zipFile -Force&#xA;Rename-Item $zipFile $outFile&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;... where $outFile is the docx, and $workFolder is a temp folder somewhere.&lt;/p&gt;&#xA;&lt;p&gt;In some earlier versions of PanDoc, instead of seaching for &lt;code&gt;&amp;lt;w:tblStyle w:val=&amp;quot;Table&amp;quot; /&amp;gt;&lt;/code&gt; you&#x27;ll need to search for &lt;code&gt;&amp;lt;w:tblStyle w:val=&amp;quot;TableNormal&amp;quot; /&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;</summary>
  310.    </entry>
  311.            <entry>
  312.        <id>https://stackoverflow.com/questions/71672285/-/72376457#72376457</id>
  313.        <re:rank scheme="https://stackoverflow.com">1</re:rank>
  314.        <title type="text">Answer by codeulike for sql query using script activity in ADF pipeline</title>
  315.        <author>
  316.            <name>codeulike</name>
  317.            <uri>https://stackoverflow.com/users/22194</uri>
  318.        </author>
  319.        <link rel="alternate" href="https://stackoverflow.com/questions/71672285/sql-query-using-script-activity-in-adf-pipeline/72376457#72376457" />
  320.        <published>2022-05-25T11:04:20Z</published>
  321.        <updated>2022-05-25T11:04:20Z</updated>
  322.        <summary type="html">&lt;p&gt;You can&#x27;t really get the tablename out of the Copy Data activity. But what you can do is use a variable to generate your tablename before the Copy Data activity, and then use that variable in both the Copy Data activity and the Script activity:&lt;/p&gt;&#xA;&lt;p&gt;Like this:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a Pipeline Variable&lt;/li&gt;&#xA;&lt;li&gt;Add a Set Variable activity before the Copy Data activity and use that to do the &lt;code&gt;tbl@{replace(pipeline().RunId,&#x27;-&#x27;,&#x27;&#x27;)}&lt;/code&gt; expression evaluation&lt;/li&gt;&#xA;&lt;li&gt;Then use that variable in the Copy Activity as the table name &lt;code&gt;@variables(&#x27;yourVariableName&#x27;)&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;then use that same variable in the Script Activity when you do the index &lt;code&gt;CREATE CLUSTERED INDEX IDX_Whatever ON @{variables(&#x27;yourVariableName&#x27;)}&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</summary>
  323.    </entry>
  324.    <entry>
  325.        <id>https://stackoverflow.com/q/850327</id>
  326.        <re:rank scheme="https://stackoverflow.com">91</re:rank>
  327.        <title type="text">How to insert into a table with just one IDENTITY column?</title>
  328.            <category scheme="https://stackoverflow.com/tags" term="sql" />
  329.            <category scheme="https://stackoverflow.com/tags" term="sql-server" />
  330.            <category scheme="https://stackoverflow.com/tags" term="identity" />
  331.        <author>
  332.            <name>codeulike</name>
  333.            <uri>https://stackoverflow.com/users/22194</uri>
  334.        </author>
  335.        <link rel="alternate" href="https://stackoverflow.com/questions/850327/how-to-insert-into-a-table-with-just-one-identity-column" />
  336.        <published>2009-05-11T22:08:34Z</published>
  337.        <updated>2022-05-14T12:36:05Z</updated>
  338.        <summary type="html">
  339.            &lt;p&gt;(Came up with this question in the course of trying to answer &lt;a href=&quot;https://stackoverflow.com/questions/850017/how-to-manage-groups-in-the-database/850049#850049&quot;&gt;this other one&lt;/a&gt;)  &lt;/p&gt;&#xA;&#xA;&lt;p&gt;Consider the following MS-SQL table, called GroupTable:&lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&#xA;GroupID&#xA;-------&#xA;1  &#xA;2  &#xA;3  &#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;where GroupID is the primary key and is an Identity column.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;How do you insert a new row into the table (and hence generate a new ID) &lt;strong&gt;without&lt;/strong&gt; using IDENTITY_INSERT ON?&lt;/p&gt;&#xA;&#xA;&lt;p&gt;Note that this:  &lt;/p&gt;&#xA;&#xA;&lt;pre&gt;&lt;code&gt;INSERT INTO GroupTable() Values ()   &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;... won&#x27;t work.&lt;/p&gt;&#xA;&#xA;&lt;p&gt;edit: we&#x27;re talking SQL 2005 or SQL 2008 here.&lt;/p&gt;&#xA;
  340.        </summary>
  341.    </entry>
  342.            <entry>
  343.        <id>https://stackoverflow.com/questions/21302947/-/72156076#72156076</id>
  344.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  345.        <title type="text">Answer by codeulike for SSMS add comma delimiter - shortcut</title>
  346.        <author>
  347.            <name>codeulike</name>
  348.            <uri>https://stackoverflow.com/users/22194</uri>
  349.        </author>
  350.        <link rel="alternate" href="https://stackoverflow.com/questions/21302947/ssms-add-comma-delimiter-shortcut/72156076#72156076" />
  351.        <published>2022-05-07T20:20:14Z</published>
  352.        <updated>2022-05-07T20:20:14Z</updated>
  353.        <summary type="html">&lt;p&gt;Some good answers here already but here&#x27;s some more:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;... Person&#x27;s Id values let&#x27;s say from some Excel file ...&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;If you&#x27;re copying from Excel its sometimes easier to add commas (or speechmarks) or whatever in Excel before copying.&lt;/p&gt;&#xA;&lt;p&gt;e.g. in the cell to the right do&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;=A1 &amp;amp; &amp;quot;,&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Then copy that formula all the way down the list.&lt;/p&gt;&#xA;&lt;p&gt;Also Notepad&#x2B;&#x2B; is great for this sort of thing, you can record a macro to do one line, and then run it N times:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In Notepad&#x2B;&#x2B; go to the start of the first line&lt;/li&gt;&#xA;&lt;li&gt;Select Macro - Start Recording&lt;/li&gt;&#xA;&lt;li&gt;Do the right keypresses - in this case: End, Comma, Down, Home&lt;/li&gt;&#xA;&lt;li&gt;Select Macro - Stop Recording&lt;/li&gt;&#xA;&lt;li&gt;Select &#x27;Run a Macro Multiple Times ...&#x27;&lt;/li&gt;&#xA;&lt;li&gt;It will by default show &#x27;current recorded macro&#x27; (the one you just recorded)&lt;/li&gt;&#xA;&lt;li&gt;Tell it how many times you want it, then off you go&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</summary>
  354.    </entry>
  355.    <entry>
  356.        <id>https://stackoverflow.com/q/71999320</id>
  357.        <re:rank scheme="https://stackoverflow.com">1</re:rank>
  358.        <title type="text">ADF - get table name from dataset</title>
  359.            <category scheme="https://stackoverflow.com/tags" term="dynamic" />
  360.            <category scheme="https://stackoverflow.com/tags" term="azure-data-factory" />
  361.        <author>
  362.            <name>codeulike</name>
  363.            <uri>https://stackoverflow.com/users/22194</uri>
  364.        </author>
  365.        <link rel="alternate" href="https://stackoverflow.com/questions/71999320/adf-get-table-name-from-dataset" />
  366.        <published>2022-04-25T12:09:49Z</published>
  367.        <updated>2022-04-27T21:59:13Z</updated>
  368.        <summary type="html">
  369.            &lt;p&gt;Azure Data Factory dynamic content seems very powerful and very under-documented.&lt;/p&gt;&#xA;&lt;p&gt;Lets say I have a simple (non-dynamic) dataset pointing to a SQL table:&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/c4e93.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/c4e93.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;And then in a Copy Data task I want to reference that table in the Pre-copy script, e.g. to clear out all the data.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/0JUtd.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/0JUtd.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;How can I pull the table name out of the dataset? Its right there in the Json so surely there&#x27;s a way?&lt;/p&gt;&#xA;&lt;p&gt;e.g I see ADF has an activities collection that you can pull things from, e.g. &lt;code&gt;@activity(&amp;quot;Activity Name&amp;quot;).output&lt;/code&gt; ... is there anything similar for pulling properties from datasets? Or from the current Copy Data activity and then get through to the dataset from there?&lt;/p&gt;&#xA;&lt;p&gt;The official documentation gives a &lt;a href=&quot;https://learn.microsoft.com/en-us/azure/data-factory/control-flow-expression-language-functions&quot; rel=&quot;nofollow noreferrer&quot;&gt;few quick examples&lt;/a&gt; but is very light on details. e.g. when you do &lt;code&gt;@activity(&amp;quot;Activity Name&amp;quot;).output&lt;/code&gt; you are hitting some sort of object model but what other objects are available and what are their properties? Anyone got anything on that?&lt;/p&gt;&#xA;
  370.        </summary>
  371.    </entry>
  372.            <entry>
  373.        <id>https://stackoverflow.com/questions/72001443/-/72001538#72001538</id>
  374.        <re:rank scheme="https://stackoverflow.com">1</re:rank>
  375.        <title type="text">Answer by codeulike for Syntax error (missing operator) in query expression Access database</title>
  376.        <author>
  377.            <name>codeulike</name>
  378.            <uri>https://stackoverflow.com/users/22194</uri>
  379.        </author>
  380.        <link rel="alternate" href="https://stackoverflow.com/questions/72001443/syntax-error-missing-operator-in-query-expression-access-database/72001538#72001538" />
  381.        <published>2022-04-25T14:55:53Z</published>
  382.        <updated>2022-04-25T15:02:31Z</updated>
  383.        <summary type="html">&lt;p&gt;you need a comma at end of first line:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT dbo_CUS_SortRef , dbo_IMA_ItemID ,&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;edit: oh also you cant use CASE WHEN THEN ELSE END in Access, thats a T-SQL thing. You could try switch instead &lt;a href=&quot;https://stackoverflow.com/a/54906589/22194&quot;&gt;https://stackoverflow.com/a/54906589/22194&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;edit: oh and isnull only has one parameter in Access&lt;/p&gt;&#xA;&lt;p&gt;edit: oh and &lt;a href=&quot;https://stackoverflow.com/a/20929533/22194&quot;&gt;Access requires parentheses in the FROM clause for queries which include more than one join.&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;with thanks to HansUp, Nathan_Sav in the comments&lt;/p&gt;&#xA;</summary>
  384.    </entry>
  385.            <entry>
  386.        <id>https://stackoverflow.com/questions/60870210/-/71659554#71659554</id>
  387.        <re:rank scheme="https://stackoverflow.com">3</re:rank>
  388.        <title type="text">Answer by codeulike for How to run SQL Server Agent Powershell script with output and exit code</title>
  389.        <author>
  390.            <name>codeulike</name>
  391.            <uri>https://stackoverflow.com/users/22194</uri>
  392.        </author>
  393.        <link rel="alternate" href="https://stackoverflow.com/questions/60870210/how-to-run-sql-server-agent-powershell-script-with-output-and-exit-code/71659554#71659554" />
  394.        <published>2022-03-29T09:28:18Z</published>
  395.        <updated>2022-03-29T09:28:18Z</updated>
  396.        <summary type="html">&lt;p&gt;I struggled with this. The logged output from the Sql Job Powershell steps is pretty useless. I found it better to use a CmdExex step instead that calls Powershell.exe.&lt;/p&gt;&#xA;&lt;p&gt;In a Sql 2019 CmdExec job step you can just call your powershell script like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Powershell &amp;quot;F:\Temp\TestScript.ps1&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;... and you&#x27;ll get all the output (and you can log it to a file if you like). And if there&#x27;s an error, the job stops properly.&lt;/p&gt;&#xA;&lt;p&gt;In some earlier versions of SQL Server, Powershell errors would get logged but the job would continue to run (see here &lt;a href=&quot;https://stackoverflow.com/a/53732722/22194&quot;&gt;https://stackoverflow.com/a/53732722/22194&lt;/a&gt; ), so you need to wrap your script in a try/catch to bubble up the error in a way SQL can deal with it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Powershell.exe -command &amp;quot;try { &amp;amp; &#x27;F:\Temp\TestScript.ps1&#x27;} catch { throw $_ }&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Note that if your script path has spaces in it you might get different problems, see here &lt;a href=&quot;https://stackoverflow.com/a/45762288/22194&quot;&gt;https://stackoverflow.com/a/45762288/22194&lt;/a&gt;&lt;/p&gt;&#xA;</summary>
  397.    </entry>
  398.            <entry>
  399.        <id>https://stackoverflow.com/questions/71510437/-/71510987#71510987</id>
  400.        <re:rank scheme="https://stackoverflow.com">1</re:rank>
  401.        <title type="text">Answer by codeulike for Multi-value parameter in SSRS not working with select all : An expression of nonboolean type specified context where a condition is expected, near &#x27;,&#x27;</title>
  402.        <author>
  403.            <name>codeulike</name>
  404.            <uri>https://stackoverflow.com/users/22194</uri>
  405.        </author>
  406.        <link rel="alternate" href="https://stackoverflow.com/questions/71510437/multi-value-parameter-in-ssrs-not-working-with-select-all-an-expression-of-non/71510987#71510987" />
  407.        <published>2022-03-17T10:44:43Z</published>
  408.        <updated>2022-03-17T10:51:50Z</updated>
  409.        <summary type="html">&lt;p&gt;This bit is the problem:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;WHERE @Branch IN (Branch)&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;You&#x27;ve got that 4 times in the #PIA3 query.&lt;/p&gt;&#xA;&lt;p&gt;With a multi-valued param this will become &lt;code&gt;Where &#x27;one&#x27;,&#x27;two&#x27;,&#x27;three&#x27; IN (Branch)&lt;/code&gt; which is illegal sql. But with a single value you get &lt;code&gt;&#x27;one&#x27; IN (Branch)&lt;/code&gt; which will work.&lt;/p&gt;&#xA;&lt;p&gt;SSRS does multi-valued parameters by using a &#x27;trick&#x27; - instead of doing proper parameterised SQL, it just chucks the comma separated list of values into the SQL using string substitituion.&lt;/p&gt;&#xA;&lt;p&gt;But that only works for &lt;code&gt;Branch in (@Branch)&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;It wont work for &lt;code&gt;@Branch in (Branch)&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;From what I can see of your query if you just swap them round it will be fine. @Branch always needs to be on the right hand side of an IN&lt;/p&gt;&#xA;</summary>
  410.    </entry>
  411.            <entry>
  412.        <id>https://stackoverflow.com/questions/71340254/-/71340475#71340475</id>
  413.        <re:rank scheme="https://stackoverflow.com">1</re:rank>
  414.        <title type="text">Answer by codeulike for IS There any condition for not deleting the images in Word ,via C#?</title>
  415.        <author>
  416.            <name>codeulike</name>
  417.            <uri>https://stackoverflow.com/users/22194</uri>
  418.        </author>
  419.        <link rel="alternate" href="https://stackoverflow.com/questions/71340254/is-there-any-condition-for-not-deleting-the-images-in-word-via-c/71340475#71340475" />
  420.        <published>2022-03-03T16:26:23Z</published>
  421.        <updated>2022-03-03T16:26:23Z</updated>
  422.        <summary type="html">&lt;p&gt;You&#x27;re just looking for Text:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;document1.ActiveWindow.Selection.Text.Trim().Length &amp;lt;= 1&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;I think you also need to look for &#x27;InlineShapes&#x27; which would include things like images and drawings:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;document1.ActiveWindow.Selection.InlineShapes.Count == 0&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;So probably something like&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    if (document1.ActiveWindow.Selection.Text.Trim().Length &amp;lt;= 1&#xA;        &amp;amp;&amp;amp; document1.ActiveWindow.Selection.InlineShapes.Count == 0)&#xA;    {&#xA;        document1.ActiveWindow.Selection.Delete();&#xA;    }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;... although I don&#x27;t really understand what your second &#x27;if&#x27; block is for,  you probably need something similar there too&lt;/p&gt;&#xA;</summary>
  423.    </entry>
  424.            <entry>
  425.        <id>https://stackoverflow.com/questions/71130278/-/71144678#71144678</id>
  426.        <re:rank scheme="https://stackoverflow.com">2</re:rank>
  427.        <title type="text">Answer by codeulike for Why would SQL truncate the right-side of a string when using the right function?</title>
  428.        <author>
  429.            <name>codeulike</name>
  430.            <uri>https://stackoverflow.com/users/22194</uri>
  431.        </author>
  432.        <link rel="alternate" href="https://stackoverflow.com/questions/71130278/why-would-sql-truncate-the-right-side-of-a-string-when-using-the-right-function/71144678#71144678" />
  433.        <published>2022-02-16T15:30:35Z</published>
  434.        <updated>2022-02-16T15:41:41Z</updated>
  435.        <summary type="html">&lt;p&gt;OK this is tricky, I did some Foxpro 20 years ago but don&#x27;t have it to hand.&lt;/p&gt;&#xA;&lt;p&gt;Your SELECT statement looks OK to me. In the comments under the question Thomas G created this DbFiddle which shows that in a &#x27;normal&#x27; dbms, your SELECT statement gives the result you are expecting: &lt;a href=&quot;https://dbfiddle.uk/?rdbms=sqlserver_2017&amp;amp;fiddle=37047d2b7efb91aaa029fa0fb98eea24&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://dbfiddle.uk/?rdbms=sqlserver_2017&amp;amp;fiddle=37047d2b7efb91aaa029fa0fb98eea24&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;So the problem must be something FoxPro/dBase specific rather than a problem with your SELECT statement.&lt;/p&gt;&#xA;&lt;p&gt;Reading up I see people say that with FoxPro always use ALLTRIM() when using RIGHT() or LEN() on table fields because the data gets returned padded with spaces. I don&#x27;t see how that would cause the exact bug you&#x27;re seeing but you could try this maybe:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT RIGHT(ALLTRIM(LINK),LEN(ALLTRIM(LINK))-8) ,LEN(ALLTRIM(LINK))-8,RIGHT(ALLTRIM(LINK),77),ALLTRIM(LINK)&#xA;FROM LINKSTORE &#xA;WHERE DOCLBL = &amp;quot;V46145002A&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;edit: OK I got a better idea - are there other rows in your result set?&lt;/p&gt;&#xA;&lt;p&gt;According to this: &lt;a href=&quot;https://www.tek-tips.com/viewthread.cfm?qid=1706948&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://www.tek-tips.com/viewthread.cfm?qid=1706948&lt;/a&gt; ... when you do SELECT (expr) in FoxPro whatever the length of the expr in the first row becomes that max length for that &#x27;field&#x27; and so all subsequent rows get truncated to that length. Makes sense in a crazy 1970s sort of way.&lt;/p&gt;&#xA;&lt;p&gt;So perhaps you have a row of data above the one we are talking about which comes out at 68 chars long and so every subsequent value gets truncated to that length.&lt;/p&gt;&#xA;&lt;p&gt;The way around it is to pad your expression results with CAST or PADR:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT PADR(RIGHT(ALLTRIM(LINK),LEN(ALLTRIM(LINK))-8),100),LEN(ALLTRIM(LINK))-8,PADR(RIGHT(ALLTRIM(LINK),77),100),LINK&#xA;    FROM LINKSTORE &#xA;    WHERE DOCLBL = &amp;quot;V46145002A&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Or same without the ALLTRIM()&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SELECT PADR(RIGHT(LINK,LEN(LINK)-8),100),LEN(LINK)-8,PADR(RIGHT(LINK,77),100),LINK&#xA;    FROM LINKSTORE &#xA;    WHERE DOCLBL = &amp;quot;V46145002A&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;</summary>
  436.    </entry>
  437.               <entry>
  438.        <id>https://stackoverflow.com/questions/77898346/talend-open-studio-tos-qlik-removed-the-talend-community-any-backup-availabl/77911483?cid=138028947#77911483</id>
  439.        <title type="text">Comment by codeulike on Talend Open Studio (TOS): Qlik removed the Talend Community. Any backup available?</title>
  440.        <author>
  441.            <name>codeulike</name>
  442.            <uri>https://stackoverflow.com/users/22194</uri>
  443.        </author>
  444.        <link rel="alternate" href="https://stackoverflow.com/questions/77898346/talend-open-studio-tos-qlik-removed-the-talend-community-any-backup-availabl/77911483#77911483" />
  445.        <published>2024-04-08T15:35:19Z</published>
  446.        <updated>2024-04-08T15:35:19Z</updated>
  447.        <summary type="html">thanks for the info. Never heard of Qlik till now but they have annoyed me no end by making googling Talend problem so much more difficult</summary>
  448.    </entry>
  449.  
  450.               <entry>
  451.        <id>https://stackoverflow.com/questions/78090908/conditionally-update-a-column?cid=137670396</id>
  452.        <title type="text">Comment by codeulike on Conditionally update a column</title>
  453.        <author>
  454.            <name>codeulike</name>
  455.            <uri>https://stackoverflow.com/users/22194</uri>
  456.        </author>
  457.        <link rel="alternate" href="https://stackoverflow.com/questions/78090908/conditionally-update-a-column" />
  458.        <published>2024-03-01T23:37:20Z</published>
  459.        <updated>2024-03-01T23:37:20Z</updated>
  460.        <summary type="html">&lt;i&gt;The only way I can think of doing that is to have a separate parameter like @noExpiration and if that is supplied, then set EXPIRATION_DATE = NULL ... Is there a more elegant/common way of handling this?&lt;/i&gt; No, thats probably the best way.</summary>
  461.    </entry>
  462.  
  463.               <entry>
  464.        <id>https://stackoverflow.com/questions/78062577/sql-query-optimization-for-join-containing-the-datetime?cid=137618705</id>
  465.        <title type="text">Comment by codeulike on SQL Query optimization for Join containing the DateTime</title>
  466.        <author>
  467.            <name>codeulike</name>
  468.            <uri>https://stackoverflow.com/users/22194</uri>
  469.        </author>
  470.        <link rel="alternate" href="https://stackoverflow.com/questions/78062577/sql-query-optimization-for-join-containing-the-datetime" />
  471.        <published>2024-02-26T17:02:15Z</published>
  472.        <updated>2024-02-26T17:02:15Z</updated>
  473.        <summary type="html">Can I buy shares in this company that has 1,00,00,000 Employees?</summary>
  474.    </entry>
  475.  
  476.               <entry>
  477.        <id>https://stackoverflow.com/questions/78050579/wildcards-in-if-statement?cid=137598313</id>
  478.        <title type="text">Comment by codeulike on Wildcards in &quot;IF&quot; Statement</title>
  479.        <author>
  480.            <name>codeulike</name>
  481.            <uri>https://stackoverflow.com/users/22194</uri>
  482.        </author>
  483.        <link rel="alternate" href="https://stackoverflow.com/questions/78050579/wildcards-in-if-statement" />
  484.        <published>2024-02-23T23:05:41Z</published>
  485.        <updated>2024-02-23T23:05:41Z</updated>
  486.        <summary type="html">Wildcards dont work like that in C# string comparisons. you can do &lt;code&gt;!ltr.Contains(&amp;quot;LT&amp;quot;)&lt;/code&gt; though</summary>
  487.    </entry>
  488.  
  489.               <entry>
  490.        <id>https://stackoverflow.com/questions/78041059/how-to-properly-calculate-the-total-sum-of-each-die-face?cid=137587482</id>
  491.        <title type="text">Comment by codeulike on How to properly calculate the total sum of each die face</title>
  492.        <author>
  493.            <name>codeulike</name>
  494.            <uri>https://stackoverflow.com/users/22194</uri>
  495.        </author>
  496.        <link rel="alternate" href="https://stackoverflow.com/questions/78041059/how-to-properly-calculate-the-total-sum-of-each-die-face" />
  497.        <published>2024-02-22T22:44:34Z</published>
  498.        <updated>2024-02-22T22:44:34Z</updated>
  499.        <summary type="html">@Oueza oh yeah I see it now. My best guess then, is that your DisplayCurrentDiceValue object is losing its state somehow and so it can&amp;#39;t add the dice up properly. When does the DisplayCurrentDiceValue object get created and how long does it last for?</summary>
  500.    </entry>
  501.  
  502.               <entry>
  503.        <id>https://stackoverflow.com/questions/78041059/how-to-properly-calculate-the-total-sum-of-each-die-face?cid=137582132</id>
  504.        <title type="text">Comment by codeulike on How to properly calculate the total sum of each die face</title>
  505.        <author>
  506.            <name>codeulike</name>
  507.            <uri>https://stackoverflow.com/users/22194</uri>
  508.        </author>
  509.        <link rel="alternate" href="https://stackoverflow.com/questions/78041059/how-to-properly-calculate-the-total-sum-of-each-die-face" />
  510.        <published>2024-02-22T14:05:08Z</published>
  511.        <updated>2024-02-22T14:05:08Z</updated>
  512.        <summary type="html">@Oueza I don&amp;#39;t see diceResults declared anywhere. What holds a reference to it?</summary>
  513.    </entry>
  514.  
  515.               <entry>
  516.        <id>https://stackoverflow.com/questions/78041059/how-to-properly-calculate-the-total-sum-of-each-die-face?cid=137581357</id>
  517.        <title type="text">Comment by codeulike on How to properly calculate the total sum of each die face</title>
  518.        <author>
  519.            <name>codeulike</name>
  520.            <uri>https://stackoverflow.com/users/22194</uri>
  521.        </author>
  522.        <link rel="alternate" href="https://stackoverflow.com/questions/78041059/how-to-properly-calculate-the-total-sum-of-each-die-face" />
  523.        <published>2024-02-22T13:00:59Z</published>
  524.        <updated>2024-02-22T13:00:59Z</updated>
  525.        <summary type="html">The class DisplayCurrentDiceValue is supposed to add up the dice, it uses a diceResults object and the int totalDiceValue to do that. I can&amp;#39;t see where diceResults is defined or what its lifetime is - your problem might be that diceResults is losing its state somewhere. Where is the diceResults object defined and when does it get reset?</summary>
  526.    </entry>
  527.  
  528.               <entry>
  529.        <id>https://stackoverflow.com/questions/77788170/removing-1-and-2-from-a-string-with-out-removing-11-and-12/77788221?cid=137309225#77788221</id>
  530.        <title type="text">Comment by codeulike on Removing &quot;1, &quot; and &quot;2, &quot; from a string with out removing &quot;11, &quot; and &quot;12, &quot;</title>
  531.        <author>
  532.            <name>codeulike</name>
  533.            <uri>https://stackoverflow.com/users/22194</uri>
  534.        </author>
  535.        <link rel="alternate" href="https://stackoverflow.com/questions/77788170/removing-1-and-2-from-a-string-with-out-removing-11-and-12/77788221#77788221" />
  536.        <published>2024-01-26T13:16:51Z</published>
  537.        <updated>2024-01-26T13:16:51Z</updated>
  538.        <summary type="html">At first I was confused as to why the third row of results has a 1, but then I realised the query has &lt;code&gt;Id &amp;lt; 3&lt;/code&gt; (someone keeps deleting this comment but I believe it is a useful comment)</summary>
  539.    </entry>
  540.  
  541.               <entry>
  542.        <id>https://stackoverflow.com/questions/77885306/set-based-approach-to-distributing-a-value-ssms-tsql?cid=137307437</id>
  543.        <title type="text">Comment by codeulike on Set-based approach to distributing a value SSMS TSQL</title>
  544.        <author>
  545.            <name>codeulike</name>
  546.            <uri>https://stackoverflow.com/users/22194</uri>
  547.        </author>
  548.        <link rel="alternate" href="https://stackoverflow.com/questions/77885306/set-based-approach-to-distributing-a-value-ssms-tsql" />
  549.        <published>2024-01-26T10:08:43Z</published>
  550.        <updated>2024-01-26T10:08:43Z</updated>
  551.        <summary type="html">I&amp;#39;ve done SQL for 20&#x2B; years and with something like this (where you have to track a value that reduces row-by-row) I would definitely use a loop, unless the volumes were so large that that was not feasible. There probably is a way to do this with window functions but it will look completely incomprehensible to everyone whereas if you write a loop anyone can look at it, and see what it does. And thats important!</summary>
  552.    </entry>
  553.  
  554.               <entry>
  555.        <id>https://stackoverflow.com/questions/77788170/removing-1-and-2-from-a-string-with-out-removing-11-and-12?cid=137142053</id>
  556.        <title type="text">Comment by codeulike on Removing &quot;1, &quot; and &quot;2, &quot; from a string with out removing &quot;11, &quot; and &quot;12, &quot;</title>
  557.        <author>
  558.            <name>codeulike</name>
  559.            <uri>https://stackoverflow.com/users/22194</uri>
  560.        </author>
  561.        <link rel="alternate" href="https://stackoverflow.com/questions/77788170/removing-1-and-2-from-a-string-with-out-removing-11-and-12" />
  562.        <published>2024-01-10T11:39:02Z</published>
  563.        <updated>2024-01-10T11:39:02Z</updated>
  564.        <summary type="html">Its a good question though, things like this happen in the real world</summary>
  565.    </entry>
  566.  
  567.               <entry>
  568.        <id>https://stackoverflow.com/questions/273238/how-to-use-group-by-to-concatenate-strings-in-sql-server/43664415?cid=136673270#43664415</id>
  569.        <title type="text">Comment by codeulike on How to use GROUP BY to concatenate strings in SQL Server?</title>
  570.        <author>
  571.            <name>codeulike</name>
  572.            <uri>https://stackoverflow.com/users/22194</uri>
  573.        </author>
  574.        <link rel="alternate" href="https://stackoverflow.com/questions/273238/how-to-use-group-by-to-concatenate-strings-in-sql-server/43664415#43664415" />
  575.        <published>2023-11-21T19:22:58Z</published>
  576.        <updated>2023-11-21T19:22:58Z</updated>
  577.        <summary type="html">hot damn! and I have to add extra words to make the comment long enough but really the first two words were all I wanted to say here</summary>
  578.    </entry>
  579.  
  580.               <entry>
  581.        <id>https://stackoverflow.com/questions/76641445/how-to-query-the-salesforce-case-object-from-inside-adf?cid=135873756</id>
  582.        <title type="text">Comment by codeulike on How to query the Salesforce Case object from inside ADF</title>
  583.        <author>
  584.            <name>codeulike</name>
  585.            <uri>https://stackoverflow.com/users/22194</uri>
  586.        </author>
  587.        <link rel="alternate" href="https://stackoverflow.com/questions/76641445/how-to-query-the-salesforce-case-object-from-inside-adf" />
  588.        <published>2023-09-09T23:34:34Z</published>
  589.        <updated>2023-09-09T23:34:34Z</updated>
  590.        <summary type="html">You are querying sql server right? Not Salesforce? Because &lt;code&gt;select *&lt;/code&gt; wont work in Salesforce. For SQL Server you could try adding the schema? e.g. &lt;code&gt;SELECT * FROM [dbo].[Case] ... &lt;/code&gt;</summary>
  591.    </entry>
  592.  
  593.               <entry>
  594.        <id>https://stackoverflow.com/questions/61808060/what-is-the-difference-between-adf-pipeline-and-adf-data-flow?cid=135873705</id>
  595.        <title type="text">Comment by codeulike on What is the difference between ADF Pipeline and ADF Data flow?</title>
  596.        <author>
  597.            <name>codeulike</name>
  598.            <uri>https://stackoverflow.com/users/22194</uri>
  599.        </author>
  600.        <link rel="alternate" href="https://stackoverflow.com/questions/61808060/what-is-the-difference-between-adf-pipeline-and-adf-data-flow" />
  601.        <published>2023-09-09T23:22:43Z</published>
  602.        <updated>2023-09-09T23:22:43Z</updated>
  603.        <summary type="html">Microsoft licensed DataBricks which runs on Apache Spark from DataBricks inc and package that up as the ADF Data Flow. Meanwhile you&amp;#39;ve got the rest of ADF, the Copy Data activity and so on, thats all Microsoft-built. So its two different things welded together.</summary>
  604.    </entry>
  605.  
  606.               <entry>
  607.        <id>https://stackoverflow.com/questions/63727360/invoke-sqlcmd-and-export-csv-consume-huge-amounts-of-memory?cid=134944830</id>
  608.        <title type="text">Comment by codeulike on Invoke-Sqlcmd and Export-Csv consume huge amounts of memory?</title>
  609.        <author>
  610.            <name>codeulike</name>
  611.            <uri>https://stackoverflow.com/users/22194</uri>
  612.        </author>
  613.        <link rel="alternate" href="https://stackoverflow.com/questions/63727360/invoke-sqlcmd-and-export-csv-consume-huge-amounts-of-memory" />
  614.        <published>2023-06-22T20:37:23Z</published>
  615.        <updated>2023-06-22T20:37:23Z</updated>
  616.        <summary type="html">@Sachiko did you get anywhere with DataReader? I&amp;#39;&amp;#39;ve got the same problem</summary>
  617.    </entry>
  618.  
  619.               <entry>
  620.        <id>https://stackoverflow.com/questions/53218416/powershell-parsing-pipeline-csv-data-with-newlines-using-convertfrom-csv/53218417?cid=134249322#53218417</id>
  621.        <title type="text">Comment by codeulike on Powershell Parsing Pipeline CSV data with newlines using ConvertFrom-Csv</title>
  622.        <author>
  623.            <name>codeulike</name>
  624.            <uri>https://stackoverflow.com/users/22194</uri>
  625.        </author>
  626.        <link rel="alternate" href="https://stackoverflow.com/questions/53218416/powershell-parsing-pipeline-csv-data-with-newlines-using-convertfrom-csv/53218417#53218417" />
  627.        <published>2023-04-27T19:25:10Z</published>
  628.        <updated>2023-04-27T19:25:10Z</updated>
  629.        <summary type="html">That Out-String technique just saved my bacon, thanks</summary>
  630.    </entry>
  631.  
  632. </feed>

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid Atom 1.0" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=http%3A//stackoverflow.com/feeds/user/22194

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda