Viewing 15 posts - 1 through 15 (of 717 total)
You could use a parameter to let user choose server, & programmatically derive the connection string & dataset. See links below
Or -- not recommended -- you could embed all 100...
December 5, 2024 at 7:26 pm
They are probably right. There is probably no value in that column (not to mention the ambiguous "ID" name) unless you are using an ORM or other tool/framework that insists...
November 26, 2024 at 10:10 pm
What do you mean by "Update routine"? A stored procedure? A script? Or ORM or other C# code
If SQL code add something like
SELECT @@ROWCOUNT AS UpdatedCount
directly after...
October 29, 2024 at 3:16 pm
Just exclude first_name & last_name from the constraint -- per your new requirement, they are no longer part of the definition of unique. e.g.,
CREATE UNIQUE INDEX ix_unique_email
ON...
October 2, 2024 at 2:43 pm
4 versions of this post -- reply to https://www.sqlservercentral.com/forums/topic/between-datetime-statement-not-working-4 which seems to be the one being updated.
October 2, 2024 at 2:28 pm
4 versions of this post -- reply to https://www.sqlservercentral.com/forums/topic/between-datetime-statement-not-working-4 which seems to be the one being updated.
October 2, 2024 at 2:28 pm
4 versions of this post -- reply to https://www.sqlservercentral.com/forums/topic/between-datetime-statement-not-working-4 which seems to be the one being updated.
October 2, 2024 at 2:28 pm
Just use UNION ALL between the two selects you're using for the inserts into the temp tables, and eliminate the rest.
September 18, 2024 at 1:24 pm
Unintentional duplicate due to delay in save.
September 18, 2024 at 1:24 pm
If it is truly indexed appropriately (and filtered indexes may be a part of that), then none of the other approaches may be needed to maintain performance at that level.
What...
September 9, 2024 at 1:50 pm
@pitterson's response looked like it was ChatGPT-generated (especially given it was a new user)
August 22, 2024 at 3:14 pm
What is the transaction isolation level for the database? I haven't found yet the default used by Powershell.
August 14, 2024 at 1:22 pm
From the wayback machine:
August 5, 2024 at 1:19 pm
would a MERGE perform better than an UPDATE/INSERT?
Probably not: https://www.sqlservercentral.com/articles/performance-of-the-sql-merge-vs-insertupdate
July 12, 2024 at 1:14 pm
An actual execution plan (e.g., from https://www.brentozar.com/pastetheplan/) would probably help us.
July 9, 2024 at 4:05 pm
Viewing 15 posts - 1 through 15 (of 717 total)