Viewing 15 posts - 136 through 150 (of 1,489 total)
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
As alter will work with a certificate in a single database, the way around this is to create a signed SP in db2 to truncate the table and then call...
March 8, 2024 at 2:09 pm
I have just managed to quickly look at this again. The problem is with the ALTER permission and TRUNCATE TABLE as it seems to work fine if the SP just...
March 8, 2024 at 10:51 am
Viewing 15 posts - 136 through 150 (of 1,489 total)