Viewing 15 posts - 241 through 255 (of 2,897 total)
This might be helpful reading.
https://dotnettutorials.net/lesson/over-clause-sql-server/
August 24, 2021 at 12:46 pm
What is the type of Source file ? Direct export from query results ?
Is the data the same ? Maybe different results, cause different CR-LF ? Something like an embedded...
August 5, 2021 at 8:44 pm
sp_who2 ?
August 5, 2021 at 4:35 pm
This may give you what you want, or get you close.
SELECT
MAX(QS.last_execution_time) LastExecution,
COUNT(*) ExecutionCount,
DB_NAME(ST.dbid) DatabaseName,
OBJECT_SCHEMA_NAME(ST.objectid, dbid) as [Schema_Name],
...
August 4, 2021 at 8:05 pm
The goal is to look at all SPs across databases with a specific reference in the code, so I can't make changes to all the SPs affected.
Logging might be a...
August 3, 2021 at 7:07 pm
Agree that some documentation is better than none. My pet peeve is code with few or no comments. It takes just a few seconds to add comment lines here and...
July 27, 2021 at 6:56 pm
Looks like you have to do separate install for each instance, which I would expect.
July 23, 2021 at 5:28 pm
I totally agree with the others. One of the things I value the most in working with people is "absolute honesty".
That also includes people that copy exactly what...
July 21, 2021 at 6:29 pm
Another thought....TEST !
Practice restoring your backups to a test server, under various scenarios. Is a test server available ? If you need to restore production to a test area to...
July 19, 2021 at 12:43 pm
We use SAP Data Services. We have multiple platforms, SQL, IMBi and a couple of Oracle links. It's similar in some ways to SSIS.
One tiny feature I recently found that...
July 14, 2021 at 4:58 pm
When we had a credit card payment auditor wanting SQL information, he sat with me, while I ran the queries, and he could see the results.
If one of you is...
July 12, 2021 at 8:42 pm
I agree with Frank, that the column names for dates should be generic, not including hardcoded dates.
Then load into a temporary table, and use UNPIVOT to load into your permanent...
July 12, 2021 at 5:20 pm
Have you confirmed there are no other processes causing blocking ?
July 12, 2021 at 3:43 pm
I think some 3rd party backup tools have Object level restore options. Otherwise, several good options already mentioned above.
July 12, 2021 at 3:33 pm
You probably need to add "COLLATE" to JOINs and WHERE statements
SELECT A.FLD1, B.FLD6
FROM TABLE_A A
JOIN TABLE_B B on A.FLD1 COLLATE Latin1_General_CI_AS = B.FLD2
WHERE A.FLD3 COLLATE Latin1_General_CI_AS = B.FLD6
July 2, 2021 at 3:17 pm
Viewing 15 posts - 241 through 255 (of 2,897 total)