rails-sqlserver/activerecord-sqlserver-adapter — Issue #143: TinyTds::Error: Procedure expects parameter '@statement' of type 'ntext/nchar/nvarchar'
Author: guai
Created: 2011-11-16 11:27:12+00:00
State: open

version is 3.1.3
code throwing exception:
```ruby
ActiveRecord::Base.connection.select_value "DECLARE @EncGUID nvarchar(22); EXEC [dbo].[get_guid] @EncGUID = @EncGUID OUTPUT; SELECT @EncGUID;"
```
Fixed it for me with foolowing line after line #290 in database_statements.rb. But didnt test it.
```ruby
statement = 'N'+statement unless statement.start_with? 'N'
```