How to kill a SQL Server DB?

How can I completely kill, or delete a SQL Server DB?  I can't seem to detach it or take it offline.  I can't do anything with it at all.  I basically ran out of disk space while loading a table, and not it seems to be corrupted.  How
can I completely kill the DB, so I can start over.  Every time I try to do something, it says, 'database is currently in use'.
Thanks.
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

Rguy first your question was too confusing and then please
dont mark every post as answer. You never kill SQL Server DB you drop it. Let the answer be one which is crisp and clear and really answers your question you can vote comments as helpful. A new user reading the thread would get confused as to what actually
is answer
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP

Similar Messages

  • How to find out sql server administrator account in sql server 2008 R2

    how to find out sql server administrator account in sql server 2008 R2
    adil

    there is any way to find out actual administrator
    because i forget that user i used to logon to server and installed sqlserver
    adil
    Hi adilahmed,
    According to your description, you forgot the account which was used to install SQL Server. SQL Server service account information is stored in Windows Registry database. You can get this information from Services Console or SQL Server Configuration.
    For example, to get account information from Services Console.
    1. Go to Start > Run > Services.msc
    2. Right Click on SQL Server Service, i.e. “SQL Server (InstanceName)” and go to properties
    3. The account information is available under Log On tab.
    Or you can get the information by using DMV and so on.
    SELECT servicename, service_account FROM   sys.dm_server_servicesGO
    If you now log in SQL Server by using sysadmin account, you can check all login names in security and find the original account to login.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to call a sql server stored procedure from oracle

    Hi all,
    Please anybody tell me how to call a sql server stored procedure from oracle.
    I've made an hsodbc connection and i can do insert, update, fetch data in sql server from oracle. But calling SP gives error. when I tried an SP at oracle that has line like
    "dbo"."CreateReceipt"@hsa
    where CreateReceipt is the SP of sql server and hsa is the DSN, it gives the error that "dbo"."CreateReceipt" should be declared.
    my database version is 10g
    Please help me how can i call it... I need to pass some parameters too to the SP
    thanking you

    hi,
    thank you for the response.
    when i call the sp using DBMS_HS_PASSTHROUGH, without parameters it works successfully, but with parameters it gives the following error
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][Microsoft][ODBC SQL Server Driver]Invalid parameter number[Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index (SQL State: S1093; SQL Code: 0)
    my code is,
    declare
    c INTEGER;
    nr INTEGER;
    begin
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@hsa;
    DBMS_HS_PASSTHROUGH.PARSE@hsa(c, 'Create_Receipt(?,?)');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@hsa(c,1,'abc');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@hsa(c,2,'xyz');
    nr:=DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@hsa(c);
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@hsa(c);
    end;
    Create_Receipt is the sp which requires two parameters.
    please give me a solution
    thanking you
    sreejith

  • How to connect MS-sql server with SAP BW

    hi all,
    i want the connection procedure to how to connect MS-sql server with SAP BW.so that i can extract the data from ms sql server and can create cubes using that data.please help me in this issue.

    Hi Vamshi,
    Go through this DOC it explains u how to connect to other data bases like SQL...
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/58f4db47-0501-0010-a2bf-ff01b150fdff]
    this is a thread related to connect the SQL server..
    [DB Connect MS SQL Server;
    Regards,
    NR
    Assign points if helpful...

  • How to find the SQL Server Instances running across the given activer directory domain?

    How to find the SQL Server Instances running across the given activer directory domain?
    I have though of OSQL -L , Microsoft Assessment and Planning ( MAP ) tool and SQLPing3 (SQLSecurity) might help me.
    I would appreciate if there any other way of finding the SQL Servers / Instances running across the given active directory domain.
    Sivaprasad S
    http://sivasql.blogspot.com
    Please click the Mark as Answer button if a post solves your problem!

    Dear ,
    Very simple u find all instances through the customized sp which is get all details about inventory. Like i put the sp bellow. This is without any tool. 
    USE [master]
    GO
    /****** Object:  StoredProcedure [dbo].[DBStatus]    Script Date: 08-01-2015 19:46:11 By Damodar Patle Sr. DBA Mumbai India ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[DBStatus] 
    AS
    SELECT 
    SERVERPROPERTY('servername') AS ServerName,
    ConnectionProperty('local_net_address') AS 'local_net_address',
    ConnectionProperty('local_tcp_port') AS 'local_tcp_port',
    CONVERT(VARCHAR(25), @@VERSION) as  VERSIONSQL,
    SERVERPROPERTY('ErrorLogFileName') AS ErrorLogFilePath,
    database_id,
    CONVERT(VARCHAR(25), DB.name) AS DBName,
    CONVERT(VARCHAR(10), DATABASEPROPERTYEX(name, 'status')) AS [Status],
    CONVERT(VARCHAR(10), DATABASEPROPERTYEX(name, 'Recovery')) AS [Recovery_Model],
    create_date as DBCreate_Date, --physical_device_name,
     (SELECT COUNT(1) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS DataFiles,
     (SELECT SUM((size*8)/1024) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS [Data MB],
     (SELECT COUNT(1) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS LogFiles,
     (SELECT SUM((size*8)/1024) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS [Log MB],
     (SELECT physical_name FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS MDF_File_Location,
     (SELECT physical_name FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS  LDF_File_Location,
       user_access_desc
       FROM sys.databases DB
       ORDER BY dbName, [Log MB] DESC, NAME

  • How much memory does SQL Server 2008R2 Standard use on Windows Server 2008 R2 64-bit?

    Hi,
    can anyone tell me how much RAM will really be used by SQL Server?
    72 GB are currently installed. As Windows is only able to use 32 GB is SQL Server able to use the other 40GB + the unused part of the first 32 GB?
    Thank you very much!
    BR Matthias

    Sorry, I don´t understand your post ?!
    Maybe the question is if SQL Server is able to allocate more memory than the installed Windows Version is able to?
    Since your OS is Windows Standard edition(X64) it cannot use or a process running cannot use more than 32 G of memory.
    Now SQL server can use as much memory possible but it is now limited by Windows as your OS can only see 32 G.So it would be good part from your side to go to sp_configure and set 25 G for SQL server and can leave rest for OS( it just a figure not a actual
    value i have given,actual you have to calculate by yourself or refer to below link) .
    http://mssqlwiki.com/2013/04/22/max-server-memory-do-i-need-to-configure/
    As Andrew said after 32 G what ever memory you put it is waste.
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • How to create a sql server database in SQL DEVELOPER.

    I installed the SQL DEVELOPER 1.5.5, but i can't found where to create the sql server database in it. please kindly tell me if you feel free.
    Thanks so much in advance.

    Hi,
    Take a look at the main [ SQL Developer page on OTN|http://www.oracle.com/technology/products/database/sql_developer/index.html]. There is a link you should find useful, it's the Getting Started link under the Migration section. This explains how to download and setup the drivers you need to correct to non-Oracle databases. There are also links to online demonstrations on how to create connections to these databases. See how you go with that material.
    It should help.
    Sue

  • How to connect MS SQL Server  from SAP based on AIX/ORACLE ?

    Hi ,
    I need  ABAP program to read and write data on MS SQL server.
    The SAP System is based on AIX system and Oracle DB.
    The MS SQL is based on Windows Server System.
    How to do this? 
    Thanks.

    Hello,
    First is crerate a connexion with the target MS SQL. Use the trasaction DBCO.
    Next, You must use EXEC SQL instruction. I give to you an example for read that I use :
    For writting, is the same think. The request SQL must change in update or insert
    Thierry
    DATA dbtype TYPE dbcon_dbms. "dbtype chaine de caractere
    DATA wl_con_name TYPE dbcon-con_name.
    DATA wl_info_con(3).
      DATA wa_sytabix TYPE sy-tabix.
    DATA matnr_temp TYPE mara-matnr.
      DATA refart TYPE mara-matnr.
      DATA consi  TYPE zed_cons.
        wl_con_name = 'CONN_SQL_DATAB'.
      SELECT SINGLE dbms FROM dbcon INTO dbtype WHERE con_name = wl_con_name.
      IF dbtype = 'MSS'.
        TRY.
    *Connexion a la base de donnée
            EXEC SQL.
              CONNECT TO :wl_con_name
            ENDEXEC.
            IF sy-subrc <> 0.
              RAISE EXCEPTION TYPE cx_sy_native_sql_error.
            ELSE.
              MESSAGE s258(zm) WITH wl_info_con.
            ENDIF.
    *Recupération des données
            EXEC SQL.
              OPEN WRECORDSET FOR SELECT Refart, consi FROM Articles
            ENDEXEC.
            IF sy-subrc <> 0.
              RAISE EXCEPTION TYPE cx_sy_native_sql_error.
            ENDIF.
            DO.
              EXEC SQL.
                FETCH NEXT WRECORDSET INTO :Refart, :Consi
              ENDEXEC.
              IF sy-subrc <> 0.
                EXIT.
              ENDIF.
              CLEAR wa_comp.
              CLEAR wa_sytabix.
              READ TABLE wt_comp INTO wa_comp WITH KEY matnr = refart.
              IF sy-subrc = 0.
                wa_sytabix = sy-tabix.
                IF consi = 'F'.
                  wa_comp-consi = 'Non'.
                ELSE.
                  IF consi = 'T'.
                    wa_comp-consi = 'Oui'.
                  ELSE.
                    wa_comp-consi = ''.
                  ENDIF.
                ENDIF.
                MODIFY  wt_comp INDEX wa_sytabix FROM wa_comp.
              ELSE.
              ENDIF.
            ENDDO.
    *on ferme tout
            EXEC SQL.
              CLOSE WRECORDSET
            ENDEXEC.
            EXEC SQL.
              DISCONNECT :wl_con_name
            ENDEXEC.
          CATCH cx_sy_native_sql_error.
            MESSAGE `Error in Native SQL.` TYPE 'I'.
        ENDTRY.
      ENDIF.

  • How to connect to SQL Server from Forms 10g?

    Hello all,
    How do we connect to SQL Server database from Forms 10g?
    In Oracle Metalink site they have suggested using Transparent Gateway for SQL Server as a solution.
    But is there a way we can connect directly to SQL Server from Forms using an ODBC connection
    without installing anything on the database server?
    Pls help!
    Regards,
    Sam

    Hello all,
    I was able to connect to SQL Server from Oracle using Generic Connectivity (HSODBC).
    Transparent gateway was not required.
    Followed metalink note 109730.1
    So, after I created a dblink to SQL Server, I created a synonym for the dblinked SQL Server table.
    When I used the synonym as the table source in Oracle Forms, I got the following error while querying.
    "ORA-02070 - ROWID is not supported in this context."
    This is because Forms has an invisible ROWID field and when data is fetched from SQL Server table
    no Rowid is fetched since SQL Server table doesn't have one.
    Is there a way to overcome this issue or do we have populate the block manually using a SQL query ?
    Pls suggest.
    Regards,
    Sam

  • How translate data in SQL Server?

    How do I translate data in my database from one language to another one?
    I want my website in multiple languages, translate the labels and many static things is easy, just use the Resources files, but about data which is stored  in my database? I need translate it too... How I do it? Repeat every tables and when I want store
    the data use the bing translator or google translator and stored in their table?
    I'm constructing my website in mvc-asp.net and my database is SQL Server.
    Please give me helpful help

    There are actually 2 main facets to your question.  One is how to design a database and application to support multiple cultures, and the other is how to translate data.
    I would not create a separate table for each language.  Instead, start by identifying tables that have string columns requiring translations.  For each of these tables, create an additional table with a composite primary
    key of the main table primary PK plus an culture identifier (e.g. ISO codes), and a column for each value that must be translated. Queries can then join to the translation table and specify the desired culture in order to return the translated values.
    Be aware that there is not necessarily a need to store translations in the database for dynamic content, but much depends on the nature of your application and data.  You could just store the value in the language entered and then translate
    on the fly knowing the from/to language.  But there may be performance concerns with that approach.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com
    Guzman, if I stored in the language entered and then translate on the fly knowing to another language, you
    recommend use systems like bing
    translator API or Google translator for that?

  • How To access MS SQL Server 2000 in Linux

    I have a MS SQL Server 2000 on Windows2000,
    For some speical reasons,I need to write a JAVA
    Program running on Linux which can access datas
    in MS SQL Server....How do I code????

    You should be able to it, but I think you'll need to use a third party JDBC driver.
    I've used a driver from http://www.jturbo.com and another from http://www.inetsoftware.de/ , and if my memory is correct both worked quite well. You can search for other 3rd party drivers here: http://industry.java.sun.com/products/jdbc/drivers
    Good luck.

  • How to create a SQL SERVER MODULE IN OWB

    Hello. Any body can help me with this. I need to access a SQL Server DataBase from OWB.
    Need your help.
    Thanks.

    Hi,
    Take a look at the main [ SQL Developer page on OTN|http://www.oracle.com/technology/products/database/sql_developer/index.html]. There is a link you should find useful, it's the Getting Started link under the Migration section. This explains how to download and setup the drivers you need to correct to non-Oracle databases. There are also links to online demonstrations on how to create connections to these databases. See how you go with that material.
    It should help.
    Sue

  • How to run a SQL Server Agent job step on certain days/frequency

    I've a SQL Server Agent job. One of the requirement is that a particular step should only run on certain frequency i.e. Certain Date and time. Any suggestions how can that be done?
    GBM

    yes
    1. Make first step as a Transact SQL step. Keep command as below
    IF DAY(GETDATE()) = <Your date value>
    AND DATEPART(hh,GETDATE()) = <your time hour)
    AND DATEPART(minute,GETDATE()) = <your time minute)
    SELECT 1
    ELSE
    RAISERROR 'Job cant be run at this time'
    Then for job step properties set the following properties in advanced tab
    This would make sure it will quit the job without executing other core steps untill it reaches the required day and time
    You can add more conditions in IF based on requirement like if you want time to be on certain second or month to be particular value etc
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to deploy a sql server compact 4.0 in windows xp?

    My program is developed by visual basic 6.0 with sql server compact 4.0.   How can I deploy it in windows xp sp3?
    Should I install .netframework version X in windows xp before sql server compact 4.0 ? 
    When I copy my program  to windows xp and run it , it shows not found provider error.

    I you use ADO, the OLEDB provider must be registered. To do the simply install the SQL Server Compact 4.0 SP1 runtime MSI
    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

  • How to deploy MS Sql Server 2005 and 2008 jdbc driver

    Hi SAP Guru's
    Can somebody tell me how to deploy the jdbc driver of MS SQL Server 2005 and 2008 on SDM.
    According to the SAP instruction we should have 3 files(mssqlserver.jar,msbase.jar,msutil.jar) but in 2005 driver file we only have 1 file i.e sqljdbc.jar so how do i deploy it .
    Secondly i cannot deploy it on visual administrator as well and when i am doing the File to jdbc scenarion i am getting this error
    " Accessing database connection "jdbc.sqlserver://localhost:1433;DatabaseName=Employee failed DriverManagerException. Cannot establish connection to URL jdbc.sqlserver://localhost:1433;DatabaseName=Employee  SAPClassNotFoundException com.microsoft.sqlserver.jdbc.SQLServerDriver".
    can somebody please upload the screen shots on mediafire or any other site so that i will solve my problem.

    Hello,
    *OS: First of all: *
    3 files (msbase.jar,mssqlserver.jar and msutility.jar )should be zipped to aii_af_jmsproviderlib.zip file only for UNIX OS.
    For Windows OS only sqljdbc.jar file which in every version of JDBC driver should be zipped to aii_af_jmsproviderlib.zip.
    You can deploy JDBC driver through SDM tool which mention in guide below:
    New version of JDBC driver installation guiade:
    External Driver Configuration for Process Integration 7.0
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60237e74-ef19-2b10-5a9b-b35cc6a28e83
    Drivertool from this guide you can find at https://www.sdn.sap.com/irj/sdn/howtoguides
    Then Exchange Infrastructure How-to Guides for SAP NetWeaver 2004 HYPERLINK "https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f"
    How to Install and Configure External Drivers for JDBC & JMS
    AdaptersHYPERLINK "https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e00262f5-934d-2a10-b99c-9bc63c2a7768"
    Download attached system files (ZIP 16KB)
    Any questions - let me know
    BR,
    Dzmitry

Maybe you are looking for

  • Mac Formatted Ipod on Windows XP, Possible?

    Well i have a dilemma, well actaully 2 dilemmas but we'll take one step at a time here. Is there any way to get the songs on my Mac formatted iPod onto my PC, also, can i transfer songs from my PC to my Mac formatted ipod. If so, how? My reason for w

  • BootCamp or Parallels 6? Windows 7 or Windows XP?

    Hello all! I have this question that has been haunting me for a pretty long time, but now that I got a copy of windows XP and windows 7, I've decided to ask and get rid of this dilemma. So, first let me give you the main directions: 1- I have a 15" 2

  • Movie not moving to iTouch

    When I bought(not rented) The Dark Knight, the movie, I tried to sync it with my iPod touch(2nd gen), but it didn't work.I have a Windows vista, latest itunes, iPod touch,latest software, definetly enough space. Although it gets to a certain point ev

  • Java 1.4.2 default cache size problems

    Hello all - I am delivering panoramic image Virtual Travel® tours via Flash and the Java PTviewer applet, e.g. http://www.taj-mahal.net We want to deliver much larger & "full screen" panoramas as well. This all works fine on PCs (sigh), but not on Ma

  • G5 isight machine with bad Motherboard

    I have a isight 17" that has damage to the GPU due to over heated chipset, my machine has video issues that I can not fix, I checked for bad capacitors but they all are fine. I can confirm that the chipset is the issue after I ran a temp monior last