Viewing 15 posts - 1,741 through 1,755 (of 13,849 total)
To make things a little clearer, here is that code again, but reformatted:
USE QPulse5Training;
GO
DECLARE @outPutPath VARCHAR(50) = 'C:\xp'
,@i BIGINT
...
November 19, 2021 at 12:17 pm
The first problem that we have in trying to answer this is that we cannot see your database and therefore it is difficult to advise on the validity of JOINs.
Regarding...
November 19, 2021 at 12:02 pm
With >3,000 points, you should know to provide a few things:
November 19, 2021 at 11:53 am
That won't do it. When processing is transferred to your CATCH block, your SELECT merely returns the error message and the error is swallowed. I suggest the following slight modification:
November 18, 2021 at 7:25 pm
It depends. Can you show us what is in your CATCH block?
November 18, 2021 at 6:49 pm
SELECT
[Shelf Location], date /*, ...*/FROM (
SELECT *, DENSE_RANK() OVER(PARTITION BY [Shelf Location] ORDER BY date DESC) AS rank_num
...
November 17, 2021 at 8:01 pm
Without DDL and sample data, this is largely an educated guess, but may get you started
With Ordered as (SELECT Grp = DENSE_RANK() OVER (PARTITION BY ShelfLocation ORDER...
November 17, 2021 at 8:00 pm
Even 12 years ago, as far as I remember, SSIS would have to have been installed to allow the unattended running of SSIS packages, and the same is true today.
However,...
November 17, 2021 at 5:51 pm
No. If you really need/want to convert the unique index to a primary key, you will have to drop the index and create the primary key - I don't...
November 17, 2021 at 4:40 pm
If we were to provide the code which produced the desired results, but using your a,b,c,x,y,z data, it would work fine using this sample data, but probably not for your...
November 17, 2021 at 2:34 pm
Sounds like it's encode problem, if I am honest. Perhaps, for example, you're opening the file expecting it to be encoded in UTF-16 and it's actually in ANSI-1252 or...
November 17, 2021 at 11:23 am
Here is the plan:
-log into SFTP server and download files to local directory
-unzip files to specified folder
-import files into SQL Server table (it will always be the same table)
-if...
November 16, 2021 at 4:32 pm
how to handle features or columns that i don't know it
suppose i add new feature today and every feature have column
then every feature added will modify on code
if you...
November 16, 2021 at 8:25 am
First Create your query as a VIEW:
CREATE VIEW dbo.QRY_DATES AS
SELECT ...
Once the view is in place, you can reference it from other queries.
November 15, 2021 at 9:47 pm
So every time the file appears, it has a slightly different name? As long as there is only one file in the folder at any one time, this is not...
November 15, 2021 at 6:59 pm
Viewing 15 posts - 1,741 through 1,755 (of 13,849 total)