DataReader.GetFieldType returned null

后端 未结 6 1729
北荒
北荒 2021-01-01 17:46

In my db table Layout, there\'s one column whose type is hierarchyid (column index=4). When trying to set-up new environment (a virtual web-server, created from

6条回答
  •  遥遥无期
    2021-01-01 18:16

    Reference the Microsoft.SQLServer.Types dll from the project and for the reference set it as "Copy Local" in the properties of the reference. This will package that DLL up with the website when you deploy it. Then you don't need all of SQL Server installed on your web box in order to use the SQL Server data types. I did this for my website because it was using the geography data type columns and I was getting the same error.

提交回复
热议问题