Access to view blocking sessions in sql server 2008

Hi,
One of my client wrote a stored procedure. we scheduled this SP in a job. while job is running, it is blocking other sessions. It is happening frequently. So, client is asking me to grant permission to view blocking session( want to execute sp_who2). Could
you please advise me, which permission I need to give. I don't like to give access other than sp_who2. Please advise.
Thanks.
Raja.
Thanks, Raja

You need VIEW SERVER STATE permissions for sp_who or sp_who2 to work. You can also use sys.dm_exec_requests which will also give blocking information and requires the same permissions.
Else you can take a look at the other alternative which is sp_whoisactive - check this link -
http://sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx
Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

Similar Messages

  • Error Accessing Report in SharePoint Integrated Mode (SQL Server 2008 with SharePoint 2007)

    I have installed reporting services with SharePoint Integration Mode, however, whenever I access the report, below error occurs:
    Report Server has encountered a SharePoint error. (rsSharePointError)
    Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
    Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)
    Checking through the Log Files, there is more detailed error message, but not sure what cause the error:
    library!ReportServer_0-2!4064!11/01/2010-15:00:39:: Call to GetPermissionsAction(http://[servername]/sites/Reporting/Reports/TestReport.rdl).
    library!ReportServer_0-2!4170!11/01/2010-15:00:39:: Call to ListParentsAction(http://[servername]/sites/Reporting/Reports/TestReport.rdl).
    library!ReportServer_0-2!4170!11/01/2010-15:00:40:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error., ;
     Info: Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error. ---> Microsoft.SharePoint.SPException: Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) --->
    System.Runtime.InteropServices.COMException (0x80020009): Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
       at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
       at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
       --- End of inner exception stack trace ---
       at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
       at Microsoft.SharePoint.SPFile.GetFileContent(SPOpenBinaryOptions openOptions)
       at Microsoft.SharePoint.SPFile.OpenBinary(SPOpenBinaryOptions openOptions)
       at Microsoft.SharePoint.SPFile.OpenBinary()
       at Microsoft.ReportingServices.SharePoint.Server.SharePointServiceHelper.SyncToRSCatalog(String path, Boolean createOnly)
       --- End of inner exception stack trace ---
    library!ReportServer_0-2!4064!11/01/2010-15:00:40:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error., ;
     Info: Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error. ---> Microsoft.SharePoint.SPException: Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) --->
    System.Runtime.InteropServices.COMException (0x80020009): Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
       at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
       at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
       --- End of inner exception stack trace ---
       at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
       at Microsoft.SharePoint.SPFile.GetFileContent(SPOpenBinaryOptions openOptions)
       at Microsoft.SharePoint.SPFile.OpenBinary(SPOpenBinaryOptions openOptions)
       at Microsoft.SharePoint.SPFile.OpenBinary()
       at Microsoft.ReportingServices.SharePoint.Server.SharePointServiceHelper.SyncToRSCatalog(String path, Boolean createOnly)
       --- End of inner exception stack trace ---
    Any idea on how to resolve the issue?

    Hi Jin Chen,
    Thank you for your response. I have disabled all the Symantec End Point Protection Service, but problem persists..
    Further, I have checked through the ULS Log in SharePoint, there is more error reported there:
    11/03/2010 15:19:48.44 ReportingServicesService.exe (0x3510)  
    0x4064
    Windows SharePoint Services   Database                      
    6f8g Unexpected
    Unexpected query execution failure, error code 282. Additional error information from SQL Server is included below. "The 'proc_GetTpWebMetaDataAndListMetaData' procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be
    returned instead." Query text (if available): "{?=call proc_GetTpWebMetaDataAndListMetaData(?,'F77D6A37-F8D2-492C-911C-923C8A135DEB',?,NULL,1,?,?,6187)}"
    11/03/2010 15:19:51.46 ReportingServicesService.exe (0x3510)  
    0x4064
    Windows SharePoint Services   General                      
    8e2s Medium  
    Unknown SPRequest error occurred. More information: 0x80020009
    11/03/2010 15:19:51.69 ReportingServicesService.exe (0x3510)  
    0x1EEC
    Windows SharePoint Services   General                      
    8e2s Medium  
    Unknown SPRequest error occurred. More information: 0x80020009
    Do you have any idea based on the error above?

  • Does SQL Server 2008 R2 recognize only system-generated session identifiers,

    As part of the locking down of our system we are doing the Security Technical Implementation Guide (STIG) and one of the questions it asks is "The DBMS must recognize only system-generated session identifiers."
    I have looked at the STIG version for SQL Server 2012 and this is not a finding on it, since it supports the requirement and cannot be configured out of compliance.
    If anyone can help confirm that this is also the case with SQL Server 2008 R2 that would be very helpful.
    Thank you, Darren
    The discussion of it is:
    This requirement focuses on communications protection at the application session, versus network packet level. The intent of this control is to establish grounds for confidence at each end of a communications session in the ongoing identity of the other
    party and in the validity of the information being transmitted.
    Unique session IDs are the opposite of sequentially generated session IDs which can be easily guessed by an attacker. Unique session identifiers help to reduce predictability of said identifiers. 
    Unique session IDs address man-in-the-middle attacks including session hijacking or insertion of false information into a session. If the attacker is unable to identify or guess the session information related to pending application traffic, they will have
    more difficulty in hijacking the session or otherwise manipulating valid sessions.
    The DBMS must only recognize only system generated session identifiers. If an attacker was able to generate a session with a non-system generated session identifier and have it be recognized by the system, the attacker could potentially gain access to the
    system without passing through access controls designed to limit database sessions to authorized users.

    Hi Darren,
    From your description, do you mean the session_id from DMV sys.dm_exec_sessions? If so, the session_id(s) are all created and handled by SQL Server. When session_id <= 50 , it belongs to a system session, and when session_id > 50, it belongs to a user
    session.
    Below query could help you generate system sessions in SQL Server 2008 R2. Refer to :
    Explore the secrets of session- sys.dm_exec_sessions.
    SELECT
    S.SESSION_ID,
    S.STATUS,
    S.HOST_NAME,
    C.CLIENT_NET_ADDRESS,
    CASE WHEN S.LOGIN_NAME = S.ORIGINAL_LOGIN_NAME THEN S.LOGIN_NAME ELSE S.LOGIN_NAME + ' (' +S.ORIGINAL_LOGIN_NAME + ')' END AS LOGIN_NAME,
    S.PROGRAM_NAME,
    C.CONNECT_TIME, -- DIFFRENT BETWEEN CONNECT & LOGIN TIME IS TIME TAKEN BY PRELOGON ACTIVITIES
    S.LOGIN_TIME,
    CASE S.TRANSACTION_ISOLATION_LEVEL
    WHEN 0 THEN 'UNSPECIFIED'
    WHEN 1 THEN 'READUNCOMITTED'
    WHEN 2 THEN 'READCOMMITTED'
    WHEN 3 THEN 'REPEATABLE'
    WHEN 4 THEN 'SERIALIZABLE'
    WHEN 5 THEN 'SNAPSHOT'
    ELSE CAST(S.TRANSACTION_ISOLATION_LEVEL AS VARCHAR(32))
    END AS TRANSACTION_ISOLATION_LEVEL_NAME,S.LAST_SUCCESSFUL_LOGON, -- REQUIRES 'COMMON CRITERIA COMPLIANCE ENABLED' OPTION VIA SP_CONFIGURE.
    S.LAST_UNSUCCESSFUL_LOGON, -- REQUIRES 'COMMON CRITERIA COMPLIANCE ENABLED' OPTION VIA SP_CONFIGURE.
    S.UNSUCCESSFUL_LOGONS, --REQUIRES 'COMMON CRITERIA COMPLIANCE ENABLED' OPTION VIA SP_CONFIGURE.
    S.CPU_TIME AS CPU_TIME_MS,
    S.MEMORY_USAGE AS MEMORY_USAGE_PAGES,
    S.ROW_COUNT,
    S.PREV_ERROR,
    S.LAST_REQUEST_START_TIME,
    S.LAST_REQUEST_END_TIME,
    C.NET_TRANSPORT,
    C.PROTOCOL_TYPE,
    S.LANGUAGE,
    S.DATE_FORMAT,
    ST.TEXT AS QUERY_TEXT
    FROM
    SYS.DM_EXEC_SESSIONS S
    FULL OUTER JOIN SYS.DM_EXEC_CONNECTIONS C ON C.SESSION_ID = S.SESSION_ID
    CROSS APPLY SYS.DM_EXEC_SQL_TEXT(C.MOST_RECENT_SQL_HANDLE) ST
    WHERE
    S.SESSION_ID IS NULL
    OR S.SESSION_ID < = 50
    ORDER BY
    S.SESSION_ID
    Thanks,
    Lydia Zhang

  • Cannot kill a session that is running a query on a linked server in SQL Server 2008 R2

    Hi,
    Cannot kill a session that is running a query on a linked server  in SQL Server 2008 R2.
    When I try to kill, it status shown as "KILLED/ROLLBACK"
    I have facing the issue from long back. I searched many and none of them worked for me
    Any help is greatly appreciated
    Thanks
    Jaison
    Carver

    I guess its stuck, can you see some blocking or any other process blocking the rollback.
    can you check rollback status using below command. Or you can use sp_who2 and check status column
    select percent_complete,estimated_completion_time from sys.dm_exec_requests
    where spid=xxx
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Urgent: Finding sessions in SQL server 2000

    Hi,
    Can you help me how to find out sessions in SQL Server 2000.
    Also is there any way to see the outstanding sessions for a database?
    Thanks in advance,
    Vasu.

    You can do this graphically in Enterprise Manager, or you can use this script:
    SET NOCOUNT ON
    create table #ProcCheck(
     Status varchar(50) ,
     SPID int ,
     CPU int ,
     Pys_IO int ,
     WaitTime int ,
     BlockSPID int ,
     HostName varchar(36) ,
     ProgName varchar(100) ,
     NTUser varchar(50) ,
     LoginTime datetime ,
     LastBatch datetime ,
     OpenTrans int ,
     LastCmd varchar(4000))
    create table #ProcInfo(
     EventType varchar(100) ,
     Parameters int ,
     EventInfo varchar(7000)
    INSERT INTO #ProcCheck(Status, SPID, CPU, Pys_IO, WaitTime, BlockSPID, HostName, ProgName, NTUSer, LoginTime, LastBatch, OpenTrans)
    SELECT status, SPID, CPU, Physical_IO, WaitTime, Blocked, SUBSTRING(HostName, 1, 36), SUBSTRING(Program_Name, 1, 100), SUBSTRING(nt_username, 1, 50), Login_Time, Last_Batch, Open_Tran
    FROM master..sysprocesses
    where (blocked > 0
    or spid in (select blocked from master..sysprocesses (NOLOCK) where blocked > 0)
    or open_tran > 0)
    and SPID <> @@SPID
    declare @spid int ,
     @cmd varchar(7000)
    declare Procs cursor fast_forward for
    SELECT SPID FROM #ProcCheck
    OPEN Procs
    FETCH NEXT FROM Procs INTO @SPID
    WHILE @@FETCH_STATUS = 0
     BEGIN
     SET @cmd = 'DBCC INPUTBUFFER(' + CONVERT(varchar, @SPID) + ')'
     INSERT INTO #ProcInfo
     EXEC(@cmd)
     SELECT @cmd = EventInfo
     FROM #ProcInfo
     DELETE FROM #ProcInfo
     UPDATE #ProcCheck
     SET LastCmd = SUBSTRING(@cmd, 1, 500)
     WHERE SPID = @SPID
     FETCH NEXT FROM Procs INTO @SPID
     END
    CLOSE Procs
    DEALLOCATE Procs
    SELECT * FROM #ProcCheck 
    DROP TABLE #ProcCheck
    DROP TABLE #ProcInfo

  • MS SQL Server 2008 server is experiencing blocking

    All,
    The DBA & I are at a loss as to what could be causing an intermittent alert to be produced against the MS SQL Server 2008 server. The following email is what I've been provided:
    SQL Services Alert: COMPANY.com - COMPSQL01 is experiencing blocking
    spid BSPID DatabaseName    Login                          LastBatch        Runtime (Alert@:1) Command                                                                                            
    394  0     ORAEPM_HP_HPBUD 102.16.4.126\ORAEPM_HP_HPBUD 2015-04-06 10:52                  5 (@P1 int)SELECT * FROM HSP_ACTIVITY_LEASE WHERE ACTIVITY_ID = @P1                                  
    404  0     ORAEPM_HP_VISIO 102.16.4.126\ORAEPM_HP_VISION  2015-04-06 10:50                  7 (@P1 int)SELECT * FROM HSP_ACTIVITY_LEASE WHERE ACTIVITY_ID = @P1                                  
    403  404   ORAEPM_HP_VISIO 102.16.4.126\ORAEPM_HP_VISION  2015-04-06 10:49                  8 (@P1 int)UPDATE HSP_ACTIVE_SERVERS SET LAST_ACTIVE_TIME = GETDATE() WHERE SERVER_ID = @P1          
    395  394   ORAEPM_HP_HPBUD 102.16.4.126\ORAEPM_HP_HPBUD 2015-04-06 10:49                  8 (@P1 int)UPDATE HSP_ACTIVE_SERVERS SET LAST_ACTIVE_TIME = GETDATE() WHERE SERVER_ID = @P1         
    From what I've been told, it appears that SPID 394 is the offending one but it appears to be clashing with SPID 404 and causing the blocking to occur. Both appear to be automatic processes executed by Planning to monitor\track the status of the various Planning applications in operation.
    As background info, the following applies:
    - All servers are MS Windows 2008 R2 Enterprise SP1 (64-bit);
    - Hyperion Planning is v11.1.2.3.502;
    - The RDBMS platform is a MS SQL Server 2008 (64-bit) instance;
    - ORAEPM_HP_HPBUD is the RDBMS database accessed by a custom-developed Planning application while ORAEPM_HP_VISION is the RDBMS database for Oracle's Vision Planning application;
    Has anyone ever encountered - and resolved - such an issue? If yes, how?
    Many thanks in advance,
    JBM

    Can you pin point a particular TopLink query tied to the " FETCH_APICURSOR* " call in the app and post how it is being created?
    My guess is that the application is specifying the TopLink query object to return a cursor or stream and not closing it in all cases, or keeping them open for a long period - did you say they were leaking, or is it just that a large number are open at a time leading to performance problems?
    This streams+cursors are described in the TopLink docs here
    http://docs.oracle.com/cd/E21764_01/web.1111/b32441/qryadv.htm#CJGJBHGJ
    or the 10g docs here:
    http://sqltech.cl/doc/oas10gR3/web.1013/b13593/qryadv010.htm
    If this is the case, you might want to use a different strategy such as pagination instead of cursors, described here:
    http://docs.oracle.com/cd/E17904_01/web.1111/b32441/optimiz.htm#CHDIBGFE
    Best Regards,
    Chris

  • Temporarily disable Digital Signature Checks to Install MS SQL Server 2008 with no Internet Access

    I am attempting to install a licensed copy of MS SQL Server 2008 in a Private Enclave that does NOT have Internet access on a Win2008 R2 SP1 server (that is VM - thus I can't reboot and press F8 to select "Disable Driver Signature Enforcement"
    ). The installation fails with an error of the vc_red.cab file being found either corrupt or a bad digital signature.  The file is good, but the signature has an expiration of 2011.   I understand that a DOTNET SDK v1.1 program called setreg.exe
    will enable disabling the digital signature check, but I am not permitted to use that program. 
    I might be permitted to use the "Signtool.exe" utility, but it is not clear what command sequences are necessary to disable and then re-enable the Digital Signature checks.
    I saw a thread that recommended using the command:
    bcdedit.exe /set nointegritychecks ON
    However, the comments indicated that this might not have worked.
    Are there Registry settings I can use with regedit to make the necessary changes to be able to install the application?  I anticipate running into this problem with other software when I do not have Internet connectivity.   I already tried
    downloading the Microsoft CRL files; updated the lists on the Server; and rebooted.  This did not solve my problem.  

    Hi,
    As far as I know, it is not recommended to disable digital signature check.
    Since we are not familair with installing MS SQL server, please also refer to SQL forums below to see if experts there have more insights regarding the matter.
    https://social.technet.microsoft.com/Forums/sqlserver/en-US/home
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • SQL Geometry View in SQL Server 2008 R2

    I will preface by saying I'm not an expert on SQL Spatial and am just learning to use the Geometry functions...
    I am an analyst for a county government and am trying to do the following... we have a parcel dataset that has around 100k features and I'm trying to run a view that finds what county supervisor district each polygon is located within.
    If I use the code below I get 2 different values for a parcel where polygons are not coincident.
    polygonA = parcels
    polygonB = supervisor districts
    SHAPE = geometry storage field
    (polygonA.SHAPE.STIntersects(polygonB.SHAPE) = 1)
    If I use the code below on a small set of data, I get the desired results, but if I try to execute this on our entire parcel dataset, SQL Server times out.
    (polygonA.SHAPE.STCentroid().STIntersects(polygonB.SHAPE) = 1)
    We are using SQL Server 2008 R2 with Geometry storage.
    Any advice would be greatly appreciated in how to improve the performance of the query...if possible.

    If I use the code below on a small set of data, I get the desired results, but if I try to execute this on our entire parcel dataset,
    SQL Server times out.
    You could create a
    Spatial Index on your data to improve performance; see
    CREATE SPATIAL INDEX (Transact-SQL)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • RH server 8 - upscaling from Access to SQL Server 2008?

    Hi gang-
    We are currently running RoboHelp Server 8 on the default Access database and Tomcat. We would like to increase the number of help projects that are tracked by the RH Server, and have concerns that Access will handle the increased load, so we are considering upsizing to SQL Server 2008.
    Our IT people think this should be fairly straightforward, but want to know if Adobe provides any tool or has any recommendations when upsizing from Access to SQL Server.They are concerned about retaining things like primary and secondary keys, as well as any indexes that are currently in Access.
    If anyone has experience with such a migration, please share!
    Thanks,
    -=Ed.

    We are also currently on an Access DB and considering (have been for some time but that's a different story) upgrading to SQL Server. There is no migration tool from Access to SQL Server provided so you'd have to allow some additional effort if you want to retain the data. I am not an expert on DBs but I'm sure there are ways to migrate the data. I have found a few links when searching on Google. For example:
    http://support.microsoft.com/kb/237980
    Adobe does provide a cheat sheet at the link below which may be useful to you.
    http://blogs.adobe.com/techcomm/2009/05/advanced_database_setup_for_robohelp_server_8.html
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • Developing database views between Oracle and SQL Server tables

    I am on Oracle 10.2, my organization has many SQL Server databases as well and has now made
    SQL server as company standard so many new databases will be developed in SQL Server. It is of course
    not possible to convert all Oracle databases to SQL Server, so a mix environment will exist. Two questions:
    1.     Is it possible to develop database views in Oracle (10g in my case) which join Oracle tables with tables in SQL Server 2008? If yes, how. I have seen some heterogeneous connectivity setup to connect SQL Server to Oracle, but not sure whether it is possible to develop a database view across two databases.
    2.     I know it is not a SQL Server forum, but many DBA’s know both Oracle and SQL Server. Is it possible to develop views in SQL Server (SQL Server 2008 R2 in my case) which join Oracle 10g and SQL Server 2008 tables? I know in SQL Server, there is way to set up linked servers, but do not know whether it is possible to develop views.
    Thanks a lot for your insight.

    You can create views that join local Oracle tables and remote SQL Server tables. I'm pretty sure you can do the reverse as well but I haven't personally done it.
    However, I would be very concerned about the performance you'd get if you created that sort of view. You'd very frequently end up in a situation where Oracle has to pull all the data in the remote table across the database link in order to apply predicates and join the data locally. That could be disastrous from a performance standpoint.
    Justin

  • Partitioned view read other tables when it shouldn't? SQL Server 2008 bug?

    The query still scans all the tables where it supposes to scan only one table when the tables have more than, say, 10000 rows. 
    The details can be found here.
    http://stackoverflow.com/questions/25691738/unreliable-partitioned-view-execution-table-scan-sql-server-bug?noredirect=1#comment40155612_25691738

    I don't see why this would be a bug.
    The optimizer has no information about what is in this table variable, since table variable does not have statistics. Therefore it comes up with a plan which makes sense in the general case, that is, the table variable has data from both partitions. If that
    plan is such that a startup expression can be applied, a startup filter is added. But in the case where both tables are scanned, the optimizer has decided that the best is to run a MERGE JOIN on the two tables.
    The situation may brighten up a bit, if you instead use a temp table, since a temp table has distribution statistics.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Is 'SQLCMD.EXE' the SQL Server 2008 executable to be added to a Firewall 'Inbound Rule' to allow remote access?

    I would like to add a new Firewall 'Inbound Rule' to allow remote access by
    SQL Server 2008.    
    SQL Server Management Studio shows two TCP/IP instances, both of which are Enabled. 
    One uses port 1433 and the other uses ‘TCP Dynamic Ports’.
      In  SQL Server, the server has ‘Allow remote connections to this server’ checked.
    My Firewall allows port 1433 for the one TCP/IP instance. 
    Since the other instance is dynamic, I would like to add a new
    Firewall 'Inbound Rule' to allow the SQL Server executable to run.
    I’ve read that the SQL Server executable is commonly named SQLSERVR.EXE, but there is no such file on my laptop. 
    I’m assuming the executable that needs to be added to the Firewall 'Inbound Rule'
    is SQLCMD.EXE (in the path C:\Program Files\Microsoft SQL Server\100\Tools\Binn). 
    Can anyone please confirm this?  (I'm running Windows 7).  Thanks.

    Hi Bontrager,
    Firstly, please run
    Discovery Report to the detect the existing SQL Server 2008 instance. If SQL Server 2008 is installed properly on your machine, the sqlservr.exe should exists in C:\Program Files\Microsoft SQL Server\MSSQL10.<instance_name>\MSSQL\Binn.
    Secondly, if SQL Server 2008 is configured to use dynamic port, it is difficult to configure the firewall to enable access to the correct port number because the port selected might change every time that the Database Engine is started.
    Therefore, if a firewall is used, please reconfigure the SQL Server 2008 to use the static TCP port by using SQL Server 2008 Configuration Manager. 
    For more information, please review this
    article. After that, you can add the port number in firewall inbound rule.
    Thirdly, if you want to connect to  SQL Server 2008 from outside the firewall by instance name, SQL Server Browser should be turned on and you'll have to allow the SQL Server Browser through the firewall, which is UDP port 1434.
    Reference:
    https://msdn.microsoft.com/en-us/library/cc646023.aspx
    http://stackoverflow.com/questions/10539900/opening-ports-sql-server-instances
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • IS there a way to view all the queries executed against a table in sql server 2008 R2

    Hi,
    We would like  to see if a table is getting updated or deleted from external source. Hence we want to know how to see list of queries run against a particular table in sql server 2008 R2.
    Thanks,
    Preetha

    Hi,
    We would like  to see if a table is getting updated or deleted from external source. Hence we want to know how to see list of queries run against a particular table in sql server 2008 R2.
    Thanks,
    Preetha
    Audit, Trigger and custom profiler can be used.
    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
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • How to access the datasource window in SSRS for sql server 2008 R2 for writing my query without having to go through the wizard?

    I have used SSRS a lot years ago with Sql Server 2000 and Sql Server 2005. I have written external assemblies, ... But now I have to do this with Sql Server 2008 (R2 -- which I realize I am way behind the times already but ...)  in sql server 2000 and
    2005 there was a tab for datasource to the left of the tab for design which was to the left of the preview tab. How do I get to the datasource window in sql server 2008 (r2) ?
    I see that datasource explorer.  But where can I get to the datasource window to edit my queries and so forth for sql server 2008 (R2)?
    Thanks
    Rich P

    I think I found the answer to my question --- just right-click on the the Data Sources or Datasets for editing connections and dataset queries.  I'm guessing it gets even fancier with Sql Svr 2012 - 2014.    Man, that's the one thing
    about coding platforms -- you let it go for a few years and come back, and everything has changed (well, a lot of things).  Now I need to figure out how to add an external assembly to SSRS 2008 (R2).
    Rich P

  • Sql server 2008 access denied

    hello everyone
    I have installed Sql server 2008 then
    when i cretae database getting following error
    Msg 262, Level 14, State 1, Line 1
    CREATE DATABASE permission denied in database 'master'.

    You should be either member of the "sysadmin" or "dbcreator" server role to create databases, check the permissions
    http://technet.microsoft.com/en-us/library/ms178569.aspx
    http://msdn.microsoft.com/en-us/library/ms188659.aspx
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

Maybe you are looking for