Monitoring the SQL Server after deploying schemas (tables)

Hi,
I will be deploying 8 schema which will create two tables in two databases. I am required to monitor the server for few days, whether it is performing well or anything is breaking. There will be other tables also which will be in replication chain, but these
tables will be just at subscriber level. Please, suggest me, how to exactly monitor how the two tables are performing, if that is working fine or it is breaking anything.
Production Environment.
Thanks,

hi Ajay,
you can try server-side SQL trace.
http://www.sommarskog.se/sqlutil/sqltrace.html.
And beta_lockinfo:
http://www.sommarskog.se/sqlutil/beta_lockinfo.html

Similar Messages

  • Should I monitor the SQL Server tempdb for user activity?

    I am currently auditing all databases on SQL Server 2008 R2 for specific events ( database accounts related activity) . I get alot of events generated for
    tempdb. I am monitoring the following events 47, 102, 103, 104, 105, 108, 109, 110, 111, 113, 117, 130, 170, 171, 173, 176 is what I am monitoring.
    Do I need to monitor tempdb or is it alright to exclude the
    tempdb?
    Thanks in advance.

    What is your tempdb configuration? Is it located on separated physical drives? Are you observing bottleneck on tempdb?
    --user sessions that are
     --allocating internal objects, including currently active tasks
    SELECT  
        t1.session_id, 
        (t1.internal_objects_alloc_page_count + task_alloc) as allocated, 
        (t1.internal_objects_dealloc_page_count + task_dealloc) as     
        deallocated  
    from sys.dm_db_session_space_usage as t1,  
        (select session_id,  
            sum(internal_objects_alloc_page_count) 
                as task_alloc, 
        sum (internal_objects_dealloc_page_count) as  
            task_dealloc  
          from sys.dm_db_task_space_usage group by session_id) as t2 
    where t1.session_id = t2.session_id and t1.session_id >50 
    order by allocated DESC
    the allocation bottleneck is caused 
    when allocation structures are accessed
     by concurrent threads in conflicting modes. 
    Since the database id of TempDB is 2,
     the search argument ‘2.%’ represents any page 
    in TempDB across any file. If this page happens 
    to be GAM, SGAM or PFS, it will represent allocation bottleneck. 
    Note, in a concurrent application, some blocking is expected so
     you will need to baseline the allocation waits when your 
    application is performing normally. 
    Only when the waits exceed the baseline significantly,
     it signals that you are incurring allocation bottleneck.
    select   session_id, wait_duration_ms,   resource_description 
          from    sys.dm_os_waiting_tasks
          where   wait_type like 'PAGE%LATCH_%' and
                  resource_description like '2:%'
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • I am trying to have access tables of the Sql Server through the Oracle

    I am trying to have access tables of the Sql Server through the Oracle and this being occurred the error:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Generic Connectivity using ODBC][H006] The init parameter <HS_FDS_CONNECT_INFO> is not set.
    Please set it in init <orasid>.ora file.
    ORA-02063: preceding 2 lines from HSMSQL
    I created the ODBC with name HSMSQL.
    I made all the configurations in the archives
    tnsnames.ora:
    HSMSQL=
    (DESCRIPTION=
    (ADDRESS= (PROTOCOL = tcp)(HOST = wsus)(PORT = 1521))
    (CONNECT_DATA =
    (SID = HSMSQL)
    (HS = OK)
    listener.ora:
    (SID_DESC = (SID_NAME=HSMSQL)
    (ORACLE_HOME= C:\oracle\ora92)
    (PROGRAM =hsodbc)
    initHS_SID.ora:
    HS_FDS_CONNECT_INFO = HSMSQL
    HS_FDS_TRACE_LEVEL = OFF
    -- Create database link
    create database link HSMSQL.US.ORACLE.COM
    connect to TESTE identified by TESTE2
    using 'HSMSQL';
    But when I execute query the error occurs:
    Select * from TabTeste@HSMSQL
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Generic Connectivity using ODBC][H006] The init parameter <HS_FDS_CONNECT_INFO> is not set.
    Please set it in init <orasid>.ora file.
    ORA-02063: preceding 2 lines from HSMSQL
    Please they help me, thanks, Paulo.

    Hi,
    It seems that your configuration is Ok. By the way, the workaround for this error is:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Transparent gateway for ODBC][H001] The environment variable <HS_FDS_CONNECT_INFO> is not set.
    * Set HS_FDS_CONNECT_INFO in the hs{sid}init.ora file to the data source name.
    Example: HS_FDS_CONNECT_INFO = <ODBC DataSource Name>
    * Make sure the hs{sid}init.ora file exists in the ORACLE_HOME/hs/admin directory and has the same name as the SID in the LISTENER.ORA.
    Example: If SID=hsodbc in the listener.ora file, then the hs{sid}init.ora file would be named ORACLE_HOME/hs/admin/inithsodbc.ora
    For more information see if this [url http://forums.oracle.com/forums/thread.jspa?forumID=61&threadID=576975]thread can help you.
    Cheers

  • Storing the file in to the sql server 2005 table

    hi,every body...
    in my appliaction i need to store the files.
    i have searched the net but only i found as BLOB(Binary L:arge OBject) is the solution,
    how to use this blob...technique..
    can any one send some sample of code to explain.......
    how to insert a file and how to retrive the inserted file from the SQL SERVER 2005...
    thanks in advance..

    yes, ur rite thse two methods are available..
    but i didnt understand that..the method setBinaryStream() accepts 3 parameters
    the last parameter which i know that.. size of the file of int type rite?
    can u give some more information regarding this..
    thanks ..

  • How come the SQL Server Business Intelligence Studio will not recognize my AdventureWorksDW after installation?

    I am trying to do the tutorial for SQL Server Business Intelligence Studio, but I can't get the AdventureWorksDW to be recognized by it, when I try to connect to it. 
    I have tried to shut down, restart, downloaded a couple of different versions of AdventureWorksDW (I believe 2008 is the one I need), and tried to attach this AdventureWorksDW using SQL Server Management Studio 2008R2, but I cannot even do that! The instructions
    for attaching a DB tell me to open Management Studio, then open a connection instance.  But then I cannot find the database button to right click on, or the attach item in the menu that is supposed to be there with it. 
    I had installed AdventureWorks2008R2 previously and the SQL Server BIDS sees that, but of course I cannot do the tutorial without some serious mods if I do that. I have rebooted computer, closed and reopened the BIDS app, deleted and re-created the
    OLE-DB connection in BIDS, but nothing works. What am I doing wrong? I've worked in mostly the Oracle world for most of my career so I'm not new to either DW or relational DB, but this one is driving me to pull my hair. Any help greatly appreciated!
    Badger

    Thank you!  Is this correct?
     CREATE DATABASE AdventureWorksDW2008R2_data
    ON
    (FILENAME
    =
    'C:\SSIS Downloads\AdventureWorksDW2008R2_Data')
    FOR
    ATTACH_REBUILD_LOG
    I tried this and it gives me a cannot find file specified error, but my file IS located at
    C:\SSIS Downloads
    error is:
    Msg 5120, Level 16, State 101, Line 1
    Unable to open the physical file "C:\SSIS Downloads\AdventureWorksDW2008R2_Data". Operating system error 2: "2(The system cannot find the file specified.)".
    I will continue to play with it, thanks very much!
    Try as below,
    sp_attach_single_file_db 'AdventureWorksDW2008R2'
        ,'C:\SSIS Downloads\AdventureWorksDW2008R2_Data.mdf'
    Note: If you get any security issue then refer this link
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/232e4aaf-73cf-4eb8-9f6c-6a4fc91a6036/i-cant-attach-mdf-operating-system-error5
    Regards, RSingh

  • DPM failing SQL backups due to error: "the SQL Server instance refused a connection to the protection agent. (ID 30172 Details: Internal error code: 0x80990F85)

    I ran across this error starting on 6/4/2011 and have been unable to find the root of the problem.  In our environment, we have a DPM 2010 server dedicated to backing up all our SQL envrionment (about 45 SQL Servers total).  All of the SQL
    environment is backing up fine except for a SQL Cluster Application.  This particular SQL Instances is part of a 6 node failover cluster with 6 SQL Instances distributed amongst them.  The other 5 SQL instances in the cluster are backing
    up fine; only one instance is failing.  The DPM Alerts section shows this error when attempting to do a SQL backup of one of the databases on this SQL instance:
    Affected area: KEN-PROD-VDB001\POSREPL1\master
    Occurred since: 6/11/2011 11:00:56 PM
    Description: Recovery point creation jobs for SQL Server 2008 database KEN-PROD-VDB001\POSREPL1\master on SQL Server (POSREPL1) - Store Settings.ken-prod-cl004.aarons.aaronrents.com have been failing. The number of failed recovery point creation jobs =
    4.
     If the datasource protected is SharePoint, then click on the Error Details to view the list of databases for which recovery point creation failed. (ID 3114)
     The DPM job failed for SQL Server 2008 database KEN-PROD-VDB001\POSREPL1\master on SQL Server (POSREPL1) - Store Settings.ken-prod-cl004.aarons.aaronrents.com because the SQL Server instance refused a connection to the protection agent. (ID 30172 Details:
    Internal error code: 0x80990F85)
     More information
    Recommended action: This can happen if the SQL Server process is overloaded, or running short of memory. Please ensure that you are able to successfully run transactions against the SQL database in question and then retry the failed job.
     Create a recovery point...
    Resolution: To dismiss the alert, click below
     Inactivate alert
    I have checked the cluster node this particular SQL instance is running on using Perfmon and the machine is nowhere near capacity on CPU, memory, network, or Disk I/O.  I have failed this SQL Application to another node in the cluster and
    receive the same error (this other node has another clustered SQL application on it that is actively running as well as backing up fine).  The only thing that I am aware of that has changed is that we installed SP2 for SQL 2008 about 2 weeks prior
    to when the failures started to occur.  However, we updated all six clustered SQL Instances at the same time and only this one is having this issue so I don't believe that caused the problem.  We are running SQL 2008 SP2 (version 10.0.4000.0)
    on all clustered instances along with DPM 2010 (version 3.0.7696.0) on this particular DPM server that has the issue.
    One last thing, I have also noticed errors in the event log pertaining to the same SQL backups that are failing (but the time stamps are not concurrent with each backup attempt):
    Log Name:      Application
    Source:        MSDPM
    Date:          6/13/2011 1:09:12 AM
    Event ID:      4223
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      KEN-PROD-BS002.aarons.aaronrents.com
    Description:
    The description for Event ID 4223 from source MSDPM cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event:
    DPM writer was unable to snapshot the replica of KEN-PROD-VDB001\POSREPL1\model. This may be due to:
    1) No valid recovery points present on the replica.
    2) Failure of the last express full backup job for the datasource.
    3) Failure while deleting the invalid incremental recovery points on the replica.
    Problem Details:
    <DpmWriterEvent><__System><ID>30</ID><Seq>1833</Seq><TimeCreated>6/13/2011 5:09:12 AM</TimeCreated><Source>f:\dpmv3_rtm\private\product\tapebackup\dpswriter\vssfunctionality.cpp</Source><Line>815</Line><HasError>True</HasError></__System><DetailedCode>-2147212300</DetailedCode></DpmWriterEvent>
    the message resource is present but the message is not found in the string/message table
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="MSDPM" />
        <EventID Qualifiers="0">4223</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2011-06-13T05:09:12.000000000Z" />
        <EventRecordID>68785</EventRecordID>
        <Channel>Application</Channel>
        <Computer>KEN-PROD-BS002.aarons.aaronrents.com</Computer>
        <Security />
      </System>
      <EventData>
        <Data>DPM writer was unable to snapshot the replica of KEN-PROD-VDB001\POSREPL1\model. This may be due to:
    1) No valid recovery points present on the replica.
    2) Failure of the last express full backup job for the datasource.
    3) Failure while deleting the invalid incremental recovery points on the replica.
    Problem Details:
    &lt;DpmWriterEvent&gt;&lt;__System&gt;&lt;ID&gt;30&lt;/ID&gt;&lt;Seq&gt;1833&lt;/Seq&gt;&lt;TimeCreated&gt;6/13/2011 5:09:12 AM&lt;/TimeCreated&gt;&lt;Source&gt;f:\dpmv3_rtm\private\product\tapebackup\dpswriter\vssfunctionality.cpp&lt;/Source&gt;&lt;Line&gt;815&lt;/Line&gt;&lt;HasError&gt;True&lt;/HasError&gt;&lt;/__System&gt;&lt;DetailedCode&gt;-2147212300&lt;/DetailedCode&gt;&lt;/DpmWriterEvent&gt;
    </Data>
        <Binary>3C00440070006D005700720069007400650072004500760065006E0074003E003C005F005F00530079007300740065006D003E003C00490044003E00330030003C002F00490044003E003C005300650071003E0031003800330033003C002F005300650071003E003C00540069006D00650043007200650061007400650064003E0036002F00310033002F003200300031003100200035003A00300039003A0031003200200041004D003C002F00540069006D00650043007200650061007400650064003E003C0053006F0075007200630065003E0066003A005C00640070006D00760033005F00720074006D005C0070007200690076006100740065005C00700072006F0064007500630074005C0074006100700065006200610063006B00750070005C006400700073007700720069007400650072005C00760073007300660075006E006300740069006F006E0061006C006900740079002E006300700070003C002F0053006F0075007200630065003E003C004C0069006E0065003E003800310035003C002F004C0069006E0065003E003C004800610073004500720072006F0072003E0054007200750065003C002F004800610073004500720072006F0072003E003C002F005F005F00530079007300740065006D003E003C00440065007400610069006C006500640043006F00640065003E002D0032003100340037003200310032003300300030003C002F00440065007400610069006C006500640043006F00640065003E003C002F00440070006D005700720069007400650072004500760065006E0074003E00</Binary>
      </EventData>
    </Event>
    Any help would be greatly appreciated!

    Don't know if this helps or not, but I also noticed another peculiar issue that is derived from this problem.  If I go to "Modify protection group", then expand the cluster, then expand all six nodes in the cluster, five of them show "All SQL Servers"
    and allow me to expand the SQL Instance and show all databases; the one that is having a problem backing up, when I expand the node, doesn't even show that SQL exists on the node, when in fact, it does.
    I would also like to add that the databases on this node that will not backup are running fine.  They run hundreds of transactions daily so we know SQL itself is OK.  Even though it is a busy SQL Server, there is plenty of available resources as
    the SQL buffer and memory counters show the node is not under durress.

  • Monitor the sql and binding data

    who can tell me the sql to monitor the sql and binding data in sqlplus.
    or other oracle utilitis.
    thanks in advance.

    Hi Adam,
    Thanks,
    I can create the dimension, hierarchy, level, measure, Cubes etc using SQL Developer. I guess I am right what I have written.
    But I have created all these using AWM tool. Now Can I see the exact sql and data for all behind each? As I have developed it through AWM tool.
    I can see a view called Cubename_view. Is it the required view generated for the Cube. If Yes, Still I cant see any data in that View after creating and maintaining a Cube.
    Below is the sql that is generated for that particular view.
    CREATE OR REPLACE FORCE VIEW "CEMS"."MTN_CUBE_VIEW" ("MT_VOICE_ERROR_COUNT", "MO_VOICE_ERROR_COUNT", "DATA_ERROR_COUNT", "RECHARGE_ERROR_COUNT", "SUBSCRIBER", "HANDSET", "CELL", "TIME") AS
    SELECT
    *"MT_VOICE_ERROR_COUNT",*
    *"MO_VOICE_ERROR_COUNT",*
    *"DATA_ERROR_COUNT",*
    *"RECHARGE_ERROR_COUNT",*
    *"SUBSCRIBER",*
    *"HANDSET",*
    *"CELL",*
    *"TIME"*
    FROM TABLE(CUBE_TABLE('"CEMS"."MTN_CUBE"') )
    Thanks.
    DKS

  • SQL Server 2012 deployment with System Center Configuration Manager (SCCM) 2012

    hi,
    we have tried to deploy the SQL Server 2012 to our development machines with SCCM 2012 without success.
    Commandline parameters or Configuration.ini in either case the installation failed without any useful errorlog.
    Exists any howto which covers this scenario?
    regards
    genne

    Hello,
    Please see the following article about some requirements for SQL Server instances intended for SCCM 2012:
    http://www.sqlcoffee.com/Tips0019.htm
    Could please check to see if a Summary.txt log file exists after those installation attempts? The following article may help you locate the file on disk:
    http://technet.microsoft.com/en-us/library/ms143702(v=sql.110)
    Please share this log file with us, if possible.
    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.

  • 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

  • I cannot start the "SQL Server Reporting Services (SCE)" service

    Attempts to run any of the Windows Computer Reports fail with an error:
    Date: 10/29/2008 10:19:30 AM
    Application: System Center Essentials
    Application Version: 6.0.1251.0
    Severity: Error
    Message: Cannot initialize report.
    Microsoft.Reporting.WinForms.ReportServerException: The Report Server Windows service 'ReportServer$SCE' is not running. The service must be running to use Report Server. (rsReportServerServiceUnavailable)
       at Microsoft.Reporting.WinForms.ServerReport.GetExecutionInfo()
       at Microsoft.Reporting.WinForms.ServerReport.GetParameters()
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Reporting.Parameters.ReportParameterBlock.Initialize(ServerReport serverReport)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ReportForm.SetReportJob(Object sender, ConsoleJobEventArgs args)
    My attempts to start the "SQL Server Reporting Services (SCE)" service fail with an error:
    Could not start the SQL Server Reporting Service (SCE) service on Local Computer.
    Error 1053: The service did  not respond to the start or control request in a timely fashion.
    The application log in the event viewer has hundreds of instances of Event ID 107:
    Event Type: Error
    Event Source: Report Server (SCE)
    Event Category: Management
    Event ID: 107
    Date:  10/29/2008
    Time:  10:36:25 AM
    User:  N/A
    Computer: DC
    Description:
    Report Server (SCE) cannot connect to the report server database.  For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Please help.

    Thanks for the link to the Reporting Services forum.  I found the fix in this thread:
    https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3644545&SiteID=1
    I had to create a registry key and reboot:
    1.
    Click Start, click Run, type regedit, and then click OK.
    2.
    Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
    3.
    In the right pane, locate the ServicesPipeTimeout entry.
    Note If the ServicesPipeTimeout entry does not exist, you must create it. To do this, follow these steps:
    a.
    On the Edit menu, point to New, and then click DWORD Value.
    b.
    Type ServicesPipeTimeout, and then press ENTER.
    4.
    Right-click ServicesPipeTimeout, and then click Modify.
    5.
    Click Decimal, type 60000, and then click OK.
    This value represents the time in milliseconds before a service times out.
    6.
    Restart the computer.
    After the reboot, the service was running.  Thanks for your help with this.

  • Error starting the Application Server and Deployment Tool

    After installing the iPlanet Aplication Server with sp3 I get the following
    errors starting the Application Server and Deployment Tool.
    iAS Application Server
    ================
    GXBindInit: GXBindBasic failed
    GXContextInit: GXBindInit failed 2
    [26/Out/2001 17:46:49:8] error: ENGINE-context_init_failed: EngineClassSpace
    ContextModule.createContextInit failed:
    error: could not get context
    *** Errors in initialization from registry ***
    Errors in initialization, exiting ...
    iAS Deployment Tool
    ===============
    GXBindInit: GXBindBasic failed
    GXContextInit: GXBindInit failed 2
    [26/Out/2001 17:23:40:7] error: ENGINE-context_init_failed: EngineClassSpace
    ContextModule.createContextInit failed:
    Exception in thread "main" java.lang.NullPointerException
    at com.kivasoft.util.Util.loadComponent(Unknown Source)
    at
    com.iplanet.ias.tools.buzz.ui.application.StartBuzz.initGDS(Unknown Source)
    at com.iplanet.ias.tools.buzz.ui.application.StartBuzz.main(Unknown
    Source)
    Can anyone help me please!

    Hi,
    Would be more helpful if you can mention, the O/S. Also, pls mention where
    you are getting this error, at kjs or kxs, or, are you able to start the server
    and at which specific instance do you encounter this.
    Regards
    Raj
    "Antonio Casqueiro" wrote:
    After installing the iPlanet Aplication Server with sp3 I get the following
    errors starting the Application Server and Deployment Tool.
    iAS Application Server
    ================
    GXBindInit: GXBindBasic failed
    GXContextInit: GXBindInit failed 2
    [26/Out/2001 17:46:49:8] error: ENGINE-context_init_failed: EngineClassSpace
    ContextModule.createContextInit failed:
    error: could not get context
    *** Errors in initialization from registry ***
    Errors in initialization, exiting ...
    iAS Deployment Tool
    ===============
    GXBindInit: GXBindBasic failed
    GXContextInit: GXBindInit failed 2
    [26/Out/2001 17:23:40:7] error: ENGINE-context_init_failed: EngineClassSpace
    ContextModule.createContextInit failed:
    Exception in thread "main" java.lang.NullPointerException
    at com.kivasoft.util.Util.loadComponent(Unknown Source)
    at
    com.iplanet.ias.tools.buzz.ui.application.StartBuzz.initGDS(Unknown Source)
    at com.iplanet.ias.tools.buzz.ui.application.StartBuzz.main(Unknown
    Source)
    Can anyone help me please!

  • Error starting the Application Server and Deployment Tool in Windows 2000

    After installing the iPlanet Aplication Server with sp3 in Windows 2000 I
    get the following
    errors starting the Application Server and Deployment Tool.
    iAS Application Server
    ================
    GXBindInit: GXBindBasic failed
    GXContextInit: GXBindInit failed 2
    [26/Out/2001 17:46:49:8] error: ENGINE-context_init_failed: EngineClassSpace
    ContextModule.createContextInit failed:
    error: could not get context
    *** Errors in initialization from registry ***
    Errors in initialization, exiting ...
    iAS Deployment Tool
    ===============
    GXBindInit: GXBindBasic failed
    GXContextInit: GXBindInit failed 2
    [26/Out/2001 17:23:40:7] error: ENGINE-context_init_failed: EngineClassSpace
    ContextModule.createContextInit failed:
    Exception in thread "main" java.lang.NullPointerException
    at com.kivasoft.util.Util.loadComponent(Unknown Source)
    at
    com.iplanet.ias.tools.buzz.ui.application.StartBuzz.initGDS(Unknown Source)
    at com.iplanet.ias.tools.buzz.ui.application.StartBuzz.main(Unknown
    Source)
    Can anyone help me please!

    Okay, pls check that you are logged in as administrator and installed and now you are logged in as administrator and registering the iAS server. Did you get any installation failures while installing and are you able to register the server using iASAT ?

  • Add multiple users to a certain database in the SQL server in one go

    I wonder if there is any method to add multiple users to a certain database in the SQL server in one go and without using transact code.
    I can add a single user to a certain database “Q” for example by right click on the user “U1” for example then properties then in user mapping tab select
    the database “Q”, so there should be a method to add multiple users ( U1,U2,U3…) to this database?
    Best Regards,
    Ahmad

    Many thanks Visakh16,
    I can do this using the below script, but what I am searching for is do to this without any scripting.
    USE TestDatabase; --Make sure you have the right database
    DECLARE @sql VARCHAR(MAX) = '';
    SELECT @sql = @sql + 'CREATE USER ' + name + ' FOR LOGIN ' + name + ';
    ' +
    'GRANT CREATE TABLE, CREATE PROCEDURE, CREATE VIEW, VIEW DEFINITION TO ' + name + ';
    FROM sys.server_principals p
    WHERE p.type in ('S','U') -- SQL Logins and Windows Login. Do not change!
    and p.name in ('U1','U2','U3'); -- List of names to add. alter to suit
    PRINT @sql; -- Show the statements being executed in the messages pane
    EXEC(@sql); -- Run the statements that have been built
    Thanks,
    Ahmad

  • CLR to get the SQL Server Data into .CSV File

    Hi,
    I transformed 10 columns 1000 rows from the source table to 1 column 1000 rows in the destination table by making the comma separated columns ( Just like ..
    Insert into DestinationTable
    SELECT col1+','+col2 ....
    FROM SourceTable
    Then I want to take this column into CSV file.
    I dont have the rights to command shell.
    I heard that we may use CLR procedure for this. Can someone throw light?

    using System;
    using System.IOM
    using System.Data;
    using System.Data.SqlClient;
    using System.Data.SqlTypes;
    using Microsoft.SqlServer.Server;
    public class ExportFileClass {
    [Microsoft.SqlServer.Server.SqlProcedure]
    public static void export_file()
    using (SqlConnection connection = new SqlConnection(
    "context connection=true"))
    connection.Open();
    // Operation to open file goes here.
    SqlCommand command = new SqlCommand("SELECT col FROM YourTable");
    // Consume result set and write rows.
    Build this from the command line:
    sn -k keypair.snk
    csc /target:library /keyfile:keypair.snk exportfile.cs
    Then run in SQL Server (assuming that the files are in C:\temp on the SQL
    Server machine:
    [sql]
    USE master
    go
    -- To be able to create an external-access assembly, we need to load
    -- the key, the assembly is signed with. The key needs a password, but we
    -- don't need to know the password.
    DECLARE @sql nvarchar(MAX),
            @password char(40)
    SELECT @password = convert(char(36), newid()) + 'Ab4?'
    SELECT @sql = 'CREATE ASYMMETRIC KEY slog_loopback FROM FILE = ' +
                  '''C:\temp\keypair.snk'' ' +
                  'ENCRYPTION BY PASSWORD = ''' + @password + ''''
    PRINT @sql
    EXEC(@sql)
    -- And then a login to carry the permission.
    CREATE LOGIN exportfile$asymkey FROM ASYMMETRIC KEY ExportFile
    GRANT EXTERNAL ACCESS ASSEMBLY TO exportfile$asymkey
    go
    -- Now we can go back to our regular database and create the assembly.
    USE youddatabase
    go
    CREATE ASSEMBLY ExportFile FROM 'C:\temp\exportfile.dll'
    WITH PERMISSION_SET = EXTERNAL_ACCESS
    go
    CREATE PROCEDURE ExportFile AS
    EXTERNAL NAME ExportFile.ExportFileClass.export_file
    [sql]
    It is likely that you will have to do ask your DBA to do things in the
    master database.
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for

  • IPod Touch 4th Gen iOS5 not synching on 64-Bit Windows 7 computer

    I've been plagued with this problem ever since the iOS 5 update. To begin with I could not update to iOS5 with my main computer(Windows7 64-Bit) at ALL(the update would stop making progress when attempting to backup). I was having the same problem th

  • My PC Freezes when I plug in my IPod Nano!!! Please HELP!!!!

    Hello, I just bought a refurbished ipod nano and everything works fine until I plug it into my computer I do not know what to do please help me. P.S. If this has been brought up already I am sorry I didn't have time to search for it. Thanx

  • Transfer of apps from ipod to itunes

    i click on 'file' then 'devices' then onto ' transfer purchases from my ipod' one i click on that it says: 'some of the purchased items could not be transfered to your itunes library because you are not authorised for them on this computer' then it s

  • Score Report available in MCP site

    The location where I do my tests sometimes can't print the score report and when print its completely unreadable. Would be nice to have access to report in MCP site. to Save PDF´s and my my history. We also need some improvements on MCP site, its slo

  • Notiifcation Long text not grey out

    Guru I have seen the Notification Long text screen grey out once the user saves and log out. When next user enters he wil not b able to chnage the contents entered by previous user. This is not actually hapening in my case...The screen and info enter