Viewing 15 posts - 61 through 75 (of 1,418 total)
Thoughts?
Run!
Code first is great for rapid prototyping but it gets to the point where some traditional OO analysis and database schema design needs to be done.
April 9, 2024 at 3:17 pm
Baselining is a large topic so you might want to look at third party tools. This may get you started:
https://www.brentozar.com/archive/2006/12/dba-101-using-perfmon-for-sql-performance-tuning/
https://www.sqlservercentral.com/articles/perfmon-using-sql-server-performance-counters
April 6, 2024 at 4:23 pm
Thanks Ant. I'll see if they have any older backups but I suspect that they won't.
To get a log backup there must have been at least one full backup...
April 4, 2024 at 4:45 pm
I can "rewind" to last Saturday on Database A with the current transaction logs though.
I would be interested to see how you do that. I suspect it would require...
April 4, 2024 at 10:54 am
I'm having to figure out how to in effect rewind a copy of the database back from now to last weekend
This is not possible. You will need a bak...
April 4, 2024 at 10:35 am
Denies a permission to a principal. Prevents that principal from inheriting the permission through its group or role memberships. DENY takes precedence over all permissions, except that DENY does...
March 26, 2024 at 3:46 pm
Maybe:
WITH Lags
AS
(
SELECT P.Code, X.DataPassaggio, P.idServizio, P.up
,LAG(idServizio) OVER (PARTITION BY P.Code, X.DataPassaggio ORDER BY P.DataPassaggio) AS...
March 26, 2024 at 3:21 pm
DDL? Test Data? You have enough points to know this.
March 26, 2024 at 1:27 pm
I have never used float for table definitions. I am not sure why the INTO command I used ended up with that data type.
You did some calculations...
March 14, 2024 at 8:42 pm
The query does math calculations
You should explicitly cast the results to the type you want - presumably not float.
March 14, 2024 at 11:57 am
It depends!
Your other options are Hierarchyid or nested sets.
Security can also be done in SQL Server with RLS.
March 12, 2024 at 10:05 am
I am not a SSIS expert but with regards to authentication methods:
March 8, 2024 at 4:48 pm
2. Sign a SP for permissions in another Database.
/* Only works with DML */
USE <main_db, sysname,>;
GO
SET ANSI_NULLS, QUOTED_IDENTIFIER ON;
GO
CREATE OR ALTER PROCEDURE <schema_name, sysname, dbo>.<proc_name, sysname,>
AS
SET NOCOUNT,...
March 8, 2024 at 2:47 pm
1. Sign a SP for permissions within the same database.
USE <Main DB, sysname,>;
GO
SET ANSI_NULLS, QUOTED_IDENTIFIER ON;
GO
CREATE OR ALTER PROCEDURE <schema_name, sysname, dbo>.<proc_name, sysname,>
AS
SET NOCOUNT, XACT_ABORT ON;
RETURN;
GO
GRANT [rights]...
March 8, 2024 at 2:46 pm
Further reading:
https://straightforwardsql.com/posts/cross-db-access-with-module-signing/
https://sqlquantumleap.com/2017/12/30/please-please-please-stop-using-impersonation-execute-as/
This is detailed and probably requires you to place a bag of frozen peas on top of your head.
https://www.sommarskog.se/grantperm.html
Also, here are some outline SSMS templates (Ctrl...
March 8, 2024 at 2:45 pm
Viewing 15 posts - 61 through 75 (of 1,418 total)