 exports.varChar = (test) ->
   execSql(test, TYPES.VarChar, 'qaz')
 
+### Per 2.2.5.4.3, lengths greater than 8000 only supported version 7.2 and beyond. ###
 exports.varCharN = (test) ->
-  execSql(test, TYPES.VarChar, 'qaz', null, {length: 8001})
+  execSql(test, TYPES.VarChar, 'qaz', null, {length: 8000})
+
+exports.varCharN_7_2_AndLater = (test) ->
+  execSql(test, TYPES.VarChar, 'qaz', '7_2', {length: 8001})
 
 exports.varCharEmptyString = (test) ->
   execSql(test, TYPES.VarChar, '')

  execSql(test, TYPES.VarChar, longString, '7_2')

exports.varCharMaxEmptyString = (test) ->
  execSql(test, TYPES.VarChar, '', null, {length: 8001})

exports.nVarChar = (test) ->
  execSql(test, TYPES.NVarChar, 'qaz')

exports.nVarCharN = (test) ->
  execSql(test, TYPES.NVarChar, 'qaz', null, {length: 4001})

exports.nVarCharEmptyString = (test) ->
  execSql(test, TYPES.NVarChar, '')

  )

execSql = (test, type, value, tdsVersion, options) ->

  config = getConfig()
  #config.options.packetSize = 32768

