About 1,970,000 results
Open links in new tab
  1. python - How do I connect to SQL Server via sqlalchemy using …

    71 sqlalchemy, a db connection module for Python, uses SQL Authentication (database-defined user accounts) by default. If you want to use your Windows (domain or local) credentials to …

  2. SQL Server query to find all permissions/access for all users in a …

    Aug 13, 2011 · I would like to write a query on a sql 2008 that will report all the users that have access to a specific database, or objects within the database such as tables, views, and stored …

  3. sql server - Database stuck in "Restoring" state - Stack Overflow

    Ran into a similar issue while restoring the database using SQL server management studio and it got stuck into restoring mode. After several hours of issue tracking, the following query worked …

  4. How to fix Recovery Pending State in SQL Server Database?

    Sep 14, 2018 · One way to end up with a database that is in "Recovery Pending" state, is in the context of restoring a backup of an encrypted database (encrypted with TDE) on a new SQL …

  5. database - Unable to connect to SQL Server instance remotely

    Mar 28, 2009 · Open SQL Server Management Studio; switch the " Server Type " to " Database Engine " and " Authentication " to " SQL Server Authentication ". The default login is " sa ", and …

  6. How to Identify port number of SQL server - Stack Overflow

    Oct 18, 2013 · 109 Open SQL Server Management Studio Connect to the database engine for which you need the port number Run the below query against the database select distinct …

  7. sql - Script to kill all connections to a database (More than ...

    In my case, I'm using SQL Server 14.0 with Management Studio 17.9.1, and I have to say this is the only answer thats works to me. I was wanting to delete some databases wich accomplish a …

  8. sql server - Get size of all tables in database - Stack Overflow

    Oct 25, 2011 · To use this for all tables at once: USE MyDatabase; GO sp_msforeachtable 'EXEC sp_spaceused [?]' GO You can also get disk usage from within the right-click Standard …

  9. How do I see active SQL Server connections? - Stack Overflow

    Aug 8, 2009 · I am using SQL Server 2008 Enterprise. I want to see any active SQL Server connections, and the related information of all the connections, like from which IP address, …

  10. sql - Find all tables containing column with specified name - Stack ...

    In MS SQL Server Database, use this query to get the tables and respective column names that contains the input text: SELECT t.name AS tableName, c.name AS columnName