Viewing 15 posts - 916 through 930 (of 13,849 total)
If it's not compressed, you could try zipping it first. But one way or another, the data has to get from A to B. Is there a reason why you...
May 31, 2023 at 3:06 pm
Restore from a backup file instead.
May 31, 2023 at 2:59 pm
Nice tweak, that's much cleaner. Thanks, Jonathan.
May 31, 2023 at 9:33 am
Maybe this?
DROP TABLE IF EXISTS #Data;
CREATE TABLE #Data
(
CLNUM INT
,Model INT
,CLSTATUS CHAR(1)
,CLSTATDATE DATE
...
May 31, 2023 at 8:35 am
By this I mean it is out of order which it should be
Please take some time to think about people reading your post. We have no idea ... none at...
May 31, 2023 at 7:52 am
Here is a formatted version. Note that all of your
CAST ('YYYY-MM-DD' AS DATETIME)
statements can be simplified to 'YYYYMMDD'. As suggested above, this looks like homework to me.
CREATE...
May 30, 2023 at 12:52 pm
You did exactly the right thing in adding the []. Your other fix also looks good, well done on resolving the issues!
May 23, 2023 at 3:05 pm
Knowing when to use Python in SQL Server depends on the specific requirements and tasks you need to accomplish. Python can be used in various scenarios within SQL Server,...
May 23, 2023 at 6:52 am
Another option is adding a persisted, calculated column to one of the tables and indexing accordingly.
May 22, 2023 at 4:27 pm
No, a single trigger can be used to cover multiple operations
CREATE TRIGGER ON ...
AFTER INSERT, UPDATE, DELETE
<trigger logic here>
May 22, 2023 at 3:39 pm
I'd consider writing the output from these triggers into a custom 'MessageQueue' table and having a separate periodic process running which picks up unprocessed rows from this table, sends the...
May 22, 2023 at 1:35 pm
Cool! I'd suggest you test/consider a couple of tweaks. The first, in particular, may improve performance, while the second is (IMO at least!) easier to read:
INSERT INTO...
May 22, 2023 at 1:29 pm
I have converted all the dates to ISO format, but the Job is still failing.
OK, so you're going from SQL Server to Excel. That means you can use a...
May 22, 2023 at 1:17 pm
OK, simply change my final SELECT:
WITH CustomerGroup
AS (SELECT *
FROM
(
VALUES
...
May 22, 2023 at 11:06 am
Something like this?
DROP TABLE IF EXISTS #Customer;
CREATE TABLE #Customer
(
Name VARCHAR(50) NOT NULL
,CustomerNumber INT NOT NULL
);
INSERT #Customer
(
Name
...
May 22, 2023 at 9:59 am
Viewing 15 posts - 916 through 930 (of 13,849 total)