-
Notifications
You must be signed in to change notification settings - Fork 2
10. Code convention
Bas van den Berg edited this page Sep 16, 2019
·
3 revisions
-
use nvarchar instead of varchar. Rationale. The size and performance impact is relatively small because betl only contains meta data. Microsoft uses nvarchar for it's own meta data repository, so theoretically strange characters could appear in the meta data. It's better to be prepared than to face a bug in this case.
-
Stored procedures and functions should perform only one atomic function. I.e. do do not execute refresh inside push because this complicates testing and this is bad for performance ( since refresh is executed too many times).
-
use nvarchar(max) to prevent truncation errors.