About 50 results
Open links in new tab
  1. Unable to generate execution plan - social.msdn.microsoft.com

    Apr 30, 2011 · An event log entry is made by SQL Server saying “Unable to generate execution plan”. The SP has a dynamic SQL statement with parameters.

  2. Union of multiple CTE'S - social.msdn.microsoft.com

    Jan 28, 2015 · Hi, CTEs would be very helpful and convenient wherein you want to use nested like table usage ie., declare result set in CTE and wanted to form other cte by using previously …

  3. How to write a cursor to compare the values of the rows and …

    Jul 31, 2013 · What is the value you are trying to compare SampledDate or FurnaceID? Try using recursive CTE than chosing cursor for this operation.

  4. Proper Case - am I missing something? - social.msdn.microsoft.com

    Aug 23, 2010 · In the function below, the CASE expression is what suits my installation - all I am worried about is the general approach of using a CTE of one character per row and a very …

  5. Incorrect syntax near the keyword 'WHILE'.

    Sep 28, 2011 · When you create CTE, then immediately following the CTE is a SELECT statement that references the CTE using its column aliases. You can redesign this query using …

  6. Find all privileges of a login - social.msdn.microsoft.com

    Mar 15, 2017 · We have sql server instance with 12 databases running. We have to create a new login 'Appuser2' which will have same privileges as existing login 'Appuser1'.

  7. how to list the indexes of a table - social.msdn.microsoft.com

    Jun 3, 2010 · SQL Server and T-SQL Tutorials MS-SQL-SERVER.com Our true mentor in life is science Marked as answer byBaba urf MurariThursday, June 3, 2010 12:00 PM Thursday, …

  8. How do I select unique values from one column while returning …

    Jul 26, 2012 · Generally, for SQL syntax - CTE query should follow with the required SELECT statement something like below: ;with cte (SupplierID, SupplierName, Rownum) as ( select …

  9. Display number of days in a month as individual columns

    Apr 21, 2014 · I'm querying oracle from SSRS and want to display the number of days in a month i.e., each column for a day and then display data below for every day. Is there a way to display …

  10. find third max salary of employee by joining three tables?

    Jul 23, 2011 · Question 0 Sign in to vote Hi Guys, I have three tables emp table: dept table: dept_max table: empno deptno deptno ename dname min_sal sal loc max_sal deptno I have …