Giter VIP home page Giter VIP logo

sql-object-search's Introduction

SQL Object Search

Commands

Search Connection

Allows search the current connection for views, functions, and stored procedures. Selecting an object will open the SQL definition in a new query.

It is recommended to assign a keyboard shortcut to Search Connection. This allows easy opening of SQL object definitions.

Explore Connection

Navigates the user through the object explorer interface via keyboard selection. Selecting an object will open the SQL definition in a new query, if there is one.

Known Limitations

Large SQL objects

Large SQL objects do not open in a new query document correctly. Currently, only the first 65535 characters of a definition will open in the query editor. QueryProvider.runQueryAndReturn returns SimpleExecuteResult, which seems to cap how long the DbCellValue.displayValue string can be at 65535. The actual LEN(definition) will return over that value, but there's something about the conversion to string that truncates the result. I should probably add a conditional to show an information message when the definition is exactly 65535, because that most likely means that the object definition has been truncated.

  • this is similar to how the SQL Database Projects extension isn't able to update SQL objects with lengths greater than 65535, as well (issue).
  • additionally, if you run the following and copy and paste the definition into a new query document, only the first 65535 characters are pasted.
SELECT name, OBJECT_DEFINITION(object_id)
FROM sys.objects
WHERE name = 'LARGE_OBJECT'

Tables

CREATE scripts for tables don't exist by default in SQL Server. More development would be needed to support opening table CREATE scripts.

sql-object-search's People

Watchers

Derek Vance avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.