Skip to content

Commit

Permalink
Turn off testing mode for sp_GetDDL
Browse files Browse the repository at this point in the history
Fallback definitions are working as intended. #415
  • Loading branch information
joyfullservice committed Aug 1, 2023
1 parent f88ed30 commit 3859bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Version Control.accda.src/modules/clsSchemaMsSql.cls
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,12 @@ Private Function CanUseGetDDL() As Boolean
Set cmd = New ADODB.Command
With cmd
' Check in master database (System SP)
.CommandText = "select OBJECT_ID('master.dbo.sp_GetDDLz')"
.CommandText = "select OBJECT_ID('master.dbo.sp_GetDDL')"
Set .ActiveConnection = conn
Set rst = .Execute
If Nz(rst.Fields(0).Value, 0) = 0 Then
' Nothing found on the master DB. Try this db.
.CommandText = "select OBJECT_ID('sp_GetDDLz')"
.CommandText = "select OBJECT_ID('sp_GetDDL')"
Set rst = .Execute
If Nz(rst.Fields(0).Value, 0) = 0 Then
' Still not available
Expand Down

0 comments on commit 3859bf6

Please sign in to comment.