I am trying to write a program that takes an UPDATE of DELETE sql statement and (without acually updating/deleting) find out how many (if any) rows the statement would modify if it were run. Any help would be greatly appreciated!!!!!
dim theConnection
set theConnection = Server.CreateObject("ADODB.Connection"
theConnection.ConnectionString = "DSN=myDSN"
theConnection.open
theSQL = "DELETE FROM ......"
theConnection.BeginTrans
theConnection.Execute(main_sql)
' HOW MANY ROWS DID THIS EFFECT???
theConnection.RollbackTrans
dim theConnection
set theConnection = Server.CreateObject("ADODB.Connection"
theConnection.ConnectionString = "DSN=myDSN"
theConnection.open
theSQL = "DELETE FROM ......"
theConnection.BeginTrans
theConnection.Execute(main_sql)
' HOW MANY ROWS DID THIS EFFECT???
theConnection.RollbackTrans