About 12,100,000 results
Open links in new tab
  1. Is there a way to retrieve the view definition from a SQL Server using ...

    I'm successfully extracting column definitions from databases hosted on a SQL server using the ADO Connection OpenSchema() call in its various incarnations so I can programmatically recreate those ...

  2. T-SQL query to show table definition? - Stack Overflow

    Jun 2, 2011 · Exec sp_describe_first_result_set @tsql= N'Select * from <yourtable>' If you enter a complex select statement (joins, subselects, etc), it will give you the definition of the result set. This is …

  3. Sql Server - Get view creation statement for existing view

    Aug 3, 2021 · 10 Is there a way to get the statement that created a view for an existing view in SQL Server 2008? I thought there was a stored procedure or some metadata that had this data, but I'm …

  4. t sql - How to view the stored procedure code in SQL Server …

    I am new to SQL Server. I am logged into my database through SQL Server Management Studio. I have a list of stored procedures. How do I view the stored procedure code? Right clicking on the sto...

  5. sql - What is a stored procedure? - Stack Overflow

    A stored procedure is a named collection of SQL statements and procedural logic i.e, compiled, verified and stored in the server database. A stored procedure is typically treated like other database objects …

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

  7. Get the text of a stored procedure in SQL Server

    20 I've recently come across the same question and made a quick and dirty script to get the definition of views, but the very same thing could also work for stored procedures and functions.

  8. SQL Column definition: default value and not null redundant?

    May 17, 2017 · ALTER TABLE tbl ADD COLUMN col VARCHAR(20) NOT NULL DEFAULT "MyDefault" The question is: since a default value is specified, is it necessary to also specify that the column …

  9. How do I get constraints on a SQL Server table column

    I'd like to display these options for selection, but I couldn't figure out the SQL query to find out the constraints of a particular column in a table. From a first glance at system tables in SQL Server, it …

  10. Getting the definition of the tables and columns via a SQL statement

    Aug 8, 2018 · I have a database and a lot of tables inside it. I wrote definition into the each table and column's definition part. And now using query I want to see all table and columns definition. Can you …