Remove Deteled Databases from SQL Server Management Studio List

Hi,
    I am using SQL Server Express 2008 Management Studio & in the databases list are some databases that are non existent (have been deleted in Windows Explorer). How do I remove them as trying to delete when logging in using Windows authentication
fails?
Thanks
Paul.
Paul Wainwright

Hi pr_wainwright,
I’m writing to follow up with you on this post. Was the problem resolved after performing our action plan steps? According to your description and error message, we need to verify if your windows login account has sysadmin permission. The error 3701 occurs
when you use an account to execute the script who has not grant the permission about modifying database properties and creating database. I do a test, when the SQL Server Service is stop, I delete the data and log file of database from Windows Explorer, then
restart the service again, and connect to the SQL Server instance via windows login account which is sysadmin role. In SSMS list, you can right click the database and choose “ delete” option. Or you also use the drop statement by using master database first.
and two ways can all run well.
Regards,
Sofiya Li
If you have any feedback on our support, please click here.
Sofiya Li
TechNet Community Support

Similar Messages

  • How to recover deleted attached mdf file from sql server management studio

    Hi everyone
    I've faced very bad problem
    I had a mdf file that created in visual studio, and then I had attached this file to sql server management studio and after that, when I wanted to deattach
    this file I had a big mistake; and deleted the mdf file; then now this file was deleted from my computer
    I test several recovery tools but they can't find deleted mdf file; the volume of the mdf file was more than 2 GB.
    Please help me if you can

    Hello,
    If you don't have a backup of the database, then it's not really possible to get it back. There are some "Undelete" Tools available for Windows, but when even only one page was overwritten on disk, then it's not possible to recover it.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to create a database in Sql server management studio

    how to create a database in Sql server management studio

    One method is to run the SQL statement below from a SSMS query window:
    CREATE DATABASE MyDatabase;
    You can also right-click on the Databases node in SSMS Object explorer and select New Database.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Can't Remove Datasets From SQL Server Management Studio Restore Database Dialog

    Hello,
    I am trying to restore a database in MS SQL 2008 R2 Management Studio on a Windows 2008 server.
    - I right click the Databases folder and choose Restore Databases.
    - I select the From device radio button as usual and click Add.
    - I specify a .bck file as usual and click OK.
    - When I return to the Restore Database dialog are two backup sets already in the "Select backup location to restore" part of the dialog that I unsuccessfully tried to restore earlier already there.
    - I can see the path to the backup set that I want to add in the "From device" field of the "Restore Database" dialog. The backup is not listed in "Select backup location to restore" as it should be.
    - I tried restarting the SQL Server service and I rebooted the server but the files were still there when I tried to do a restore.
    - There is no option to remove the extra datasets in the "Select backup location to restore" part of the dialog. I am hoping that if I can remove the extra datasets that this will resolve the problem. Does anyone have any idea how to remove them?
    Martin Mann

    Hello,
    My issue was a bit different then your screenshot. I was able to choose a backup dataset with no problem from the "Select backup devices" dialog as you show in the screenshot. At that time the "Restore Database" dialog box you show in the background had
    no backup files, you show filetest1, filetest2. However after clicking the "Add" to files were listed in the "Restore Database" dialog neither of which was the one that I was trying to add. The problem was that the wrong files were listed in the "Restore Database"
    dialog and I couldn't remove them.
    The problem turned out to be two issues. I resolved the problem as follows:
    It turned out that someone had compressed my server c:\ drive and I was not aware of it. Disk compression and SQL server have conflicts. As I had never compressed a drive I didn't know that Windows Explorer displays compressed files in blue letters. So the
    first step was to decompress the drive. Which did not fix the problem.
    What had caused the files to show up was that I had somehow created a backup with two data sets in it. It seems that when SQL Server creates a backup one of the first things it does is check the drive for the required space and create an empty backup file
    the size of the backup to reserve the disk space. It seems that I had created a file that contained space for a backup but no data with another back with data behind it. When I looked at the backup file size in explorer it was almost twice the size it should
    have been.
    I resolved the problem by changing the path of the default backup folder. I was able to do a restore from there. Afterwords the default backup folder worked and the files listed were no longer there.
    Sorry for the confusion and thanks for the help.
    Martin Mann

  • Cannot connect to any database either in Azure or Sql Server Management Studio

    I'm unable to connect, this page just hangs on azure and from sql server management studio I get the following error - A Network-related or instance-specific error occurred while establishing a connection to SQL Server,

    Hello,
    Before you can connect to your SQL Database server, you must use the
    Windows Azure Platform Management Portal to configure the SQL Database firewall: on the Firewall Rules tab of the SQL database server, add the IP address of your computer into the IP address range.
    What's more,Windows Azure SQL Database does not support Windows Authentication. Please use SQL Server authentication in your connection string.
    Reference:How to: Configure the Server-Level Firewall Settings (Windows Azure SQL Database)
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Not able to access database from a remote machine using SQL Server Management Studio

    Hi,
    I have a DB_BOX with SQL Server 2008 R2 installed. I can access the databases on the local machine using SQL Server Management Studio but it is not accessible from other machines, though the machines are in same domain.
    I have remote enabled on SQL Server box, TCP enabled, firewall off. I checked with IP Address too, all SQL Server services are running.
    The SQL Server log shows the message
    The requested service has been stopped or disabled and is unavailable at this time. The connection has been closed.
    I get the below message in SSMS from remote machine.
    Details of error message are
    ===================================
    Cannot connect to DB_BOX.
    ===================================
    A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) (.Net SqlClient Data Provider)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=64&LinkId=20476
    Server Name: DB_BOX
    Error Number: 64
    Severity: 20
    State: 0
    Program Location:
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
       at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket()
       at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
       at System.Data.SqlClient.TdsParserStateObject.ReadByte()
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
       at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

    Sorry, missed the message from the errorlog in the original post. You shouldn't have included that big .Net dump that hid the important facts. :-)
    My first Google attempt on that message (which I have never seen before) suggests that the TCP Enpoint is stopped, so try this:
    ALTER ENDPOINT [TSQL Default TCP]
    STATE=STARTED;
    Erland Sommarskog, SQL Server MVP, [email protected]
    This solves the problem. Thanks...

  • Problem to create "New Database Diagram" in Microsoft SQL Server Management Studio for SQL Server 2012 SQL Express

    Hi,
    I have installed SQL Server 2012 Express edition (name of installation media: en_sql_server_2012_express_edition_with_advanced_services_x64.exe) from MSDN and I have installed the application on my pc with Windows 7 Exterprise.
    Everything is working fine except when I am trying to create "New Database Diagram", where I recieve following error message:
    TITLE: Microsoft SQL Server Management Studio
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (Microsoft.VisualStudio.OLE.Interop)
    BUTTONS:
    OK
    I have tried two times to reinstall SQL Server 2012 Express and I have installed Cumulative Update #3 for SQL Server 2012 and restarted the machine, but I have still the same problem with the same error message.
    Installed the following fixes:
    1) 2012_RTM_DAC_CU3_2723749_11_0_2332_x64
    2) SQLServer2012_RTM_CU3_2723749_11_0_2332_x64
    These files was installed successful.
    How can I solve the problem?
    BR
    Jan Nilsson

    Hi Jan,
    Have you installed Visual Studio in your machine?
    The problem seems to be related to installing and uninstalling the VS 2011 RC0 program.
    The workaround involves copying the files from another PC with SQL 2008 or 2012 from one machine to another. Just replace this folder:
    C:\Program Files (x86)\Common Files\microsoft shared\MSDesigners8
    See also the following for further details:
    http://social.msdn.microsoft.com/Forums/en-GB/vstsdb/thread/d65c71f5-3887-4f2a-bbd3-e799a4ac6fdc
    Best Regards,
    Iric
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Can not connect the database via query string (C#). The SQL Server Management Studio is showing the full path of a location instead of database name.

    I can not connect to the database via C#. The database is showing full path of the database file instead of the database name. See the pic: a database showing only name 'emart' and the other database showing the full path.
    : Robby

    Hi,
    According to your post, I know that the database name is showing file path of the database rather than the database name in SQL Server Management Studio. You were not able to
    establish a connection to the database using C#.
    As Olaf said, was any error message thrown out when the connection failed? How did you create these databases?
    You can use the following T-SQL to attach the database and see if the issue persists.
    CREATE DATABASE
    databasename
        ON (FILENAME = 'filepath _Data.mdf'),
        (FILENAME = 'filepath_Log.ldf')
    FOR ATTACH;
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Error Message from Microsoft SQL Server Management Studio

    I have problem editing the views that I created.  I never have this problem before and I don't know if
    I have touched something on the pane that alters my viewing on Microsoft SQL Server Management Studio.  For example, if I want to edit the top 200 rows of my view called dbo.sl_admission_reg9, it will give me this error:
    Invalid prefix of suffix characters (MS Viual Database Tools).
    Please help.
    Thank you very much.
    Sally

    Are you trying to edit the top 200 rows of a SQL Server 2012 database using the 2008 R2 SQL Server Management
    Stud? If so you just need to upgrade SQL Server Management Studio to 2012 or edit the rows using a SQL query.
    [Personal Site] [Blog] [Facebook]

  • Can I use Microsoft SQL Server Management Studio version 11.0 to write SQL queries for "SQL Server Compact 4.0 Local Database"

    Hi, Can I use Microsoft SQL Server Management Studio version 11.0 to write SQL queries for "SQL Server Compact 4.0 Local Database" ?
    When I use Connect Object Explorer, the "Connect to Server" dialog box which pops up has only 4 selections in the Server Type Drop Down List. They are Database Engine, Analysis Services, Reporting Services & Integration Services. I have read
    somewhere that there should be a compact database option. but I do not see it.
    What I would like to do is use free form SQL Queries against the tables in "SQL Server Compact 4.0 Local Database" .
    Once I have validated these queries, then I will use them in my Visual Studio 2012 C#, ASP.NET application. I created the Local Database using Visual Studio 2012 for use by my application.
    Thank you for your help..
    diana4

    Hello,
    With SSMS 2005 we have had the Option to work with SQL CE database files, but not with higher Version of SSMS.
    You can use the free SQL CE Toolbax instead; see
    http://sqlcetoolbox.codeplex.com/
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Create Sequence command doesn't work on my MSSMS-Microsoft SQL Server Management Studio 11.0.2100.60

    Hi!
     For some reason Create Sequence command doens't work on my Management Studtio version mentioned above.
     Please advise, thanks

    What counts is not the SQL Server Management Studio level, but the release level of the SQL Server you are connected to and the the compatibility of the database you are connected to.  Run
    Select name, ServerProperty('ProductVersion') As ProductVersion, compatibility_level
    From master.sys.databases
    Where database_id = DB_ID()
    Product Version should show as 11.<something> or higher.  compatability_level should show as 110 or higher.  If either of those values are lower, then that is your problem.
    Tom

  • Cannot launch SQL Server management studio

    Hi people,
    I cannot launch the sql server management studio. In the event log, appear the next entry:
    Faulting application ssmsee.exe, version 2005.90.2047.0, faulting module msvcr80.dll, version 8.0.50727.4053, fault address 0x0000e7a2.
    What can i do for repair this? Uninstall the sql instance? This affect to sap system installed?
    Other options?
    More thanks

    Hi Ruben,
    What is the MS SQL Server version and SP level ? Which windows server is it - 2000/2003/2008 - 32bit/64 bit ?
    Is the database/SAP up and running ?
    I got to see another old thread for similar problem from you. Is it a regular problem or just something happened recently ? Any configuration changes/any activity related to MS SQL Server or any OS changes done recently ? But as the link suggests in your old thread, may be you can give it a try or try upgrading the sql server to a higher SP level ?
    Starting SQL Server Management Studio Express
    If you are an SAP customer, I would suggest you to open a customer message if the problem is urgent and in productive/live landscape.
    Thanks

  • SQL server management studio importing

    Hi All
    I am trying to import data from excel into my database tables in SQL Server management studio and the import facility just doesn't appear to be available. Could this be a permissions or setup issue? Apologies if I am posting in wrong area as I am new to
    this 

    I am trying to import data from excel into my database tables in SQL Server management studio and the import facility just doesn't appear to be available. Could this be a permissions or setup issue? Apologies if I am posting in wrong area as I am new to
    this 
    Excel data can be imported to SQL easily by using SQL Server Import and Export Wizard which is available in SQL Server management Studio itself.
    Right click on Database then select Task then Import data. Wizard opens up and just follow the instructions.
    Please feel free to revert in case if you need additional details.
    Cheers,
    Vaibhav Chaudhari
    MCP, MCTS, MCSA (SQL Server 2012)

  • Close sql server management studio while running sql server replication

    Hi friends.
    I have successfully configured transactional replication (pull type)between 2 sql servers using initialize transactional replication from database backup method. Below my servers;
    sql1 = publisher
    sql2 = distributor & subscriber (pull type)
    My question is
    a) Can I close sql server management studio after my replication setup completed & run smoothly.
    Thanks in advance
    Imra

    Yes, you can.
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • Sql server management studio express - change tracking

    I'm using sql server management studio express 2005 , wanted to turn function "change tracking" for Northwind database, but when I clicked properties for northwind, there wasn't any tab for change tracking. what's the deal?

    I'm using sql server management studio express 2005 , wanted to turn function "change tracking" for Northwind database, but when I clicked properties for northwind, there wasn't any tab for change tracking. what's the deal?
    change tracking is available only from sql 2008 and above.. it is not available in sql 2005
    if you want too play with, try downloading sql 2008 or above express editions...
    Hope it Helps!!

Maybe you are looking for

  • How can I revert my Macbook Air back to Mountain Lion?

    I got my Macbook Air for Christmas in 2012, so it's only a little over a year old. It came with Mountain Lion, and it's been fine, until I updated it to Mavericks. Well, it was alright for a little bit, until the past two days, it has frozen on me fo

  • I was propmted to download a software update and now my ipad has frozen

    I set the ipad to download the software update as prompted. I was prompted to connect the ipad to the mains electricity before running the update. I inadvertently (stupidly) forgot to switch on at the wall socket and left the download to run overnigh

  • SQL Update Question

    I dunno how this is going to look pasted, but here goes. I am trying to update a record in a MS Access Database using JSP. My code isn't working. Here it is. Can anyone identify any flaws in it? Thanks for your time. Oh btw, I am using netbeans and a

  • How to use Jdeveloper Debugger

    Hi Friends, Some one tell me how to use jdeveloper debugger for debugging OAF Code in jdeveloper 10g Thanks & Regards Tarun

  • My iPad hasn't updated email in two days

    I haven't received email on my iPad2 for two and a half days. The last email update was also two and a half days ago. I have "pulled down" the inbox side of the page, to update it manually, but it will not update. It reads "last update 12-20-2012". I