About 64,000 results
Open links in new tab
  1. Calculate a Running Total in SQL Server - Stack Overflow

    May 14, 2009 · And for us who working with SQL Server 2008 R2 and not Denali, it's still fastest way to get running total, it's about 10 times faster than cursor on my work computer for …

  2. sql server - How to get cumulative sum - Stack Overflow

    Jan 23, 2010 · Getting running totals in T-SQL is not hard, there are many correct answers, most of them pretty easy. What is not easy (or even possible at this time) is to write a true query in T …

  3. How to create a table from select query result in SQL Server 2008

    May 22, 2013 · 126 use SELECT...INTO The SELECT INTO statement creates a new table and populates it with the result set of the SELECT statement. SELECT INTO can be used to …

  4. sql server 2008 - T-SQL: Export to new Excel file - Stack Overflow

    Jan 31, 2012 · 0 Another option is to use PowerQuery. In Excel, go to: Data -> Get Data -> From Database -> From SQL Server Database You can define the query and other parameters …

  5. How to get a view table query (code) in SQL Server 2008 …

    I have a view in SQL Server 2008 and would like to view it in Management Studio. Example: --is the underlying query for the view Example_1 select * from table_aView View name: …

  6. Export query result to .csv file in SQL Server 2008

    Related post - Export table from database to csv file, SQL Server 2008 - use cmd to output with headers to .csv & Saving results with headers in Sql Server Management Studio.

  7. sql server 2008 - SQL query with NOT LIKE IN - Stack Overflow

    Please help me to write an SQL query with the condition as NOT LIKE IN.

  8. sql server 2008 - How to handle-escape both single and double …

    Mar 2, 2016 · Thx Russell... for trying to understand the situation. The scenario is like -- there are various systems that send us this 1000+ characters string. Now this string is passed on as a …

  9. How to write UPDATE SQL with Table alias in SQL Server 2008?

    304 I have a very basic UPDATE SQL - UPDATE HOLD_TABLE Q SET Q.TITLE = 'TEST' WHERE Q.ID = 101; This query runs fine in Oracle, Derby, MySQL - but it fails in SQL server …

  10. How do I write a SQL query for a specific date range and date time ...

    Aug 2, 2019 · 22 I need to write a query that will get all the rows in a specified date range and time range. For example, I want to query all the rows from 5:00PM on 16-Sep-2010 to 9:00AM …