Viewing 15 posts - 586 through 600 (of 754 total)
November 16, 2021 at 6:02 pm
If you are running certain queries frequently, turn them into stored procedures. Then they will be saved in SQL Server and accessible through the object explorer. And stored procedures...
November 16, 2021 at 2:24 pm
No. It's no longer available. Microsoft has once again killed a feedback site for SQL Server.
November 16, 2021 at 2:16 pm
It is often the case that persisting working data can improve performance, and probably won't take long to test this anecdotally, so I wouldn't discourage trying it. But long term...
November 15, 2021 at 10:58 pm
You can only create indexes on views if they met certain criteria: https://docs.microsoft.com/en-us/sql/relational-databases/views/create-indexed-views?view=sql-server-ver15
Indexed views are only valuable in limited circumstances. If you've already created indexes on the table that allowed...
November 15, 2021 at 8:07 pm
What do you mean by "customized" log shipping?
Are you trying to do a timed drill to estimate recovery time, or just trying to prove you can failover successfully?
You ask for...
November 12, 2021 at 3:23 pm
You can insert the data into a user-defined table type variable , add a table-valued parameter (TVP) to the second procedure referencing that table type, and pass the variable from...
November 10, 2021 at 3:58 pm
Should your example case statement end in ELSE 3ltrcode END instead of ELSE END? I assume you actually want to join on a3ltr code except for these/similar translations.
Comments is dependent...
November 5, 2021 at 2:34 pm
a) Putting T-SQL code in a code block

b) Providing data in a consumable format (which can be pasted into SSMS)
This just means (again using code sample control)...
November 3, 2021 at 6:39 pm
It sounds like you might be looking for Reporting Services data processing extensions, if you're trying to mediate/alter the source data outside of SQL Server or other RDBMS.
November 3, 2021 at 4:05 pm
The missing index recommendation looks pretty good in this case -- you have a table scan because you are joining on PartLevel, but have no index.
Thank you for providing DDL...
November 3, 2021 at 1:16 pm
I'd love to see a generic framework/example for this, even if the OP has left the building.
I know your preference for datetime over datetime2, but would also be interested in...
November 2, 2021 at 8:20 pm
Not automatically. You could view object details right click to generate alter scripts (or create & then replace "CREATE VIEW" with "ALTER VIEW"), and then just do find-and-replace.
Easy if everything...
November 2, 2021 at 6:13 pm
One would hope response time wouldn't change... though I've seen companies where even that might not be true.
I could see resolution time changing (e.g., help desk declares it resolved, user...
November 1, 2021 at 2:46 pm
Yes. MS SQL Server uses identity, not auto_increment, which appears to be a mysql construct.
In MSSQL, I tend to prefer using sequence over identity (which now actually uses sequence...
October 29, 2021 at 4:39 pm
Viewing 15 posts - 586 through 600 (of 754 total)