Tag: Microsoft
-
MSSQL int to nvarchar
If you need to convert/cast a database integer field to an nvarchar on a Microsoft SQL Server, you should use the convert function. In this example we cast the number 4343 to an nvarchar: Example to convert an int field (field_int) to a nvarchar field: Result from the query:
-
MSSQL datediff in seconds
The following command on a Microsoft SQL Server calculates the difference in seconds between two datetimes: Example query: Result: If you need the result as a text and also want to add 3 digits after the seconds you can use the following example: Result:
-
MS CRM 4 HTTP status 401: Unauthorized.
Ich hatte heute ein sehr mekrwürdiges Ereignis. Das MS CRM 4 konnte von keinem externen Client aufgerufen werden, jedoch lokal auf dem Server schon. Die Clients bekamen lediglich folgenden HTTP Status: The request failed with HTTP status 401: Unauthorized. Das Problem war das die Uhrzeit von dem CRM Server ca. 3 Stunden nachlief. Nach dem […]