Viewing 15 posts - 676 through 690 (of 13,878 total)
The stored proc GetSOR_Abstract is specific to your environment, so we can't help in detail.
But it looks like @tempdata is defined with a maximum length of 128 within the definition...
January 30, 2024 at 10:15 am
Like this?
SELECT t.n_type
,Total = COUNT (1)
,a_type = COUNT (IIF(t.d_type = 'a_type', 1, NULL))
...
January 30, 2024 at 8:27 am
Do you have any control over the format of the input file? If you could get them to use a delimiter which will not appear elsewhere in the text (|...
January 29, 2024 at 5:49 pm
DelimitedSplit8k is a highly optimised string splitter that was written in the days when there was nothing comparable built in to T-SQL. It has since become the de facto standard...
January 29, 2024 at 3:38 pm
Would you please provide your sample data in the form of CREATE TABLE / INSERT statements?
January 29, 2024 at 2:02 pm
Try this, maybe?
https://www.sqlservercentral.com/scripts/patexclude8k
If len(string) > len(processed string)
you know that 'string' contained 'invalid' characters.
January 29, 2024 at 12:03 pm
If you are hoping for a dynamic solution which does not require you to type in the names of each key, that takes quite a chunk of coding and requires...
January 26, 2024 at 9:05 pm
OK, I don't know. Can't see anything obvious.
January 25, 2024 at 11:21 am
None of the components shown does any direct filtering. Maybe your FOR loop is going wrong somewhere.
Can you post the full Expression definitions for the six variable which have expressions,...
January 25, 2024 at 11:04 am
You'll be lucky to get detailed help with this one. If anyone opens up your package, they will no doubt be confronted with validation errors because the data sources are...
January 25, 2024 at 10:26 am
Here is the STRING_SPLIT version
SELECT
jn.Id
, cid = MAX (REPLACE (IIF(c2.ordinal = 3, c2.value, ''), 'cid:', ''))
, Id = MAX...
January 25, 2024 at 9:56 am
Obviously, this relies on Jeff Moden's splitter, but as you're on 2022, you can also use the native string_split() function.
January 25, 2024 at 9:20 am
I've done the first few for you. You should be able to add the others using similar logic.
DROP TABLE IF EXISTS #JSONish;
CREATE TABLE #JSONish
(
...
January 25, 2024 at 9:17 am
So, you're looking to insert a row with a RefNum as the next numeric number? One straightforward method, as suggested in the forum, is to grab the MAX(RefNum) into...
January 24, 2024 at 1:05 pm
Viewing 15 posts - 676 through 690 (of 13,878 total)