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. How to write a cursor to compare the values of the rows and columns

    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.

  3. [Sql server 2012] Change from vertical to horizontal table as dynamic

    May 19, 2016 · You do not know what a table is. You do not know ISO 11179 rules for naming data elements. Code is what we call an attribute property so it needs to be "<something in …

  4. 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'.

  5. Get Next Number from a Table to Insert

    Sep 17, 2012 · I need to pass the sequence number (1, 6 or 8) and from that sequence get the max value (2, 1 or 3) and then add a 1 to that value so my insert can be performed. I'm somewhat there, I …

  6. 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, June 3, 2010 …

  7. 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 data? If …

  8. ORDER BY items must appear in the select list if SELECT DISTINCT is ...

    Aug 19, 2009 · If we introduce the case expression in the "order by" clause, a derived table or a cte seems to solve the problem.

  9. 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 joined like select …

  10. Pros and cons of table value functions - social.msdn.microsoft.com

    Jan 15, 2013 · I'm wondering about the pros and cons of table value functions. Since there's no row level security in SQL Server (a damn shame) I'm considering using functions to return result sets based on …