Viewing 15 posts - 226 through 240 (of 748 total)
If you know the dates are always in DD/MM/YYYY format, perhaps you could pre-swap the month and day segments of the string & avoid the need to set dateformat --...
November 18, 2022 at 4:24 pm
If you know the dates are always in DD/MM/YYYY format, perhaps you could pre-swap the month and day segments of the string -- e.g.,
DECLARE @DateString CHAR(10) =...
November 18, 2022 at 4:24 pm
Seems related to your other question: https://www.sqlservercentral.com/forums/topic/assigned-as-guest-when-installed-sql-server-on-workstation.
If his windows login has sysadmin permissions, then yes. If not, then somebody (e.g., IT) has to login as sa to create users &...
November 14, 2022 at 4:12 pm
frederico_fonseca wrote:
do not use the native string_split - slow and does not return the ordinal of the strings.
Aaron Bertrand's tests from 2016 showed exceptionally good performance: https://sqlperformance.com/2016/03/sql-server-2016/string-split
November 11, 2022 at 4:34 pm
Might have been appropriate for Halloween.
November 11, 2022 at 2:29 pm
Always exclude SQL Server data, backup, & repl folders from antivirus scans -- they are well known to be devastating to performance. Many people have experienced this -- it's just...
November 10, 2022 at 8:13 pm
You don't know the delimiter? It's not predefined/standardized?
STRING_SPLIT function is available in 2016, but would require nvarchar instead of ntext.
ntext has been deprecated since SQL Server 2008, & has limitations...
November 10, 2022 at 6:14 pm
Good question, homebrew01.
roland:
Recovery model? Full? Simple? Bulk-logged?
I assume we're talking about full backups. How often?
If full, how often are you doing log backups? Are they succeeding?
November 10, 2022 at 5:40 pm
Is backup the only thing happening at that time? Is there index maintenance or CHECKDB going on in the same job (or worse, simultaneously)?
What do you mean by "own backup...
November 10, 2022 at 5:35 pm
A non-clustered index may help.
In most cases, you should probably have a clustered index.
November 9, 2022 at 5:07 pm
SSMS can tell you dependencies for the procedure as a whole.
At the CTE level, as far as I know, that will require a diligent data engineer.
Be alert to the use...
November 8, 2022 at 11:41 pm
Is your data really so bad that all those predicates could be null or empty strings? Do they really contain invalid commas?
All the ISNULL(), REPLACE(), & LOWER() functions make your...
November 8, 2022 at 2:43 pm
Note that query would still return a row for every different combination of the columns. If all you're trying to get is the sum, you need to change the group...
November 4, 2022 at 7:59 pm
Viewing 15 posts - 226 through 240 (of 748 total)