bzswords / HospitalRadar

Web Application that tracks the location and information of hospitals based on user input
0 stars 0 forks source link

Convert Provider Number type from ntext to nvarchar #19

Closed bzswords closed 10 years ago

bzswords commented 10 years ago

So you can't do a SQL join on ntext columns because they do no support the = operator. We need to convert all Provider Number columns that are ntext in type to nvarchar because joining is a necessity for what we are trying to do.

http://stackoverflow.com/questions/18789810/how-can-i-easily-convert-all-ntext-fields-to-nvarcharmax-in-sql-query

bzswords commented 10 years ago

Converted Provider Number column in dbo.dbo_vwHQI_HOSP and dbo.dbo_vwHQI_HOSP_GEOCODES to nvarchar. Removed leading and trailing single quotes from dbo.dbo_vwHQI_HOSP. Will push SQL statements that successfully completed these tasks to repo in case we need them again