Unable to drop SQL azure table

Hi,
I'm trying to drop SQL azure table. However I can delete data inside the table. When using drop command, it is taken long time processing and finally this error message 'Connection Failed'. Please help me. Thanks

That sounds like an internal error in SQL Server which may be due to corruption. Don't really know how you deal with that in Azure. But if DBCC CHECKDB is available, run it and see what happens.
Also, do you have any DDL triggers on the database? In such case, disable the trigger, in case it is the trigger that is failing.
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • I'm unable to create a new Table on SQL Azure.

    I'm trying to create a new table in my custom database. But i'm getting this error message:
    'Filegroup reference and partitioning scheme' is not supported in this version of SQL Server.'
    Here is the sample create schema:
    CREATE TABLE dbo.[Contact](
    [ID] [int] IDENTITY(1,1) NOT NULL,
    [FirstName] [nvarchar](250) NULL,
    [LastName] [nvarchar](250) NULL,
    [InsertDateTime] [datetime] NULL,
    [UpdateDateTime] [datetime] NULL,
    [PhoneNo1] [nvarchar](50) NULL,
    [CellNo1] [nvarchar](50) NULL,
    [IsActive] [bit] NOT NULL,
    CONSTRAINT [PK_Contact] PRIMARY KEY CLUSTERED
    [ID] ASC
    )WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    BT

    In addition to Neil's comment, I would add that one of the major strengths of SQL Azure is its simplicity from an administrative standpoint while providing as much parity as possible for the relational and programming stack.  In somes
    cases, less is more. SQL Azure is an example.  By having a simpler system we are able to get certain capabilities not available on premise. Take a look at the CREATE DATABASE XYZ AS COPY OF operation for example, you do not have to worry about finding
    a server with enough space; you do not have to worry about moving files around a network or creating shares between machines; and best of all, you do not have to any kind or provisioning of cleanup as a result of cloning a database. The upcoming Data Federation
    feature is another example of what you can achieve when you are free of underlying configuration details.
    That's not to say SQL Azure wouldn't benefit from some capabilties of the SQL Server platform (for example TDE); but personally I am happy that two years later we still don't have to worry about many of those low-level configuration details.
    Herve Roggero, Blue Syntax MVP SQL Azure Co-Author: Pro SQL Azure

  • Unable to rebuilding clustered index in SQL Azure

    Hi,
    I'm trying to rebuild a clustered index in SQL Azure.  The table is quite large, and I'm attempting an offline rebuild using:
    ALTER INDEX PK_Asset ON dbo.Asset
    REBUILD 
    Unfortunately, I'm unable to complete this operation because the operation fails with a timeout.  I've tried it several times, but with no success.
    The index fragmentation is estimated to be around 85%, so I'm quite keen to reduce this.
    Does anyone have any tips for getting around this in SQL Azure?
    Thanks,
    Nick

    I believe you must be getting these error messages while tyring this operation:
    Msg 40552, Level 20, State 1, Line 1
    The session has been terminated because of excessive transaction log space usage. Try modifying fewer rows in a single transaction.
    Msg 0, Level 20, State 0, Line 0
    A severe error occurred on the current command.  The results, if any, should be discarded.
    Creating, rebuilding and dropping indexes could generate a lot of transaction log records and may hit this error msg on larger tables. You may be able to work around the issue by creating a new table with the desired index layout, and then move the data
    in smaller chunks over to the new table. However in most cases, you can minimize transaction log space usage with index operations by using the ONLINE option with your statement. Specifying the ONLINE=ON with CREATE, ALTER and DROP INDEX operations change
    the characteristics of the execution. Instead of a single large transaction, the operation is performed in multiple shorter transactions in the background without holding exclusive locks for extended periods of time on the rows. This both improves concurrency
    during the execution of the operation, and it eases the transaction log space requirement for the operation. This can help you avoid the 40552 exception.
    PS: The rebuild command using the ONOINE=ON may also fail if you have BLOB datatype colume (datatype like ttext, image, varchar(max), nvarchar(max), varbinary(max), xml, or large CLR type).
    HTH,
    Thanks and regards,
    __Raman
    Raman Sharma - MSFT Microsoft

  • Unable to descripe the table and unable to drop the table

    Hi,
    I have a temp table that we use like staging table to import the data in to the main table through some scheduled procedures.And that will dropped every day and will be created through the script.
    Some how while I am trying to drop the table manually got hanged, There after I could not find that table in dba_objects, dba_tables or any where.
    But Now I am unable to create that table manually(Keep on running the create command with out giving any error), Even I am not getting any error (keep on running )if I give drop/desc of table.
    Can you please any one help on this ? Is it some where got stored the table in DB or do we any option to repair the table ?
    SQL> select OWNER,OBJECT_NAME,OBJECT_TYPE,STATUS from dba_objects where OBJECT_NAME like 'TEMP%';
    no rows selected
    SQL> desc temp
    Thank in advance.

    Hi,
    if this table drops then it moved DBA_RECYCLEBIN table. and also original name of its changed automatically by oracle.
    For example :
    SQL> create table tst (col varchar2(10), row_chng_dt date);
    Table created.
    SQL> insert into tst values ('Version1', sysdate);
    1 row created.
    SQL> select * from tst ;
    COL        ROW_CHNG
    Version1   16:10:03
    If the RECYCLEBIN initialization parameter is set to ON (the default in 10g), then dropping this table will place it in the recyclebin:
    SQL> drop table tst;
    Table dropped.
    SQL> select object_name, original_name, type, can_undrop as "UND", can_purge as "PUR", droptime
      2  from recyclebin
    SQL> /
    OBJECT_NAME                    ORIGINAL_NAME TYPE  UND PUR DROPTIME
    BIN$HGnc55/7rRPgQPeM/qQoRw==$0 TST           TABLE YES YES 2013-10-08:16:10:12
    All that happened to the table when we dropped it was that it got renamed. The table data is still there and can be queried just like a normal table:
    SQL> alter session set nls_date_format='HH24:MI:SS' ;
    Session altered.
    SQL> select * from "BIN$HGnc55/7rRPgQPeM/qQoRw==$0" ;
    COL        ROW_CHNG
    Version1   16:10:03
    Since the table data is still there, it's very easy to "undrop" the table. This operation is known as a "flashback drop". The command is FLASHBACK TABLE... TO BEFORE DROP, and it simply renames the BIN$... table to its original name:
    SQL> flashback table tst to before drop;
    Flashback complete.
    SQL> select * from tst ;
    COL        ROW_CHNG
    Version1   16:10:03
    SQL> select * from recyclebin ;
    no rows selected
    It's important to know that after you've dropped a table, it has only been renamed; the table segments are still sitting there in your tablespace, unchanged, taking up space. This space still counts against your user tablespace quotas, as well as filling up the tablespace. It will not be reclaimed until you get the table out of the recyclebin. You can remove an object from the recyclebin by restoring it, or by purging it from the recyclebin.
    SQL> select object_name, original_name, type, can_undrop as "UND", can_purge as "PUR", droptime
      2  from recyclebin
    SQL> /
    OBJECT_NAME                    ORIGINAL_NAME TYPE                      UND PUR DROPTIME
    BIN$HGnc55/7rRPgQPeM/qQoRw==$0 TST           TABLE                     YES YES 2006-09-01:16:10:12
    SQL> purge table "BIN$HGnc55/7rRPgQPeM/qQoRw==$0" ;
    Table purged.
    SQL> select * from recyclebin ;
    no rows selected
    Thank you
    And check this link:
    http://www.orafaq.com/node/968
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/tables011.htm
    Thank you

  • How to add description of a column of a table in SQL Azure

    Hi
    I have some tables in my application database where there are descriptions added against certain columns. Needless to say they were done by using sp_addextendedproperty.
    Now I am trying to migrate the Database to SQL Azure. SQL Azure does not support sp_addextendedproperty.
    Hence I am not able to figure out how to add descriptions to those columns.
    Any help would be much appreciated.
    Thanks
    Soumyadeb

    Hello,
    Just as Latheesh post above, Windows Azure SQL database are not support extended stored procedures. That’s one of the limitations on SQL database, and I don’t know there is another way to achieve the same on Azure.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Unable to save a report that includes a datasource of "Microsoft SQL azure" type

    I have install SSRS in azure using the following instructions (http://msdn.microsoft.com/en-us/library/dn449661.aspx) and all seems to work fine, however when I create a report in report builder 2014 (in this case empty) that includes a Microsoft SQL Azure
    datasource type I am unable to save the report and get the following error message (even though when I test connection it succeeds). 
    "The report definition was saved, but one or more errors occurred while setting the report properties"
    Reports with standard sql datasources work fine.
    I have also tried creating the report using Visual Studio 2013 and get a similar error message.
    I have tried this using SQL 2012 and SQL 2014 and get the same error.
    Does anybody know how I can create a report with Microsoft SQL Azure datasource type?

    Hi jamesla,
    Based on my research, the issue can be caused by a deleted shared data source still exist under the Data Sources list in Report Builder. For more details about this scenario, we can refer to the following thread:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/7170dbee-048c-4298-89ba-df4d42924c8e/the-report-definition-was-saved-but-one-or-more-errors-occurred-while-setting-report-properties?forum=sqlreportingservices
    Since the error message without detail information, we can try to render the report to see the detail error message. Besides, we can try to check it in the log file. The SQL Reporting Services log files are found on the reporting services point server, in
    the folder %programfiles%\Microsoft SQL Server\<SQL Server Instance>\Reporting Services\LogFiles.
    For more information about how to use Microsoft SQL azure as the data source of a report, please see:
    http://msdn.microsoft.com/en-IN/library/ff519560.aspx
    http://programming4.us/database/2158.aspx
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Unable to drop or truncate a plan table

    Hi guys,
    I was trying to execute 'Explain Plan' on one of my query. However, when I tried to drop the plan table, i was prompted that the table or view does not exists:
    QL> EXPLAIN PLAN FOR
    2 SELECT * FROM ORDERS WHERE TO_CHAR(O_SHIP_DATE, 'YYYY')='2005' AND O_STATUS='PROCESSING';
    Explained.
    SQL> SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);
    PLAN_TABLE_OUTPUT
    Plan hash value: 1275100350
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 648 | 46008 | 725 (5)| 00:00:09 |
    |* 1 | TABLE ACCESS FULL| ORDERS | 648 | 46008 | 725 (5)| 00:00:09 |
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
    1 - filter("O_STATUS"='PROCESSING' AND
    TO_CHAR(INTERNAL_FUNCTION("O_SHIP_DATE"),'YYYY')='2005')
    14 rows selected.
    SQL> TRUNCATE TABLE PLAN_TABLE;
    TRUNCATE TABLE PLAN_TABLE
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> select count(*) from plan_table;
    COUNT(*)
    6
    Any idea what went wrong? Thanks in advance.

    Ok, I managed to find the scripts to recreate the plan table. Now it works again. Cheers.

  • Unable to drop queue table

    Hi,
    I have the streams admin user as "stradmin" and i have a queue table called "STREAMS_CAPTURE_QT"
    I am not able to drop the streams user because i am not able to drop the queue table.
    I tried the following.....
    begin
    DBMS_AQADM.DROP_QUEUE_TABLE(
    queue_table => 'STREAMS_CAPTURE_QT',
    force => TRUE);
    end;
    but i get below error....
    begin
    ERROR at line 1:
    ORA-04031: unable to allocate 112 bytes of shared memory ("streams
    pool","unknown object","streams pool","qulptr_kwqbscc")
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 4102
    ORA-06512: at "SYS.DBMS_AQADM", line 197
    ORA-06512: at line 2
    I checked my init.ora parameter file and i do have...
    *.aq_tm_processes=0
    *.shared_pool_size=500M
    *.streams_pool_size=16777216
    *.event='10298 trace name context forever, level 32'
    Can someone help me to drop the queue table as well as the streams admin user.
    Thanks in advance.

    Have you tried increasing the SGA size?

  • How to delete/drop all the tables from SQL Server Database without using Enterprise Manager?

    How to delete/drop all the tables from SQL Server Database without using Enterprise Manager?
    I tried using DROP Tables, Truncate Database, Delete and many more but it is not working.  I want to delete all tables using Query Analyzer, i.e. through SQL Query.
    Please help me out in this concern.
    Nishith Shah

    Informative thread indeed. Wish I saw it early enough. Managed to come up with the code below before I saw this thread.
    declare @TTName Table
    (TableSchemaTableName
    varchar
    (500),
    [status] int
    default 0);
    with AvailableTables
    (TableSchemaTableName)
    as
    (select
    QUOTENAME(TABLE_SCHEMA)
    +
    +
    QUOTENAME(TABLE_NAME)
    from
    INFORMATION_SCHEMA.TABLES)
    insert into @TTName
    (TableSchemaTableName)
    select *
    from AvailableTables
    declare @TableSchemaTableName varchar
    (500)
    declare @sqlstatement nvarchar
    (1000)
    while 1=1
    begin
    set @sqlstatement
    =
    'DROP TABLE '
    + @TableSchemaTableName
    exec
    sp_executeSQL
    @sqlstatement
    print
    'Dropped Table : '
    + @TableSchemaTableName
    update @TTName
    set [status]
    = 1
    where TableSchemaTableName
    = @TableSchemaTableName
    if
    (select
    count([Status])
    from @TTName
    where [Status]
    = 0)
    = 0
    break
    end

  • Azure Table Storage Unable to connect - Error on increasing load

    I am using Windows Aure Website ( Reserved Instance) and doing the Inserts to an Azure table via http. ( Yes http).  When i was doing load testing, foud the below error.  It was like  2 hits / seconds... Not sure what is the reason?
    Any thoughts? SDK issue? 
    HTTP_Request2_ConnectionException</b>: Unable to connect to tcp://innovativetxtstorage.table.core.windows.net:80. Error: php_network_getaddresses: getaddrinfo failed: No such host is known.  
    C:\DWASFiles\Sites\innovativetxt\VirtualDirectory0\site\wwwroot\vendor\pear-pear.php.net\HTTP_Request2\HTTP\Request2\Adapter\Socket.php  on  line 324
    >HTTP_Request2_SocketWrapper->__construct('tcp://innovative&hellip;', 10, Array)</td><td>C:\DWASFiles\Sites\innovative in C:\DWASFiles\Sites\innovativetxt\VirtualDirectory0\site\wwwroot\vendor\pear-pear.php.net\HTTP_Request2\HTTP\Request2\SocketWrapper.php
    on line 116

    Here is further information ...
    In normal circumstance with 30 Hits per Minute to our our API.... It works fine.  After that latency is too high that it gives time out. See the Attached Report..
     All I am doing is reading the Azure table to verify user Loginand Password...   ( Reading Same Entity Again and Again)
    See teh Performance Test Report here... http://www.innovativetxt.com/BlitzPerformanceTest.pdf
    My customer cannot send us more than 30 request per seconds.. we feel ourself in trouble by complains every day.
    We are on reserved Instance Website URL is http://www.innovativetxt.com   and we feel like latency is killing us. 
    1. Is it because of Aure Storage? Cannot handel load of that much?
    Is it bec
    ( I have already turend of Tanggling, TCP 100 etc all tips implemented )
    See the below error message from Log file.
    [03-Aug-2013 09:37:01 UTC] PHP Fatal error:  Uncaught <table style="border: 1px" cellspacing="0">
    <tr><td colspan="3" style="background: #ff9999"> <b>HTTP_Request2_ConnectionException</b>: Unable to connect to tcp://innovativetxtstorage.table.core.windows.net:80. Error: php_network_getaddresses: getaddrinfo failed:
    No such host is known.  in <b>C:\DWASFiles\Sites\innovativetxt\VirtualDirectory0\site\wwwroot\vendor\pear-pear.php.net\HTTP_Request2\HTTP\Request2\Adapter\Socket.php</b> on line <b>324</b></td></tr>
    <tr><td colspan="3" style="background-color: #aaaaaa; text-align: center; font-weight: bold;">Exception trace</td></tr>
    <tr><td style="text-align: center; background: #cccccc; width:20px; font-weight: bold;">#</td><td style="text-align: center; background: #cccccc; font-weight: bold;">Function</td><td style="text-align:
    center; background: #cccccc; font-weight: bold;">Location</td></tr>
    <tr><td style="text-align: center;">0</td><td>HTTP_Request2_SocketWrapper->__construct('tcp://innovative&hellip;', 10, Array)</td><td>C:\DWASFiles\Sites\innovative in C:\DWASFiles\Sites\innovativetxt\VirtualDirectory0\site\wwwroot\vendor\pear-pear.php.net\HTTP_Request2\HTTP\Request2\SocketWrapper.php
    on line 116

  • Azure Tables or SQL Azure?

    I am at the planning stage of a web application that will be hosted in Azure with ASP.NET for the web site and Silverlight within the site for a rich user experience. Should I use Azure Tables or SQL Azure for storing my application data?

    Hi Carol,
    Before we choose the Azure Table Or SQL Azure for storing 
    data, we  need to know their  differences and
    Scenarios:
    First ,Azure SQL Database is a relational database service that extends core SQL Server capabilities to the cloud.
    While 
    Azure Table Storage is a fault-tolerant, ISO 27001 certified
    NoSQL key-value store. It stores structured data  
    without schemas, it does not provide any way to represent relationships between the data.
    Second, If your application stores and retrieves large data sets that do not require rich relational capabilities, Azure Table Storage might be a better choice. If your application requires data processing
    over schematized data sets and is relational in nature, Azure SQL Database might better suit your needs.
    In fact There are 
    several other  of  factors you should consider when choose which one to store data ,please refer to the links below for more information:
    http://msdn.microsoft.com/en-us/library/azure/jj553018.aspx
    http://msdn.microsoft.com/en-us/magazine/gg309178.aspx
    Best Regards,
    Kevin Shen.

  • Migrating Azure table storage content to On prem SQl database

    hi 
    is it possible to import azure table storage data to On prem Sql database ?

    Hi
    You cannot do it directly from SQL or Azure Storage Explorer.
    But you can have a little application that extracts your table storage data into some CSV file like this:
    http://blogs.msdn.com/b/jmstall/archive/2012/08/03/converting-between-azure-tables-and-csv.aspx
    And then import the CSV file that you generate into your on-prem sql database
    Regards
    Aram
    Aram Koukia

  • Unable to acces a an Azure website that uses SQL Azure?

    I have have uploaded a website to Azure that usese SQL Azure. When I try to access that stie iget the connection error message below.
    "The device or resource (the site URL) is not set up to accept connections on port "The World Wide Web service (HTTP)".
    When I upload a website that does not uses SQL azure, I can access that site without any connection errors.
    Appreciate any feedback.
    Thanks

    Does the site load at all?  If not, can you double check that your endpoints are properly defined in your service definition?
    Have you configured your SQL Azure instance to accept connections from other Windows Azure Services datacenters?  You need to make sure the firewall rule exists with IP Start and End range of 0.0.0.0.  There is a check box you can simply
    check in the SQL Azure firewall settings.
    If neither of those work, can you paste the SQL Connection string (without the server, username, and password).
    Harin

  • Best way to Insert Millions records in SQL Azure on daily basis?

    I am maintaining millions of records in Sql Server 2008 R2 and now i am intended to migrate these on SQL Azure.
    In existing system with SQL Server 2008 R2, few SSIS packages and Stored Procedures are firstly truncate the existing records and then perform Insert operation on the table which holds
    approx 26 Million records in 30 mins. on Daily basis (as system demands).
    When i migrate these on SQL Azure, i am unable to perform these operations in a
    faster way as i did in SQL 2008. Sometimes i got Request timeout error.
    While searching for faster way, many of them suggest for Batch process or BCP. But Batch processing is NOT suitable in my case because it takes much time to insert those records. I required some faster and efficient way on SQL Azure.
    Hoping for some good suggestions.
    Thanks in advance :)
    Ashish Narnoli

    +1 to Frank's advice.
    Also, please upgrade your Azure SQL Database server to
    V12 as you will receive higher performance on the premium tiers.  As you scale-up your database for your bulk insert, remember that
    SQL Database charges by the hour. To minimize costs, scale back down when the inserts have completed.

  • Error when running scheduled refresh from SQL Azure data

    I have a PowerPivot that connects to a SQL Azure database table.  I added the username and password in the PowerPivot connection.  It refreshed fine manually straight from PowerPivot.  However, when I upload the excel file to Power BI
    and I schedule a refresh, it fails with the following error message:
    Sorry, something went wrong. Please try again. Correlation ID: d43f07fc-cc0c-461c-b25e-68e866a2a911
    I went through this FAQ (http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/scheduled-refresh-faq-HA104180763.aspx#_Toc388441416)
    and the steps have me also saving the password in the connection string.  However the connection string (under tab Data->Connections) is grayed-out and I am unable to enter the password.
    Thanks for your help...

    Hi,
    When you refresh in Excel client, do you get a prompt for the password?
    What worked for me in the past, is the following process:
    1. Within PowerPivot, get the data but don't save the password there.
    2. Once you get the data go back to Excel, switch to Data ribbon >> Connections, and select the connection(s) that were created in PowerPivot and select to save the password.
    3. Refresh the data (it will prompt for the password), save the file.
    4. Just to be sure, open the file again, refresh and see that it is not prompting for a password.
    GALROY

Maybe you are looking for

  • Drop-down text disappears

    Hi again all We are finding it impossible to get drop-down text to appear in Robohelp, using TC4. *BTW We have linked the RH and FM files, not imported ) In Framemaker, I select the text I want as the drop-down heading, and select Dynamic HTML effect

  • Safari has slowed to a crawl after upgrading to 4GB memory and installing Mavericks

    Before I upgraded my MacBook I used Snow Leopard. Despite my slow broadband with Safari I could get a list of possible answers in a couple of seconds. Now with Mavericks it can take 4-5minutes for a page to load then another 4-5 minutes to read the p

  • My software is up to date, but iTunes denies theres an ipod connected

    My 160GB classic appears in my computer but not in itunes, i ran diagnostics and it says there is no ipod connected when there obviously is, i can access the disk itself from my computer. I've tried everything, downloading the latest itunes, latest i

  • WILL NOT RUN ON MY MAC

    I have a Power PC mac and have used Firefox many years now. Why are you abandoning my platform? Do you think money grows on trees? I'm on a fixed income!

  • Please Help:  Can't Access iTunes Store?  What is Wrong?

    Hi there - please help! Since downloading the latest iTunes update I get the following error message every time I click on my iTunes Store: 'ITUNES COULD NOT CONNECT TO THE ITUNES STORE. THE NETWORK CONNECTION WAS REFUSED. MAKE SURE YOUR NETWORK SETT