Viewing 15 posts - 16 through 30 (of 506 total)
If your users are connecting directly to the database when making changes, you could add modified_by and modified_on columns defaulting to suser_name() and sysdatetime() respectively. If you users are connecting...
August 15, 2019 at 4:35 pm
You should consider writing to a logging table after the rollback, so it will persist, to track what happened and why.
August 15, 2019 at 4:22 pm
USE Testing
GO
DROP TABLE IF EXISTS dbo.[SAMPLE];
GO
CREATE TABLE dbo.[SAMPLE] (
ID_NUMERIC VARCHAR(10)
, SAMPLED_DATE DATE
, SAMPLING_POINT VARCHAR(15)
);
GO
DROP TABLE IF EXISTS dbo.TEST;
GO
CREATE TABLE dbo.TEST (
...
August 5, 2019 at 3:30 pm
Please provide the sample data in the form mentioned above for the three tables in your query.
August 4, 2019 at 10:29 pm
Try adding the login as a user to msdb and add them to the SQLAgentOperatorRole Database role.
August 4, 2019 at 10:18 pm
That error indicates there are rows in the referenced table that aren't in the referencing table so SQL Server can't create the constraint.
August 3, 2019 at 5:45 pm
You can find new columns and tables using a left join with where the column name or table name is null. Then you have to decide what to do if...
August 3, 2019 at 5:42 pm
Have you looked at SQL Server Data Quality Services?https://www.google.com/url?sa=t&source=web&rct=j&url=https://docs.microsoft.com/en-us/sql/data-quality-services/data-quality-services&ved=2ahUKEwjK9KWej-TjAhUhMn0KHdL3DhcQFjAAegQIBxAC&usg=AOvVaw3ERS-iZO5QVMVmiNy9qnAb
L
SQLrdata quality services
August 2, 2019 at 11:50 am
This was removed by the editor as SPAM
May 28, 2019 at 4:56 pm
SQL Server creates an hidden table for an indexed view. To duplicate that try creating a trigger on each of the tables that inserts or deletes rows in another table...
May 27, 2019 at 3:11 pm
INSERT INTO P (...)
FROM BACKUPTABLE B
LEFT OUTER JOIN PRODTABLE P
ON B.ID = P.ID
AND P.ID IS NULL;
May 7, 2019 at 3:28 pm
If the synchronization of other schemas to dbo doesn't have to be immediate, a job could be scheduled to sync periodically.
April 15, 2019 at 7:22 pm
In the 2008 R2 release they introduced SSIS project deployment model which uses SSISDB. Only the package deployment model is available in the 2008 release.
April 7, 2019 at 2:48 pm
A database trigger on master rolling back drop login might work as well based on role membership.
April 7, 2019 at 2:41 pm
SELECT (TOP 1)
st.name ‘Table Name’,
c.name ‘Column Name’,
t.name ‘Data Type’
FROM sys.columns c
INNER JOIN sys.types t ON c.user_type_id = t.user_type_id
LEFT OUTER JOIN sys.index_columns ic ON ic.object_id = c.object_id AND ic.column_id = c.column_id
LEFT...
April 7, 2019 at 2:05 pm
Viewing 15 posts - 16 through 30 (of 506 total)