Skip to content

Commit

Permalink
removed debugging print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-pullman committed Jul 24, 2023
1 parent 4ab6266 commit 801dda7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Code/R/etlVariableCodebook.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ sqlUserName = "sa"
sqlPassword = "yourStrong(!)Password"
sqlDefaultDb = "NhanesLandingZone"

print("starting")

# loop waiting for SQL Server database to become available
for (i in 1:60) {
cn = tryCatch(
Expand Down Expand Up @@ -79,7 +77,6 @@ insertStatement = paste(sep="", "
")

SqlTools::dbSendUpdate(cn, insertStatement)
print("first bulk didn't fail")

#TODO: make this table more comprehensive, to invlude suffixes as well as prefixes
# create the ExcludedTables table in SQL
Expand All @@ -98,7 +95,6 @@ insertStatement = paste(sep="", "


SqlTools::dbSendUpdate(cn, insertStatement)
print("second bulk didn't fail")

# shrink transaction log
SqlTools::dbSendUpdate(cn, "DBCC SHRINKFILE(NhanesLandingZone_log)")
Expand Down Expand Up @@ -127,7 +123,6 @@ insertStatement = paste(sep="", "
")

SqlTools::dbSendUpdate(cn, insertStatement)
print("third bulk didn't fail")

# As of v0.0.2, the nhanes_tables.tsv file includes doublequotes in the values. These lines replace them.
SqlTools::dbSendUpdate(cn, "UPDATE ##tmp_nhanes_tables SET [Table] = REPLACE([Table], CHAR(34), '')")
Expand Down Expand Up @@ -203,7 +198,6 @@ insertStatement = paste(sep="", "
")

SqlTools::dbSendUpdate(cn, insertStatement)
print("fourth bulk didn't fail")

# add columns to QuestionnaireVariables table to accommodate additional data
SqlTools::dbSendUpdate(cn, "
Expand Down

0 comments on commit 801dda7

Please sign in to comment.