Viewing 15 posts - 391 through 405 (of 13,838 total)
Try this instead
CROSS APPLY sx.XMLDoc.nodes ('root/Header') C(x)
CROSS APPLY sx.XMLDoc.nodes ('root/PurchaseOrder') d(y)
CROSS APPLY y.nodes ('PurchaseOrderLine') e(z)
CROSS...
May 29, 2024 at 2:48 pm
See whether this helps.
DROP TABLE IF EXISTS #SomeXML;
CREATE TABLE #SomeXML
(
XMLDoc XML
);
INSERT #SomeXML
(
XMLDoc
)
VALUES
('<root>
<Header>
<xxxxxName>yyyyy</xxxxxName>
...
May 29, 2024 at 9:23 am
You should consider heading over to https://www.brentozar.com/pastetheplan/instructions/ and adding your actual execution plan there.
It would also be helpful if you would include the full DDL for the tables involved. Include...
May 29, 2024 at 8:34 am
I don't have time to dig into this, but there is an error in the query.
LEN('L') will always equal 1, because that's how long 'L' is.
You should also remove the...
May 29, 2024 at 8:29 am
If you want a coded solution, please provide a (sanitised as needed) version of the XML doc, not an image!
May 28, 2024 at 5:05 pm
Requirements are fairly loose Eirkur. Investigate the storing of Excel documents either in Sql Server or a fileshare (on a different server to the Sql one), whichever is best....
May 28, 2024 at 8:13 am
Folders in Workspaces is now in Preview.
No need for SSAS, now that there are semantic models.
May 22, 2024 at 3:27 pm
IMO, migrating to Power BI 'Tabular Reports' from SSRS is super simple and worth investigating.
DF does not replace SSIS, however. We have tried to migrate and failed (and gone back...
May 22, 2024 at 9:37 am
thx chrissy i am assuming you are talking about this product and marking your post as an answer. https://www.sqlbi.com/tools/tabular-editor/
Did you try BISM Normalizer? Looks like the schema compare...
May 22, 2024 at 9:31 am
Are you looking to store the entire file as a single BLOB, or import its contents as individual columns?
May 21, 2024 at 10:20 am
You are correct in thinking that you need the TrustServerCertificate=true bit in your connection string. The latest version of SQL Server depends on it, unless you have a server cert...
May 20, 2024 at 7:21 pm
It really depends on the data.
Try injecting ''00X11' into your version. It removes the 'X', which is not one of the specified requirements. I'm all for elegant code, and maybe...
May 19, 2024 at 4:41 pm
The proposed solutions seem to be a bit more code than is needed:
SELECT *
, ActualID = substring(ss.Str1, patindex('%[1-9]%', ss.Str1), 25)
...
May 19, 2024 at 2:25 pm
DROP TABLE IF EXISTS #SomeString;
CREATE TABLE #SomeString
(
Str1 VARCHAR(25)
);
INSERT #SomeString
(
Str1
)
VALUES
('D00241')
,('00242 ')
,('Chicken Tikka Masala');
SELECT ss.Str1
,CASE
...
May 17, 2024 at 10:07 am
Here is another version of your query which looks a bit tidier (as it does not rely on DISTINCT to remove dupes). But I'm not sure it will perform any...
May 17, 2024 at 9:58 am
Viewing 15 posts - 391 through 405 (of 13,838 total)