About 18,000 results
Open links in new tab
  1. SQL Función trimestre anterior - social.msdn.microsoft.com

    Luego le restas un trimestre, mediante dateadd La conviertes a varchar mediante convert 112 (iso aaaammdd) De ella extraes los 6 caracteres de la izquierda que retornas como int. select …

  2. Issues with OpenQuery - social.msdn.microsoft.com

    May 20, 2008 · I also changed any SQL Server reserved words and still no success running via SQL Server, but as I said before, the query run fine directly on the PostGres database.

  3. Past midnight datediff - social.msdn.microsoft.com

    Dec 22, 2016 · Hi I have 2 dates and when Time2 goes past midnight and Time1 is before midnight I want to calc the difference as normal and not go around the clock and add a full day …

  4. LINQ Query with Sum and Group By is adding Decimal Precision

    Aug 26, 2009 · Since the LINQ query is actually converted into SQL command to retrieve the database data, the operations including Sum are computed at the SQL Server side. When the …

  5. 3 digit Julian date - social.msdn.microsoft.com

    Sep 30, 2019 · I see several examples of converting Julian Dates, but not a simple one that's escaping me. Can someone provide the formula to convert today to today's 3-digit Julian …

  6. How to exclude Saturday and Sunday hours while calculating the ...

    May 4, 2011 · Build a calendar table with one column for the calendar data and other columns to show whatever your business needs in the way of temporal information. Do not try to calculate …

  7. SQL pivot - how do I pivot two columns of data?

    Dec 12, 2013 · The problem is simple to solve, if you stay away from the proprietary PIVOT operator, and instead form your pivot with standard SQL constructs: SELECT convert (char …

  8. SQL Jobs getting failed with Error 242 - social.msdn.microsoft.com

    Jul 28, 2010 · We have one SQL Job, custom written for copying data from multiple tables across different SQL Server to a table in central SQL Server. The job was running properly for sometime.

  9. sql count always returns 0 - social.msdn.microsoft.com

    Oct 7, 2021 · I have a some code that I'm trying to use to count the number of records in an ms sql server 2012 table having a column value equal to the value of an element in a gridview …

  10. 9 digit date number (ex.01.01.2014 => 131989761)

    Jul 17, 2014 · Question 0 Sign in to vote Hello A program saves date data in SQL like this 01.01.2014 => 131989761 01.02.2014 => 131990017