SlideShare a Scribd company logo
1 of 1
SQL Issue: AnUpdate to CMS_UNIQUE_KEYS WithoutWhere Clause UpdatesAll Records
Scope: Immediate impacttoanytransactionthat needsaprimarykey.
Possible ApproachtoAvoidthissituation: Use RowCount
Please contact Aderant Support or other 3rd
party consultants for help
instead of updating any tables through SQL.
Data integrity is critical.
Please review your contract with Aderant before placing Support calls
for data integrity issues caused by SQL update scripts.
Example:
create table ExpertTable (RecordNbr int, RecordText25 varchar(25))
go
declare @loopCounter int
select @loopCounter = 1
while @loopCounter < 50
begin
insert into ExpertTable values(@loopCounter, cast(@loopCounter as varchar) + '
Description')
select @loopCounter = @loopCounter + 1
end
set rowcount 1
update ExpertTable set Recordtext25 = 'BLANK'
set rowcount 0
select * from ExpertTable

More Related Content

What's hot

Przywitaj się z reactive extensions
Przywitaj się z reactive extensionsPrzywitaj się z reactive extensions
Przywitaj się z reactive extensionsMarcin Juraszek
 
Spring batch showCase
Spring batch showCaseSpring batch showCase
Spring batch showCasetaher abdo
 
Sql group functions
Sql group functionsSql group functions
Sql group functionsSumit Tambe
 
Sql group functions(2)
Sql group functions(2)Sql group functions(2)
Sql group functions(2)Sumit Tambe
 
Testing Two-Way Data Binding in AngularJS
Testing Two-Way Data Binding in AngularJSTesting Two-Way Data Binding in AngularJS
Testing Two-Way Data Binding in AngularJSBackand Cohen
 
Unit ii divide and conquer -1
Unit ii divide and conquer -1Unit ii divide and conquer -1
Unit ii divide and conquer -1subhashchandra197
 

What's hot (9)

Przywitaj się z reactive extensions
Przywitaj się z reactive extensionsPrzywitaj się z reactive extensions
Przywitaj się z reactive extensions
 
Database c# connetion
Database c# connetionDatabase c# connetion
Database c# connetion
 
done
donedone
done
 
Spring batch showCase
Spring batch showCaseSpring batch showCase
Spring batch showCase
 
Sql group functions
Sql group functionsSql group functions
Sql group functions
 
Sql group functions(2)
Sql group functions(2)Sql group functions(2)
Sql group functions(2)
 
Testing Two-Way Data Binding in AngularJS
Testing Two-Way Data Binding in AngularJSTesting Two-Way Data Binding in AngularJS
Testing Two-Way Data Binding in AngularJS
 
Trigger
TriggerTrigger
Trigger
 
Unit ii divide and conquer -1
Unit ii divide and conquer -1Unit ii divide and conquer -1
Unit ii divide and conquer -1
 

Similar to SQL Issue

6 integrity and security
6 integrity and security6 integrity and security
6 integrity and securityDilip G R
 
ADO.Net Improvements in .Net 2.0
ADO.Net Improvements in .Net 2.0ADO.Net Improvements in .Net 2.0
ADO.Net Improvements in .Net 2.0David Truxall
 
Flink Forward SF 2017: Timo Walther - Table & SQL API – unified APIs for bat...
Flink Forward SF 2017: Timo Walther -  Table & SQL API – unified APIs for bat...Flink Forward SF 2017: Timo Walther -  Table & SQL API – unified APIs for bat...
Flink Forward SF 2017: Timo Walther - Table & SQL API – unified APIs for bat...Flink Forward
 
Introduction to Threading in .Net
Introduction to Threading in .NetIntroduction to Threading in .Net
Introduction to Threading in .Netwebhostingguy
 
6. Integrity and Security in DBMS
6. Integrity and Security in DBMS6. Integrity and Security in DBMS
6. Integrity and Security in DBMSkoolkampus
 
SSMS-waitstats
SSMS-waitstatsSSMS-waitstats
SSMS-waitstatsE Blake
 
Using_PATSTAT_with_SQL_v2.8.pptx
Using_PATSTAT_with_SQL_v2.8.pptxUsing_PATSTAT_with_SQL_v2.8.pptx
Using_PATSTAT_with_SQL_v2.8.pptxssuserf96a5b
 
MS SQLSERVER:Sql Functions And Procedures
MS SQLSERVER:Sql Functions And ProceduresMS SQLSERVER:Sql Functions And Procedures
MS SQLSERVER:Sql Functions And Proceduressqlserver content
 
MS SQL SERVER: Sql Functions And Procedures
MS SQL SERVER: Sql Functions And ProceduresMS SQL SERVER: Sql Functions And Procedures
MS SQL SERVER: Sql Functions And Proceduressqlserver content
 
OSA Con 2022 - Specifics of data analysis in Time Series Databases - Roman Kh...
OSA Con 2022 - Specifics of data analysis in Time Series Databases - Roman Kh...OSA Con 2022 - Specifics of data analysis in Time Series Databases - Roman Kh...
OSA Con 2022 - Specifics of data analysis in Time Series Databases - Roman Kh...Altinity Ltd
 
New features of SQL in Firebird
New features of SQL in FirebirdNew features of SQL in Firebird
New features of SQL in FirebirdMind The Firebird
 
Oracle vs. SQL Server- War of the Indices
Oracle vs. SQL Server- War of the IndicesOracle vs. SQL Server- War of the Indices
Oracle vs. SQL Server- War of the IndicesKellyn Pot'Vin-Gorman
 

Similar to SQL Issue (20)

6 integrity and security
6 integrity and security6 integrity and security
6 integrity and security
 
ADO.Net Improvements in .Net 2.0
ADO.Net Improvements in .Net 2.0ADO.Net Improvements in .Net 2.0
ADO.Net Improvements in .Net 2.0
 
Flink Forward SF 2017: Timo Walther - Table & SQL API – unified APIs for bat...
Flink Forward SF 2017: Timo Walther -  Table & SQL API – unified APIs for bat...Flink Forward SF 2017: Timo Walther -  Table & SQL API – unified APIs for bat...
Flink Forward SF 2017: Timo Walther - Table & SQL API – unified APIs for bat...
 
Introduction to Threading in .Net
Introduction to Threading in .NetIntroduction to Threading in .Net
Introduction to Threading in .Net
 
Ch6
Ch6Ch6
Ch6
 
6. Integrity and Security in DBMS
6. Integrity and Security in DBMS6. Integrity and Security in DBMS
6. Integrity and Security in DBMS
 
2e data models
2e   data models2e   data models
2e data models
 
Dbms lab Manual
Dbms lab ManualDbms lab Manual
Dbms lab Manual
 
PL/SQL 3 DML
PL/SQL 3 DMLPL/SQL 3 DML
PL/SQL 3 DML
 
zekeLabs sql-slides
zekeLabs sql-slideszekeLabs sql-slides
zekeLabs sql-slides
 
Anything SQL: Lightning Talks
Anything SQL: Lightning TalksAnything SQL: Lightning Talks
Anything SQL: Lightning Talks
 
SSMS-waitstats
SSMS-waitstatsSSMS-waitstats
SSMS-waitstats
 
Using_PATSTAT_with_SQL_v2.8.pptx
Using_PATSTAT_with_SQL_v2.8.pptxUsing_PATSTAT_with_SQL_v2.8.pptx
Using_PATSTAT_with_SQL_v2.8.pptx
 
Sql Functions And Procedures
Sql Functions And ProceduresSql Functions And Procedures
Sql Functions And Procedures
 
MS SQLSERVER:Sql Functions And Procedures
MS SQLSERVER:Sql Functions And ProceduresMS SQLSERVER:Sql Functions And Procedures
MS SQLSERVER:Sql Functions And Procedures
 
MS SQL SERVER: Sql Functions And Procedures
MS SQL SERVER: Sql Functions And ProceduresMS SQL SERVER: Sql Functions And Procedures
MS SQL SERVER: Sql Functions And Procedures
 
Sqlapi0.1
Sqlapi0.1Sqlapi0.1
Sqlapi0.1
 
OSA Con 2022 - Specifics of data analysis in Time Series Databases - Roman Kh...
OSA Con 2022 - Specifics of data analysis in Time Series Databases - Roman Kh...OSA Con 2022 - Specifics of data analysis in Time Series Databases - Roman Kh...
OSA Con 2022 - Specifics of data analysis in Time Series Databases - Roman Kh...
 
New features of SQL in Firebird
New features of SQL in FirebirdNew features of SQL in Firebird
New features of SQL in Firebird
 
Oracle vs. SQL Server- War of the Indices
Oracle vs. SQL Server- War of the IndicesOracle vs. SQL Server- War of the Indices
Oracle vs. SQL Server- War of the Indices
 

More from Mary Clemons

5-Ways-to-Revolutionize-Your-Software-Testing
5-Ways-to-Revolutionize-Your-Software-Testing5-Ways-to-Revolutionize-Your-Software-Testing
5-Ways-to-Revolutionize-Your-Software-TestingMary Clemons
 
ReportWriterCertification
ReportWriterCertificationReportWriterCertification
ReportWriterCertificationMary Clemons
 
Upgrading Expert Imaging
Upgrading Expert ImagingUpgrading Expert Imaging
Upgrading Expert ImagingMary Clemons
 
BasicScript Sample Explained
BasicScript Sample ExplainedBasicScript Sample Explained
BasicScript Sample ExplainedMary Clemons
 
Threshold Billing Script Without Video
Threshold Billing Script Without VideoThreshold Billing Script Without Video
Threshold Billing Script Without VideoMary Clemons
 
Expert Image Notes
Expert Image NotesExpert Image Notes
Expert Image NotesMary Clemons
 

More from Mary Clemons (7)

5-Ways-to-Revolutionize-Your-Software-Testing
5-Ways-to-Revolutionize-Your-Software-Testing5-Ways-to-Revolutionize-Your-Software-Testing
5-Ways-to-Revolutionize-Your-Software-Testing
 
ReportWriterCertification
ReportWriterCertificationReportWriterCertification
ReportWriterCertification
 
Upgrading Expert Imaging
Upgrading Expert ImagingUpgrading Expert Imaging
Upgrading Expert Imaging
 
BasicScript Sample Explained
BasicScript Sample ExplainedBasicScript Sample Explained
BasicScript Sample Explained
 
Threshold Billing Script Without Video
Threshold Billing Script Without VideoThreshold Billing Script Without Video
Threshold Billing Script Without Video
 
Expert Image Notes
Expert Image NotesExpert Image Notes
Expert Image Notes
 
Word Curriculum
Word CurriculumWord Curriculum
Word Curriculum
 

SQL Issue

  • 1. SQL Issue: AnUpdate to CMS_UNIQUE_KEYS WithoutWhere Clause UpdatesAll Records Scope: Immediate impacttoanytransactionthat needsaprimarykey. Possible ApproachtoAvoidthissituation: Use RowCount Please contact Aderant Support or other 3rd party consultants for help instead of updating any tables through SQL. Data integrity is critical. Please review your contract with Aderant before placing Support calls for data integrity issues caused by SQL update scripts. Example: create table ExpertTable (RecordNbr int, RecordText25 varchar(25)) go declare @loopCounter int select @loopCounter = 1 while @loopCounter < 50 begin insert into ExpertTable values(@loopCounter, cast(@loopCounter as varchar) + ' Description') select @loopCounter = @loopCounter + 1 end set rowcount 1 update ExpertTable set Recordtext25 = 'BLANK' set rowcount 0 select * from ExpertTable