Open links in new tab
  1. DATEADD with variable datepart? - social.msdn.microsoft.com

    Feb 5, 2009 · I must be missing something, but how would you write a query where the datepart of a DATEADD is a variable?

  2. Using While Loop for SQL Server Update

    Jul 23, 2023 · MERGE is not supported in SQL Server 2005. But we could use other statements to instead or mimicking MERGE. Please see the following two articles: SQL Server 2005 T-SQL: Mimic …

  3. How do I convert a SQL datetime to seconds?

    Mar 26, 2010 · the PERSISTED means SQL Server will physically store the value in the table and update the value when the other column value changed. The advantage of computed column vs …

  4. Calculate Elapsed Time Between Dates Excluding Weekends

    Feb 25, 2010 · Could anyone tell me how to calculate the elapsed time (minutes) between two datetime values, but exclude the weekend?

  5. getdate problem in ms sql due to database in hosting server

    Dec 5, 2010 · Now i deployed my asp.net C# app with ms sql in hosting server we have some around 11+hrs difference so im getting hosting server datetime in that column...

  6. How to compare DateTime Fields in MsSQL

    Oct 13, 2012 · go Kalman Toth SQL SERVER 2012 & BI TRAININGNew Book: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2012 Edited byKalman TothSaturday, …

  7. GMT datetime format - social.msdn.microsoft.com

    Oct 7, 2021 · Do you record the data with local time? If so, you need to convert time from your local time to GMT +8. Here is an example for you, please check the below query: --for example if your server is …

  8. Calendar week - previous week , last year week

    Dec 28, 2012 · I was actually trying to populate a calendar week table in sql server and had issues with the previous week number , last year week number and didn't get the exact logic. can any one help …

  9. Powerpivot Contiguous Date ERROR - social.msdn.microsoft.com

    Oct 25, 2013 · The new formula is below. I am only using slicers and have only selected 2013 on my Yearkey slicer & January on my month slicer. My dimdate table goes back to 2006. SUMX (VALUES …

  10. Divide two queries in access for percentages

    Feb 19, 2019 · The SQL statement I posted is largely made up by copying and pasting from your two queries' SQL statements, so you should be able to copy it from my post and paste it as a new query …