Viewing 15 posts - 1,231 through 1,245 (of 1,413 total)
Is this the documentation you're looking for?
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 12, 2019 at 2:27 pm
It's possible to pass a user defined table type to a stored procedure as a readonly parameter. This code defines a table type called test_type1. The procedure dbo.test_proc1 declares a...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 12, 2019 at 1:02 pm
The entire plural column is 'no' including temporal tables. If tables are collections of rows then they should be plural, no? If the table name is 'orders' then one row...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 10, 2019 at 7:29 pm
They have to want to help for the encouragement to work. Not sure how to get someone who really doesn't want to contribute to do so.
Just...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 9, 2019 at 3:13 pm
They have to want to help for the encouragement to work. Not sure how to get someone who really doesn't want to contribute to do so.
Just a few...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 9, 2019 at 1:58 pm
An alternative to nested sets is nested json arrays. Here it is using Jeff's (small) Employee table (renamed to dbo.Test_Employee)
drop table if exists dbo.Test_Employee;
go
CREATE TABLE dbo.Test_Employee
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 8, 2019 at 5:12 pm
To see if DesNorton's solution worked (it does) and to see if the interval could be created in Sql 2012 I tried with this sql although I don't have any...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 6, 2019 at 10:33 pm
By the way, I did have a script published here on SSC that includes an example of nested json arrays. Please see:
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 4, 2019 at 9:48 pm
Json_value() is used to access a single value of up to nvarchar(4000). Openjson() is used to access arrays and can be nvarchar(max). In the example json (with array []'s added)...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 4, 2019 at 9:04 pm
What you posted is not valid json. The elements of SecondaryData should be in array brackets.
{
"odata.id": "0001",
"MediaId": "0001",
"SecondaryData": [
...Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 4, 2019 at 7:04 pm
Yes there are / will be additional tables where locations and other things will be stored and yes Primary Keys will be introduced as well.
We have literally no choice...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 4, 2019 at 4:09 pm
This should come with a warning though. If there are repeated 'docdata' dates within a partitioning window, then this code will not produce correct results. If it's possible to implement...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 4, 2019 at 2:43 pm
select
t.*,
iif((t.totalinvoice+sum(t.totalreceived-t.totalinvoice) over (partition by receipt_nr order by docdata))<0,0,
iif((t.totalinvoice+sum(t.totalreceived-t.totalinvoice) over (partition by receipt_nr order by docdata))>t.totalinvoice,
t.totalinvoice, (t.totalinvoice+sum(t.totalreceived-t.totalinvoice) over...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 4, 2019 at 1:51 pm
Does this produce the correct remainder column?
select
t.*,
sum(t.totalreceived-t.totalinvoice) over (partition by receipt_nr order by docdata) remainder
from
#temptab t
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 4, 2019 at 3:12 am
Yes, unfortunately it's absolutely not feasible to make changes to the OLTP System where data is inserted initially, it's an 3rd party ISV. All we get is some CSV...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 2, 2019 at 8:57 pm
Viewing 15 posts - 1,231 through 1,245 (of 1,413 total)