SlideShare a Scribd company logo
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 extensions
Marcin Juraszek
 
Database c# connetion
Database c# connetionDatabase c# connetion
Database c# connetion
Christofer Toledo
 
done
donedone
Spring batch showCase
Spring batch showCaseSpring batch showCase
Spring batch showCase
taher abdo
 
Sql group functions
Sql group functionsSql group functions
Sql group functions
Sumit 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 AngularJS
Backand Cohen
 
Trigger
TriggerTrigger
Trigger
Slideshare
 
Unit ii divide and conquer -1
Unit ii divide and conquer -1Unit ii divide and conquer -1
Unit ii divide and conquer -1
subhashchandra197
 

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 security
Dilip 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.0
David 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 .Net
webhostingguy
 
Ch6
Ch6Ch6
6. Integrity and Security in DBMS
6. Integrity and Security in DBMS6. Integrity and Security in DBMS
6. Integrity and Security in DBMS
koolkampus
 
2e data models
2e   data models2e   data models
2e data models
Bibin Devadas
 
Dbms lab Manual
Dbms lab ManualDbms lab Manual
Dbms lab Manual
Vivek Kumar Sinha
 
PL/SQL 3 DML
PL/SQL 3 DMLPL/SQL 3 DML
zekeLabs sql-slides
zekeLabs sql-slideszekeLabs sql-slides
zekeLabs sql-slides
zekeLabs Technologies
 
Anything SQL: Lightning Talks
Anything SQL: Lightning TalksAnything SQL: Lightning Talks
Anything SQL: Lightning Talks
SQL Server Sri Lanka User Group
 
SSMS-waitstats
SSMS-waitstatsSSMS-waitstats
SSMS-waitstats
E 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.pptx
ssuserf96a5b
 
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
sqlserver content
 
Sql Functions And Procedures
Sql Functions And ProceduresSql Functions And Procedures
Sql Functions And Procedures
DataminingTools Inc
 
MS SQLSERVER:Sql Functions And Procedures
MS SQLSERVER:Sql Functions And ProceduresMS SQLSERVER:Sql Functions And Procedures
MS SQLSERVER:Sql Functions And Procedures
sqlserver content
 
Sqlapi0.1
Sqlapi0.1Sqlapi0.1
Sqlapi0.1
jitendral
 
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 Firebird
Mind 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 Indices
Kellyn 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
 
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
 
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
 
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-Testing
Mary Clemons
 
ReportWriterCertification
ReportWriterCertificationReportWriterCertification
ReportWriterCertification
Mary Clemons
 
Upgrading Expert Imaging
Upgrading Expert ImagingUpgrading Expert Imaging
Upgrading Expert Imaging
Mary Clemons
 
BasicScript Sample Explained
BasicScript Sample ExplainedBasicScript Sample Explained
BasicScript Sample Explained
Mary Clemons
 
Threshold Billing Script Without Video
Threshold Billing Script Without VideoThreshold Billing Script Without Video
Threshold Billing Script Without Video
Mary Clemons
 
Expert Image Notes
Expert Image NotesExpert Image Notes
Expert Image Notes
Mary Clemons
 
Word Curriculum
Word CurriculumWord Curriculum
Word Curriculum
Mary 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