Attempt to start transaction on SQL server

I have managed to successfully configure Oracle 8.1.7 on NT to retrieve data from a MS
SQL Server (version 6.5)
However, one of the databases we are accessing is set up as read only; Oracle is
attempting a start transaction, as it recognises that the SQL server can take
part in distributed transaction. I am doing something like
insert into mytable (a, b, c) select a, b, c from remote_table@sql_server
Because the SQL Server is in read-only mode, the 'start transaction' fails,
and the insert statement fails as a whole (I've examined the trace file, and the
error I'm getting is reproducable on the SQL server if I type it in)
I've tried looking at the data dictionary, and sure enough it is set up for
2 phase commit as per the documentation.
My question is, can I tell Oracle to not attempt the 'start transaction' on the
remote system? I've tried various DBMS_HS calls but to no avail (from the
documentation I believe the agent overrides the data dictionary entries anyway)
Thanks,
Colin McPherson

Colin,
This looks like bug 1622021. This bug has been fixed in v9.0.1 of the gateway.

Similar Messages

  • Unable to start SSIS Projects : SQL Server 2008R2 Dev edition installed on top on SQL Express 2008 with Advanced Services

    Hello,
    I first installed SQL Serrver Express Edition 2008 with Advanced Services (As a part of some client's software)
    Now I have isntalled SQL Server Developer Edition 2008, by selecting ALL features and client tools.
    Now, with BIDS, I can start SSRS and SSAS Projects, but I can't start SSIS Projects.
    I am getting below error message :
    To design Integration Services packages in Business Intelligence Development Studio, Integration Services has to be installed by one of these editions of SQL Server 2008: Standard, Enterprise, Developer, or Evaluation. To install Integration
    Services, run SQL Server Setup and select Integration Services.
    Please let me know how do I resolve this issue "Without un-installing Express Edition installed earlier on my machine"
    Please help !
    Thanks
    DP

    This is a common pitfall with the SQL Express editions. It cannot co-exist. You
    need to un-install the "Express".
    What works is having a VM with Express Tools if I you (strangely) need them.
    Arthur My Blog

  • Transactional Replication - SQL Server 2012

    Newbie to Replication.
    Configured transactional replication on a database and everything run's fine, but out of all the tables one of the table with couple of columns as VARCHAR(MAX) and with about 3 million records takes 80% of replication duration.
    on bit of research and recommendations, I did configured the server with following
    EXEC sp_configure 'max text repl size', -1 ;
    but still the table take around 80% of the replication time.
    Can someone point me to other areas / best practices / articles to improve Replication performance?
    Sreedhar

    You need to determine why it is taking so long to replicate.
    If it during snapshot application? If so use the initialize from backup option. Is it after the snapshot has been deployed?
    Then you need to use tracer tokens to see if it is the log reader agent or the distribution agent. There is not a lot you can do with the log reader agent and it is not normally the bottleneck. It is likely with the distribution agent.
    If so, I would first try to factor out the network. Replicate this table locally and see if you still have the same latency. if you don't it is the network and you need to try to minimize the network impact. Use a pull subscription and use a WAN accelerator.
    These will have more impact than setting the network packet size.
    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

  • Transactions using SQL Server 2005

    Hi,
    I use SBO 2005A, with SP01 and PL04. I have just realized that I can't use transactions (company object) because SQL Server 2005 doesn't support them. Help file says:
    "Using a meta data object in a transaction is available only while working with MSSQL 2000 bdatabase. For DB2, Sybase, and MSSQL 2005 databases this meta data objects are not applicable due to database limitations."
    Is there any way to use transactions in this DataBase??
    Thanks in advance,
    Dulce.

    "Metadata" in B1 / DI API means User-Defined Fields (UDF) / User-Defined Tables (UDT) / User-Defined Keys / User-Defined Objects (UDO)...
    ...which are used to administrate (add/update/remove) such DB objects which can be defined through the B1 aplication or DI API (not through DI Server).
    Usually Add-Ons use these "matadata" objects to add UDFs, UDTs etc.
    Besides adding the real DB objects to the DB some additional information is kept in administrative tables inside the particular company DB: UDFs => CUFD, UFD1; UDT => OUTB etc....
    This is NOT about the data inside a UDT (or in UDFs)!!!
    HTH

  • Cannot set Start Mode using SQL Server Configuration Manager

    I have SQL Server 2012 Express installed on Windows 8.1 and am trying to change the Start Mode to Manual using SQL Server Configuration Manager. However, when I open the Properties dialog and use the drop-down for Start Mode on the Service tab the drop-down
    is inoperative. A "vertical bar" appears but no options.
    Is there some other way that I can change the Start Mode?

    I have SQL Server 2012 Express installed on Windows 8.1 and am trying to change the Start Mode to Manual using SQL Server Configuration Manager. However, when I open the Properties dialog and use the drop-down for Start Mode on the Service tab the drop-down
    is inoperative. A "vertical bar" appears but no options.
    Is there some other way that I can change the Start Mode?
    I have seen that on my laptop as well and it was due to display /resolution setting. Please see if that helps you. BTW, as already answered, services.msc is another way of changing it.
    Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Windows 8 Photo gallery can't start because Microsoft SQL server 2005 compact edition is missing?

    I've installed & uninstalled MS SqlSever 2005 in my system (OS - Windows 8). When am try to access my photo gallery on desktop, I'm getting above mentioned error. How come photo gallery is dependent on MS SqlServer 2005 compact edition?  Now,
    I've installed & using MS SqlServer 2008.

    ErikEJ,
    I tried the link you provided and it points to the SQL Server 2005 Compact Edition that will not install in Windows 8. IS there some other package you are trying to send us to? I cannot install / run Photo Gallery because it needs SQL Server 2005 Compact
    Ed and the latter when run reports it is not compatible with my operating system, ie., Windows 8 Pro, x64.
    Can you help?
    TigerWizard
    Brenda W [email protected]; [email protected]

  • Sql server will not start - Database 'model' cannot be opened. It is in the middle of a restore.

    Sql server service will not start after server reboot:
    2009-08-13 14:15:43.94 spid7s      SQL Trace ID 1 was started by login "sa".
    2009-08-13 14:15:43.97 spid7s      Starting up database 'mssqlsystemresource'.
    2009-08-13 14:15:43.97 spid7s      The resource database build version is 10.00.1600. This is an informational message only. No user action is required.
    2009-08-13 14:15:44.30 Server      A self-generated certificate was successfully loaded for encryption.
    2009-08-13 14:15:44.30 spid7s      Server name is 'WIN-37R9WFWAJIB\MSDB1'. This is an informational message only. No user action is required.
    2009-08-13 14:15:44.32 spid10s     Starting up database 'model'.
    2009-08-13 14:15:44.32 Server      Server is listening on [ 'any' <ipv6> 49167].
    2009-08-13 14:15:44.33 Server      Server is listening on [ 'any' <ipv4> 49167].
    2009-08-13 14:15:44.33 Server      Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\MSDB1 ].
    2009-08-13 14:15:44.33 Server      Server named pipe provider is ready to accept connection on [ \\.\pipe\sql\query ].
    2009-08-13 14:15:44.35 spid10s     The database 'model' is marked RESTORING and is in a state that does not allow recovery to be run.
    2009-08-13 14:15:44.38 Server      Server is listening on [ ::1 <ipv6> 49168].
    2009-08-13 14:15:44.38 Server      Server is listening on [ 127.0.0.1 <ipv4> 49168].
    2009-08-13 14:15:44.38 Server      Dedicated admin connection support was established for listening locally on port 49168.
    2009-08-13 14:15:44.39 spid10s     Error: 927, Severity: 14, State: 2.
    2009-08-13 14:15:44.39 spid10s     Database 'model' cannot be opened. It is in the middle of a restore.
    2009-08-13 14:15:44.49 spid10s     Could not create tempdb. You may not have enough disk space available. Free additional disk space by deleting other files on the tempdb drive and then restart SQL Server. Check for additional errors in the event log that may indicate why the tempdb files could not be initialized.
    2009-08-13 14:15:44.50 spid10s     SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informa
    there is plenty of room on the server, so i dont think its a disk space issue.  i am able to start the service as such:
    C:\Users\Administrator>net start MSSQL$MSDB1 /c /m /T3608
    The SQL Server (MSDB1) service is starting.
    The SQL Server (MSDB1) service was started successfully
    sqlcmd -e
    1> select name, status from sysdatabases;
    2> go
    select name, status from sysdatabases;
    name
                                                     status
    master
                                                           65544
    tempdb
                                                           65544
    model
                                                           65568
    msdb
                                                      1073807368
    SS_DBA_Dashboard
                                                      1073807368
    (5 rows affected)
    model is in RESTORING state and I dont know how to fix it.  I am running simple backups, so I have a somewhat recent backup of model.bak but when I attempt to restore it I get an error:
    1> restore database model
    2> go
    restore database model
    Msg 3112, Level 16, State 1, Server WIN-37R9WFWAJIB\MSDB1, Line 1
    Cannot restore any database other than master when the server is in single user
    mode.
    Msg 3013, Level 16, State 1, Server WIN-37R9WFWAJIB\MSDB1, Line 1
    RESTORE DATABASE is terminating abnormally.
    other forums suggest manually updating the status column but i dont know if my syntax is wrong or it just cant be done in sql server 2008:
    1> begin transaction
    2> update sysdatabases set status=16 where name='model'
    3> ;
    4> go
    begin transaction
    update sysdatabases set status=16 where name='model'
    Msg 4406, Level 16, State 1, Server WIN-37R9WFWAJIB\MSDB1, Line 2
    Update or insert of view or function 'sysdatabases' failed because it contains a
     derived or constant field.
    1>
    yet another forum suggested taking a cleanly shut down model.mdf and model.ldf from another sql server 2008 instance and placing those in the data directory while moving the 'restoring' ones to a backup location.  this didnt work either.  any help is appreciated im new to sql server and this is very frustrating!  thanks in advance!

    I have the same issue on SQL Server 2008R2, after a server reboot, but none of the NET START commands or command line attempts are successful to start the Service.
    NET START command results in "Access Denied" "System Error 5" and the Command line attempts result in
     Server      Error: 17058, Severity: 16, State: 1.
     Server      initerrlog: Could not open error log file ''.
    Any help?
    SQL Error log file:
    2011-03-29 16:50:49.40 Server      (c) Microsoft Corporation.
    2011-03-29 16:50:49.40 Server      All rights reserved.
    2011-03-29 16:50:49.40 Server      Server process ID is 7292.
    2011-03-29 16:50:49.40 Server      System Manufacturer: 'Dell Inc.', System Model: 'PowerEdge T710'.
    2011-03-29 16:50:49.40 Server      Authentication mode is MIXED.
    2011-03-29 16:50:49.40 Server      Logging SQL Server messages in file 'E:\MSSQL\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG'.
    2011-03-29 16:50:49.40 Server      This instance of SQL Server last reported using a process ID of 7448 at 3/29/2011 4:30:06 PM (local) 3/29/2011 8:30:06 PM (UTC). This is an informational message only; no user action is required.
    2011-03-29 16:50:49.40 Server      Registry startup parameters:
      -d E:\MSSQL\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\master.mdf
      -e E:\MSSQL\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG
      -l E:\MSSQL\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\mastlog.ldf
      -T 4616
    2011-03-29 16:50:49.42 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
    2011-03-29 16:50:49.42 Server      Detected 24 CPUs. This is an informational message; no user action is required.
    2011-03-29 16:50:49.84 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
    2011-03-29 16:50:49.84 Server      Lock partitioning is enabled.  This is an informational message only. No user action is required.
    2011-03-29 16:50:49.86 Server      Node configuration: node 0: CPU mask: 0x0000000000fff000:0 Active CPU mask: 0x0000000000fff000:0. This message provides a description of the NUMA configuration for this computer. This is an informational
    message only. No user action is required.
    2011-03-29 16:50:49.86 Server      Node configuration: node 1: CPU mask: 0x0000000000000fff:0 Active CPU mask: 0x0000000000000fff:0. This message provides a description of the NUMA configuration for this computer. This is an informational
    message only. No user action is required.
    2011-03-29 16:50:49.89 spid9s      Starting up database 'master'.
    2011-03-29 16:50:49.95 spid9s      CHECKDB for database 'master' finished without errors on 2011-03-18 08:46:34.257 (local time). This is an informational message only; no user action is required.
    2011-03-29 16:50:49.95 spid9s      FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'MSSQLSERVER'.
    2011-03-29 16:50:49.97 spid9s      SQL Trace ID 1 was started by login "sa".
    2011-03-29 16:50:49.97 spid9s      Starting up database 'mssqlsystemresource'.
    2011-03-29 16:50:49.99 spid9s      The resource database build version is 10.50.1600. This is an informational message only. No user action is required.
    2011-03-29 16:50:50.20 spid13s     Starting up database 'model'.
    2011-03-29 16:50:50.20 spid9s      Server name is 'XXXX'. This is an informational message only. No user action is required.
    2011-03-29 16:50:50.21 Server      The certificate [Cert Hash(sha1) "C41DC20703F049763778AC2842C3C8A3A2C6EED4"] was successfully loaded for encryption.
    2011-03-29 16:50:50.21 Server      Server is listening on [ 'any' <ipv6> 1433].
    2011-03-29 16:50:50.21 Server      Server is listening on [ 'any' <ipv4> 1433].
    2011-03-29 16:50:50.21 Server      Server local connection provider is ready to accept connection on [
    \\.\pipe\SQLLocal\MSSQLSERVER ].
    2011-03-29 16:50:50.21 Server      Server named pipe provider is ready to accept connection on [
    \\.\pipe\sql\query ].
    2011-03-29 16:50:50.21 Server      Server is listening on [ ::1 <ipv6> 1434].
    2011-03-29 16:50:50.21 spid13s     The database 'model' is marked RESTORING and is in a state that does not allow recovery to be run.
    2011-03-29 16:50:50.21 Server      Server is listening on [ 127.0.0.1 <ipv4> 1434].
    2011-03-29 16:50:50.21 spid13s     Error: 927, Severity: 14, State: 2.
    2011-03-29 16:50:50.21 spid13s     Database 'model' cannot be opened. It is in the middle of a restore.
    2011-03-29 16:50:50.21 Server      Dedicated admin connection support was established for listening locally on port 1434.
    2011-03-29 16:50:50.22 spid13s     Could not create tempdb. You may not have enough disk space available. Free additional disk space by deleting other files on the tempdb drive and then restart SQL Server. Check for additional errors in
    the event log that may indicate why the tempdb files could not be initialized.
    2011-03-29 16:50:50.22 spid13s     SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.

  • Start SQL Server in single user mode with parameter -m doesn't work well

    C:\Windows\system32>net start mssqlserver /m "Microsoft SQL Server Management St
    udio - Query"
    The SQL Server (MSSQLSERVER) service is starting.
    The SQL Server (MSSQLSERVER) service was started successfully.
    C:\Windows\system32>sqlcmd -S . -e
    1> go
    1> select @@servername;
    2> go
    select @@servername;
    myserver
    (1 rows affected)
    1>
    As you can see, I'm still able to connect with sqlcmd prompt to SQL Server. According production doc of SQL Server 2014, it should not be conncting by sqlcmd. it shall only be connected by SSMS.
    below the original doc on msdn:
    Start SQL Server in Single-User Mode
    Provide Feedback
    Under certain circumstances, you may have to start an instance of SQL Server
    in single-user mode by using the startup option -m. For
    example, you may want to change server configuration options or recover a
    damaged master database or other system database. Both actions require starting
    an instance of SQL Server in single-user mode.
    Starting SQL Server in single-user mode enables any member of the computer's
    local Administrators group to connect to the instance of SQL Server as a member
    of the sysadmin fixed server role. For more information, see Connect to
    SQL Server When System Administrators Are Locked
    Out.
    When you start an instance of SQL Server in single-user mode, note the
    following:
    Only one user can connect to the server.
    The CHECKPOINT process is not executed. By default, it is executed
    automatically at startup.
    Note
    Stop the SQL Server Agent service before connecting to an instance of SQL
    Server in single-user mode; otherwise, the SQL Server Agent service uses the
    connection, thereby blocking it.
    When you start an instance of SQL Server in single-user mode, SQL Server
    Management Studio can connect to SQL Server. Object Explorer in Management
    Studio might fail because it requires more than one connection for some
    operations. To manage SQL Server in single-user mode, execute Transact-SQL
    statements by connecting only through the Query Editor in Management Studio, or
    use the
    sqlcmd utility.
    When you use the -m option with sqlcmd or
    Management Studio, you can limit the connections to a specified client
    application. For example, -m"sqlcmd" limits connections to a
    single connection and that connection must identify itself as the
    sqlcmd client program. Use this option when you are starting
    SQL Server in single-user mode and an unknown client application is taking the
    only available connection. To connect through the Query Editor in Management
    Studio, use -m"Microsoft SQL Server Management Studio - Query".
    Shawn

    Hi Shawn Xiao,
    For starting SQL Server instance in single user mode, we can add –m; parameter in SQL Server Configuration Manager, also we can run CMD with ‘Run as administrator’ and input the following statement.
    NET START MSSQLSERVER /m
    I do a test in SQL Server 2014 Express version, after starting SQL with Single User Mode, SQL Server will only accept one connection. If you connect to SQL Server with a user account, the following error will occur.
    Login failed for user ‘domain\username’. Reason: Server is in single user mode. Only one administrator can connect at this time.
    However, in your situation, you can connect to SQL Server and run T-SQL statement successfully, it can be due to connection with the administrator account in your sqlcmd.
    For more information, you can review the following article.
    http://zarez.net/?p=117
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Service cannot be started. Microsoft.VirtualManager.DB.CarmineSqlException: Unable to connect to the VMM database. Ensure that the SQL Server is running and configured correctly

    Hi All,
    I am setting up SCVMM 2012 R2 in a production environment. Whenever I restart the SCVMM virtual machine the VMM service doesn't start automatically, I have to manually start it. I checked the VMM logs and in the event viewer i find the below error,
    Service cannot be started. Microsoft.VirtualManager.DB.CarmineSqlException: Unable to connect to the VMM database. Ensure that the SQL Server is running and configured correctly. ---> System.Data.SqlClient.SqlException: Cannot open database "VirtualManagerDB"
    requested by the login. The login failed. Login failed for user 'NXTRA\VMMSVC'. at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
    stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean&
    dataReady) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.Sq...
    I added the 'VMMSVC' account as db_owner and sysadmin and also NT_Authority\System with same permissions still the service doesn't start on the start up.
    I googled a lot and I find the threads with the error containing "General failure" but not with the above. Can someone please help me to find out why this error is occuring.
    Thanks,
    Ravi

    It's often only a problem of the service dependencies. SCVMM starts to fast, SQL server on the same machine in not initialized yet. Here are working service dependencies to ensure SQL server is initializes before SCVMM starts.
    You can set the service dependencies directly in regedit (as always: be careful modifying the registry ...)
    Here is the content of a reg file setting the dependency.
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SCVMMService]
    "DependOnService"=hex(7):53,00,51,00,4c,00,53,00,45,00,52,00,56,00,45,00,52,00,\
      41,00,47,00,45,00,4e,00,54,00,00,00,53,00,51,00,4c,00,42,00,72,00,6f,00,77,\
      00,73,00,65,00,72,00,00,00,53,00,51,00,4c,00,57,00,72,00,69,00,74,00,65,00,\
      72,00,00,00,4d,00,53,00,53,00,51,00,4c,00,46,00,44,00,4c,00,61,00,75,00,6e,\
      00,63,00,68,00,65,00,72,00,00,00,00,00

  • Calling/starting a report from Sql Server

    Hello.
    I have to get a storage movement starting from a Sql Server Platform.
    I found out the function BAPI_GOODSMVT_CREATE which, getting the main data from an internal
    table, could create a movement in MSEG/MKPF (I suppose, I haven’t used it yet).
    But if I create a report using BAPI_GOODSMVT_CREATE which gets the data from an internal table
    (filled by a Sql Server table), how can I tell to Sap to execute it?
    Is it the only way to schedule this report in SAP every (i.e.) 5 minutes reading if there are
    data in Sql Server?
    Isn’t there a “trigger” to start a report in SAP from Sql Server/Windows?

    Hello,
    It depends on what method you use to read data i.e. Data Context class, Entity Framework for SQL-Server we can get data directly from the database easily.
    The following has two very simply examples using data context classes and the same came be done with Entity Framework which has an even more powerful version of data context implementation under 6 and above
    Dim db As New DataClasses1DataContext
    Dim theCustomer As Customer = db.Customers.Where(Function(c) c.CustomerID = 999).FirstOrDefault
    If theCustomer IsNot Nothing Then
    ' use theCustomer which contains all columns
    Else
    ' do not use, customer not located
    End If
    Dim theCustomer1 As Customer =
    From c In db.Customers
    Where c.CustomerID = 999
    Select New Customer With
    .CompanyName = c.CompanyName,
    .ContactName = c.ContactName,
    .Orders = c.Orders
    ).FirstOrDefault
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Best size for VM SQL Server for a start or maybe Azure SQL Database?

    Hello Everyone,
    My question is quite general but some of You may have already considered similar issues. Let's say or assume I have the website and mobile application - social kind - used by:
    1. 10 K users
    2. 100 K users
    3. 1 K K users
    4. 20 K K users MAX
    I am strongly considering use of VM SQL Server mostly because of its PARTITIONING functionality, some advantages in the context of INDEXING compared to Azure SQL Database and JOBs availibility.
    Question: what would be the best size and count of VMs related to SQL Server for the start and later?
    Question 2 - I am able to move JOBs functionality to my Worker role if I wanted to consider use of Azure SQL Database. SQL Server still has at least those 2 advantages (Partitioning, better Indexing) - is it worth considering Azure SQL Database service for
    100 K users and more?
    Regards,

    Hello Jambor,
    Considering the number of users i wouldnt recommend an Azure SQL database, because of certain limitations like Max worker threads, Max sessions, etc. Also the maximum size of the database can be 500GB.
    Please refer http://msdn.microsoft.com/en-us/library/azure/dn741336.aspx and http://msdn.microsoft.com/en-us/library/azure/dn369873.aspx for the Azure SQL database options and limitations.
    If your application needs to scale-out, Azure SQL Databases are recommended. If it needs scaling-up - then the choice is SQL Server on Azure VM. Please refer http://azure.microsoft.com/blog/2012/06/26/data-series-sql-server-in-windows-azure-virtual-machine-vs-sql-database/
    and http://azure.microsoft.com/en-us/documentation/articles/data-management-azure-sql-database-and-sql-server-iaas/ for comparison.
    If you already have your application running successfully on your on-premise server, you could use a similar machine on Azure for hosting your SQL server instance. The options are at http://azure.microsoft.com/en-us/pricing/details/virtual-machines/. You could
    start with a SQL Server enterprise edition on an A3 VM and then scale-up as needed.
    Regards,
    Kumar Bijayanta

  • Start SQL Server Service in Remote Server using Command Prompt with Single User Mode

    Hi Folks, 
    I am able to STOP/START the Remote SQL Server Service using the following Command.
    sc \\RemoteServerName  START ServiceName 
    How to Start the Remote SQL Server Service using Single User Mode.
    sc \\RemoteServerName  START ServiceName  -m
    Narendran

    Hello,
    sqlservr.exe -m
    or
    sqlservr.exe -m -s       
    (for named instances)
    For more information:
    http://technet.microsoft.com/en-US/library/ms180965(v=SQL.105).aspx
    Configure Windows Firewall or security software properly.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Unable to protect SQL Server after adding SQL Aliases

    DPM 2012 R2 had been successfully backing up a Server 2012 R2 virtual machine running SQL Server 2012 SP2 with 3 databases. It had been working properly for several months, the Virtual Machine is running on a Hyper-V Cluster.
    Approximately a week ago we configured aliases for the various SQL databases to provide better resiliency in case of server failure.  IE, instead of connecting to SQL as ServerName\DatabaseA, you could connect to just DatabaseADNS.  Doing so we
    had to add extra IP addresses to the server's adapter.  Initially all the addresses were registering in DNS and Named Pipes was disabled in SQL Configuration Manager for the Databases so it led to some connection difficulties when trying to connect to
    the named instances (ServerName\DatabaseA).  We resolved this so that while the server's adapter has multiple IP address there is only one DNS entry for the ServerName and one entry for each Database in DNS.  Named pipes is enabled so SQL Manager
    can connect properly.
    Since Aliases were applied however DPM began failing on 2 of the 3 Databases.  It was unable to create recovery points.
    The connection to the DPM agent on the SQL Server is OK, but if you try to modify a protection group and browse to the SQL Server when you expand it it just displays an hourglass and will not error out or display ANY sources to backup.  Even after several
    hours.
    We stopped protection of all items on the SQL Server, uninstalled the DPM agent, restarted, re-installed the DPM agent, restarted.  Restarted DPM Server, and are still unable to protect ANY items of the SQL Server. 
    There are no errors in the event logs on either server I could find.  And I've watched the DPMRA service start on the SQL Server when the DPM Server attempts to query it, so there is some communication.  Any help would be appreciated as I am at
    a loss.

    After much testing and troubleshooting a solution was found.  Our configuration is apparently a perfect storm of settings that cause DPM issues.  Our SQL Server has multiple NICs (if one is disabled it begins working) Our SQL Server's multiple
    instance are all using the default port 1433 (if ports are set differently it works), and we are using TCP aliases for more than one instance (if only one, it works)
    Each instance in SQL Config manager is assigned a unique IP address, so our production NIC has multiple IPs, set this nic to NOT register in DNS.  Manually create a Static DNS entry for the server and each alias IP address.
    In SQL Config manager set a Named Pipe alias for each instance.  Be sure to do both 32 and 64 bit aliasing.
    On the SQL Server run cliconfg.exe and enable both TCP/IP and Named Pipe protocols.
    And DPM can now enumerate and backup the server again.

  • 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...

  • Welcome to the SQL Server Disaster Recovery and Availability Forum

    (Edited 8/14/2009 to correct links - Paul)
    Hello everyone and welcome to the SQL Server Disaster Recovery and Availability forum. The goal of this Forum is to offer a gathering place for SQL Server users to discuss:
    Using backup and restore
    Using DBCC, including interpreting output from CHECKDB and related commands
    Diagnosing and recovering from hardware issues
    Planning/executing a disaster recovery and/or high-availability strategy, including choosing technologies to use
    The forum will have Microsoft experts in all these areas and so we should be able to answer any question. Hopefully everyone on the forum will contribute not only questions, but opinions and answers as well. I’m looking forward to seeing this becoming a vibrant forum.
    This post has information to help you understand what questions to post here, and where to post questions about other technologies as well as some tips to help you find answers to your questions more quickly and how to ask a good question. See you in the group!
    Paul Randal
    Lead Program Manager, SQL Storage Engine and SQL Express
    Be a good citizen of the Forum
    When an answer resolves your problem, please mark the thread as Answered. This makes it easier for others to find the solution to this problem when they search for it later. If you find a post particularly helpful, click the link indicating that it was helpful
    What to post in this forum
    It seems obvious, but this forum is for discussion and questions around disaster recovery and availability using SQL Server. When you want to discuss something that is specific to those areas, this is the place to be. There are several other forums related to specific technologies you may be interested in, so if your question falls into one of these areas where there is a better batch of experts to answer your question, we’ll just move your post to that Forum so those experts can answer. Any alerts you set up will move with the post, so you’ll still get notification. Here are a few of the other forums that you might find interesting:
    SQL Server Setup & Upgrade – This is where to ask all your setup and upgrade related questions. (http://social.msdn.microsoft.com/Forums/en-US/sqlsetupandupgrade/threads)
    Database Mirroring – This is the best place to ask Database Mirroring how-to questions. (http://social.msdn.microsoft.com/Forums/en-US/sqldatabasemirroring/threads)
    SQL Server Replication – If you’ve already decided to use Replication, check out this forum. (http://social.msdn.microsoft.com/Forums/en-US/sqlreplication/threads)
    SQL Server Database Engine – Great forum for general information about engine issues such as performance, FTS, etc. (http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/threads)
    How to find your answer faster
    There is a wealth of information already available to help you answer your questions. Finding an answer via a few quick searches is much quicker than posting a question and waiting for an answer. Here are some great places to start your research:
    SQL Server 2005 Books Onlinne
    Search it online at http://msdn2.microsoft.com
    Download the full version of the BOL from here
    Microsoft Support Knowledge Base:
    Search it online at http://support.microsoft.com
    Search the SQL Storage Engine PM Team Blog:
    The blog is located at https://blogs.msdn.com/sqlserverstorageengine/default.aspx
    Search other SQL Forums and Web Sites:
    MSN Search: http://www.bing.com/
    Or use your favorite search engine
    How to ask a good question
    Make sure to give all the pertinent information that people will need to answer your question. Questions like “I got an IO error, any ideas?” or “What’s the best technology for me to use?” will likely go unanswered, or at best just result in a request for more information. Here are some ideas of what to include:
    For the “I got an IO error, any ideas?” scenario:
    The exact error message. (The SQL Errorlog and Windows Event Logs can be a rich source of information. See the section on error logs below.)
    What were you doing when you got the error message?
    When did this start happening?
    Any troubleshooting you’ve already done. (e.g. “I’ve already checked all the firmware and it’s up-to-date” or "I've run SQLIOStress and everything looks OK" or "I ran DBCC CHECKDB and the output is <blah>")
    Any unusual occurrences before the error occurred (e.g. someone tripped the power switch, a disk in a RAID5 array died)
    If relevant, the output from ‘DBCC CHECKDB (yourdbname) WITH ALL_ERRORMSGS, NO_INFOMSGS’
    The SQL Server version and service pack level
    For the “What’s the best technology for me to use?” scenario:
    What exactly are you trying to do? Enable local hardware redundancy? Geo-clustering? Instance-level failover? Minimize downtime during recovery from IO errors with a single-system?
    What are the SLAs (Service Level Agreements) you must meet? (e.g. an uptime percentage requirement, a minimum data-loss in the event of a disaster requirement, a maximum downtime in the event of a disaster requirement)
    What hardware restrictions do you have? (e.g. “I’m limited to a single system” or “I have several worldwide mirror sites but the size of the pipe between them is limited to X Mbps”)
    What kind of workload does you application have? (or is it a mixture of applications consolidated on a single server, each with different SLAs) How much transaction log volume is generated?
    What kind of regular maintenance does your workload demand that you perform (e.g. “the update pattern of my main table is such that fragmentation increases in the clustered index, slowing down the most common queries so there’s a need to perform some fragmentation removal regularly”)
    Finding the Logs
    You will often find more information about an error by looking in the Error and Event logs. There are two sets of logs that are interesting:
    SQL Error Log: default location: C:\Program Files\Microsoft SQL Server\MSSQL.#\MSSQL\LOG (Note: The # changes depending on the ID number for the installed Instance. This is 1 for the first installation of SQL Server, but if you have mulitple instances, you will need to determine the ID number you’re working with. See the BOL for more information about Instance ID numbers.)
    Windows Event Log: Go to the Event Viewer in the Administrative Tools section of the Start Menu. The System event log will show details of IO subsystem problems. The Application event log will show details of SQL Server problems.

    hi,I have a question on sql database high availability. I have tried using database mirroring, where I am using sql standard edition, in this database mirroring of synchronous mode is the only option available, and it is giving problem, like sql time out errors on my applicatons since i had put in the database mirroring, as asynchronous is only available on enterprise version, is there any suggestions on this. thanks ---vijay

Maybe you are looking for

  • Dynamic File name for Open Hub file

    Hi All, I wanted to create a .csv file using open hub destination. I wanted the name of the file to be dynamic based on month. for example in jan I wanted it as 01.Dump for January and 02.Dump for february. is is possible at all to do that.I wanted t

  • Webcam shows gray box instead of image on a G455 using Ubuntu 10.10

    I upgraded from ubuntu 10.04 and my webcam started going in and out showing a gray box, I updated my xorg and now the gray box is always there. If I right click where the image is supposed to be I can see a fragment of the image but nothing more and

  • Issue in reverse engineering the model source is excel

    Hi Everyone, I am new to ODI, i am trying to export the excel file data into oracle table. For doing this created physical and logical schema for Excel file and Oracle database. Tried to created a Model and reverse engineer the excel file to get the

  • I wish there was a phone like this

    I will share how I imagine my dream phone: It's would be a regular mid-ranger, basically a Z3 compact with mid-ranged specs It should fit one hand, so it shouldnt be any bigger than current Z compact series 4.6-4.7 inch HD(720 x 1280 pixels) screen w

  • The image exceeds the size Save for Web & Devices was designed for

    I just upgraded from CS3 to CS5. I assumed that Save for Web & Devices would have been redesigned so that it would not complain with modern large photos that they were just too big! However, it still does. I just don't get this. Photoshop in general