About 559,000 results
Open links in new tab
  1. Search text in stored procedure in SQL Server - Stack Overflow

    Feb 5, 2013 · I want to search a text from all my database stored procedures. I use the below SQL: SELECT DISTINCT o.name AS Object_Name, o.type_desc FROM sys.sql_modules m INNER JOIN …

  2. SQL WITH clause example - Stack Overflow

    Sep 23, 2012 · I was trying to understand how to use the WITH clause and the purpose of the WITH clause. All I understood was, the WITH clause was a replacement for normal sub-queries. Can …

  3. How do I perform an IF...THEN in an SQL SELECT? - Stack Overflow

    Sep 15, 2008 · The CASE statement is the closest to IF in SQL and is supported on all versions of SQL Server.

  4. Exclude a column using SELECT * [except columnA] FROM tableA?

    SELECT * [except columnA] FROM tableA The only way that I know is to manually specify all the columns and exclude the unwanted column. This is really time consuming so I'm looking for ways to …

  5. Format SQL in SQL Server Management Studio - Stack Overflow

    Feb 13, 2020 · In Visual Studio & other IDEs, you can easily auto format your code with a keyboard shortcut, through the menu, or automatically as you type. I was wondering if there is yet a way to …

  6. How to execute store procedure for another DB? - Stack Overflow

    WHERE DATA_TYPE = 'varchar' AND TABLE_CATALOG = @Database AND TABLE_SCHEMA = @TableSchema AND TABLE_NAME = @TableName -- [TargetDB] = @Database The TargetDB will …

  7. sql server - What is Select 'X'? - Stack Overflow

    Oct 2, 2011 · 6 sSQL.Append(" SELECT 'X' "); sSQL.Append(" FROM ProfileInsurancePlanYear "); sSQL.Append(" WHERE ProfileID = " + profileid.ToString() + " AND CropYear = " + …

  8. Error in Zeppelin notebook stating unable to create a sink

    Oct 7, 2023 · I am trying to write to from 1 KDS to another after processing in Apache Flink. I have used Zeppelin notebook to create sink table with the following query : %flink.ssql CREATE TABLE …

  9. How can I select from list of values in SQL Server

    Oct 14, 2009 · Is the important thing here to get a distinct list of those values, or to get that list of values into SQL? As @JeppeStigNielsen says, there are other ways to get distinct values from a text list …

  10. Passing operator as a parameter in stored proc while preventing the ...

    Nov 1, 2018 · If you print out what your @sSQL variable is, the result is SELECT * FROM WEBPM_COPY.DBO.Test1111 WHERE AGE1 @ageOperator @age so it is literally passing the …