About 1,920,000 results
Open links in new tab
  1. 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 …

  2. 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 …

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

  5. 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 …

  6. 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 = " + …

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

  8. vb6 - How to return the value from function - Stack Overflow

    Jan 3, 2012 · How to return the value from function Code Private Function LeaveCheck(empid As String) Dim rdoRs1 As rdoResultset Dim desc As String Dim sSQL As String sSQL = "Select …

  9. Create Local SQL Server database - Stack Overflow

    Apr 11, 2017 · I've used SQL Server Management Studio before, but only when the server is already up and running. I need to start from the beginning and create my own instance on the …

  10. Is there a Boolean data type in Microsoft SQL Server like there is in ...

    Jun 29, 2010 · Is there a Boolean data type in Microsoft SQL Server like there is in MySQL? If not, what is the alternative in MS SQL Server?