Viewing 15 posts - 451 through 465 (of 1,496 total)
I am not sure how SSIS would cope with LineNumber of type identity. Maybe someone with more experience of SSIS can comment.
If you have the data in a text file...
September 23, 2020 at 1:58 pm
If you have imported the LineNumber into SQL Server then everything should be fine.
If you had to resort to creating the identity column you should, as far as possible, verify...
September 23, 2020 at 7:36 am
Unfortunately in terms of relational database theory the rows are not next to each other as rows are unordered.
If the source of the rows is something like a CSV file...
September 22, 2020 at 6:50 am
Umm....
Let me try again.
A table is an unordered set so how do you tell what are the first two rows? (Obviously not the order you have listed them in as...
September 21, 2020 at 4:40 pm
>the 1st 2 rows have all data for column 1-6 as it has row start with 2 and 3 below each other
What do you mean by the first two rows?
How...
September 21, 2020 at 3:19 pm
SELECT C.Colo_ID, C.Colo_Procdate, X.Res_Date, X.Res_value
FROM #Colo C
CROSS APPLY
(
SELECT TOP(1) R.Res_Date, R.Res_value
FROM #Res R
WHERE R.Res_id = C.Colo_ID
AND R.Res_Date <= C.Colo_Procdate
ORDER BY R.Res_date DESC
) X;
September 19, 2020 at 6:06 pm
You question does not make sense.
If you would care to post a sensible question (with consumable test data!!!!!) someone might give you a sensible answer.
-- *** Consumable...
September 19, 2020 at 11:07 am
If you have not already read it, you may find the following to be useful:
https://www.red-gate.com/library/troubleshooting-sql-server-a-guide-for-accidental-dbas
September 15, 2020 at 9:13 am
An example of a nested join is:
FROM TableA A
LEFT JOIN
(
TableB B
JOIN TableC C
ON B.Bid = C.Bid
)
ON A.Aid = B.Aid;
which could be written like:
FROM TableA...
September 14, 2020 at 7:09 pm
Brackets are generally used to make nested joins more recognizable even thought it is actually the order of the ONs that matter.
As this is not a nested join, the brackets...
September 14, 2020 at 7:47 am
If anyone else is affected by this, it still occurs with SQL2017 CU22 on a test VM.
September 11, 2020 at 6:29 pm
This post does not make much sense so I presume your query actually has a WHERE clause.
If the linked server has a different collation etc then the four part naming...
September 9, 2020 at 8:56 am
Also:
1. what is the point of x7? It is not referenced.
2. if the code is part of a stored procedure all those variables in the WHERE clause could produce parameter...
September 8, 2020 at 2:00 pm
ps I think this is some sort of packing or loading algorithm but the details are not clear.
September 1, 2020 at 9:18 am
The logic seems to be that, for each Noseqtrt, the rank for an address with an even count has to start with an odd number.
This sort of logic is best...
August 31, 2020 at 7:42 pm
Viewing 15 posts - 451 through 465 (of 1,496 total)