Re: Under what circumstances would GetDate() return NULL?



Jon Brunson wrote:
Darren Shaffer wrote:

Jon,

Based on your code and the fact that this table is not being updated
by replication, RDA, or another code path, I can't tell you why you
got null for your date column. I'll try to recreate this myself and if I can
produce this behavior, I'll open the bug with the SQL CE team at
Microsoft.


Out of curiosity - has the null behavior happened since the time you reported?


Just got the latest error log from a customer, and from what I can tell, the NULLs were on Tuesday the 12th of July, but have not "happened" since (the log dates up to the 20th).


If I come across any more in the future, I will reply to this thread.

Had some more NULLs, they all seem to happen when the sqlce.dev.wce4.armv4 CAB file is not installed, although sometimes it's not installed and GETDATE() returns fine. We install that CAB so that we can get the messages from SQL errors, on some devices it seems to get deleted (the device may have been reset perhaps).


These NULLs seem to also stem from errors in SqlCe itself, that is, an error occurs in executing a SQL query (say "SELECT Column with a space but not bracketed FROM tbl" - crude example), thus a new record is inserted into our error log, but it cannot get the message for this error, so it just puts "Unable to parse SQLCE error. Please ensure the SQLCE.dev.wce4.armv4 CAB file is installed" in instead.

I can only think that SQL is currupt, or badly installed, but if that was true, how could it possibly add anything to the error log, which itself is in SQL?

*sigh*
.



Relevant Pages

  • Re: Changing Query behavior based on local vs. remote context?
    ... with the servers communications. ... The Event Viewer does not show any errors, nor does the error log in the ... and that other named SQL and SQL Express instances ... did I mention that this is a Microsoft product's install of SQL Express ...
    (microsoft.public.sqlserver.security)
  • Re: how do I change the user install wizard to create user folder in different location?
    ... Some people read the instructions in such a way that they install both a new ... instance of sql, ... Never slight the SBS wizards. ... I reinstalled from scratch using the Dell OpenManage Server ...
    (microsoft.public.windows.server.sbs)
  • Re: SBS 2003 and Sql Server ~ Client Install
    ... I've found the client tools and have now ... A word mail merge document could access a SQL database via ... We want to install to gain an understanding. ... Once we've managed to install the SQL Server Client we can start to ...
    (microsoft.public.backoffice.smallbiz2000)
  • RE: How do I get back to base SQL server on my SBS 2003 server?
    ... What's the error message you see when installing SQL? ... the easier way is to restore the server from recent backup. ... Screen shot of the error when you install SQL 2005 Workgroup edition. ... <The server-based applications that were running fine are: McAFee EPO, ...
    (microsoft.public.windows.server.sbs)
  • Re: SQL Server 2005 Cluster Setup Quiz
    ... I did test and it did not install the client tools. ... http://www.clusterhelp.com - Cluster Training ... Microsoft SQL Server MVP ... Provide a template on how to read SQL Server 2005 setup log files. ...
    (microsoft.public.sqlserver.clustering)