About 31,500 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 100000 rows, and …

  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-SQL for …

  3. How to get a view table query (code) in SQL Server 2008 Management ...

    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: Example_1 How to g...

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

    Jan 31, 2012 · To quote from user madhivanan, Apart from using DTS and Export wizard, we can also use this query to export data from SQL Server2000 to Excel Create an Excel file named testing …

  5. Check if table exists and if it doesn't exist, create it in SQL Server 2008

    Aug 23, 2019 · I am writing a Stored procedure in SQL Server 2008. I need to check if a table exists in the database. If it doesn't then I need to create it. How do I do this?

  6. How to write this query in SQL server 2008 - Stack Overflow

    Nov 23, 2013 · Please consider my logic. Query Logic foreach(var a in (select id from table1)) { insert into table2 values(a,DateTime.Now) } I need the same above logic needs to be done in SQL server. …

  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. How to create a table from select query result in SQL Server 2008

    May 22, 2013 · How to create a table from select query result in SQL Server 2008 [duplicate] Asked 12 years, 6 months ago Modified 5 years, 8 months ago Viewed 1.3m times

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

    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 sql …

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

    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 2008 with following error: "Msg 102, Level 15, State 1, Line …