About 903,000 results
Open links in new tab
  1. Get list of databases from SQL Server - Stack Overflow

    Jul 8, 2014 · How can I get the list of available databases on a SQL Server instance? I'm planning to make a list of them in a combo box in VB.NET.

  2. Get all table names of a particular database by SQL query?

    Oct 12, 2010 · SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE' But it is giving table names of all databases of a particular server but I …

  3. sql server - The SELECT permission was denied on the object 'Users ...

    Open SQL Management Studio Expand your database Expand the "Security" Folder Expand "Users" Right click the user (the one that's trying to perform the query) and select Properties. Select page …

  4. How to select data of a table from another database in SQL Server ...

    Suppose that I have a database which name is testdb in test server. I also have a database named proddb in prod server. Now I want to select data of a table of testdb database from proddb database....

  5. Selecting data from two different servers in SQL Server

    Jul 17, 2009 · How can I select data in the same query from two different databases that are on two different servers in SQL Server?

  6. SQL Server Linked Server Example Query - Stack Overflow

    If you're uncertain about any of the qualifiers, drill down to a table in a Linked Server in SSMS Object Explorer, right-click, and Script Table as, SELECT To, and New Query Editor Window. The resulting …

  7. postgresql - How to switch databases in psql? - Stack Overflow

    Oct 16, 2010 · A MySQL "database" is in fact a schema. Therefor in most cases, MySQL's "databases" would better be mapped to schemas in Postgres anyway. And if that is done, you can change the …

  8. How to get the list of all database users - Stack Overflow

    Sep 18, 2013 · select * from master.sys.server_principals Ref. SQL Server Tip: How to find the owner of a database through T-SQL How do you test for the existence of a user in SQL Server?

  9. What exactly does SELECT database(); mean? - Stack Overflow

    Feb 3, 2019 · 3 database() is an information function provided by MySQL to return the name of the current database. It can be used anywhere a string constant would be expected. MySQL does not …

  10. Listing information about all database files in SQL Server

    I've found that select * from sys.database_files works fine if you make sure to prefix it with a use statement pointing to the DB you are interested in. So: use MyDb; select * from sys.database_files …