About 4,600 results
Open links in new tab
  1. getdate () default value / Cannot insert the value NULL into column

    Sep 16, 2008 · Make sure that the data type of the field is DateTime and It should not be allowed null and in default value, put (getDate ()). And you should not mention the field name in the insert query …

  2. Need GETDATE () with YYYY-MM-DD_HHMMSS

    Mar 13, 2010 · What about for HHMMSS ? Please guide me. Thanks, Gubs Saturday, March 13, 2010 9:15 PM

  3. Convert a datetime to YYYYMMDD - social.msdn.microsoft.com

    Jan 15, 2015 · Is there a way to convert a date (e.g. 2013-10-13) to int ( 20131013) without converting the date to varchar first and then to int?

  4. Index View with GETDATE () - social.msdn.microsoft.com

    Jun 13, 2012 · Of course this doesn't work as Getdate () is non-deterministic. Unfortunately there is no way around this requirement, however - the query needs to only pull records that are more than 60 …

  5. How to get date and year range in SQL?

    Oct 7, 2021 · In this case, you will need to know several methods in SQL: convert (type,value)-- convert a value to a type type value getdate ()-- get today's date year (date),month (date),day (date)-- get the …

  6. sql script to display all in one row - social.msdn.microsoft.com

    Oct 7, 2021 · i want to display which user borrow which book in a report.

  7. Query to check existing data - social.msdn.microsoft.com

    Oct 7, 2021 · INSERT INTO Store_Exp (ID, Product_Name,Received,Issued,Waste,Alika_Kitchen,Mess,Date,Remarks) SELECT ID, …

  8. Calculate YTD, Previous YTD in the same query

    Mar 22, 2019 · I try to calculate weight and weight ytd. I didn't undestand how to add the calculation of prior ytd in the same query.

  9. Is there bug with cdc.fn_cdc_get_net_changes_.... in SQL Server 2012

    Mar 9, 2017 · Here is sample script to re-produce the error (which I assume is some sort of bug in CDC SQL 2012).

  10. Expression cannot be evaluated - social.msdn.microsoft.com

    Jul 15, 2012 · Db_Time cannot hold the entire contents of GETDATE because it does not provide the placeholder for the date part, only the time. Thus the error. So switch to building the file name using …