Quantcast
Channel: Forum SQL Server Database Engine
Viewing all 15694 articles
Browse latest View live

trc File Permissions Getting Stripped When Creating A Trace via SQL Server Agent

$
0
0

Hello Forum

Over the last few weeks I have been running some Traces on A Server.  On Friday 02-Apr we had to move the location to a Network share as the trace files were filling up the Drive.  The trc files have been created and populated in the Network Share but the permissions have been stripped; there appears to be no owner for the files.  The Domain Administrator can of course re-introduce the permissions but we are struggling to get it working as it should.

Our initial thoughts are of course AD permissions.  Note that both myself and the Domain Administrator have the required permissions on the file share: -

  • We can both create, edit and delete documents
  • We both have sys admin rights within the SQL Server Instance
  • We have set the Job to run as myself, the DA and as sa.  The Trace File is being created but without any permissions.

Has anyone seen this sort of behaviour before?

SQL Server 2008 R2 SP1 is in use.


Please click "Mark As Answer" if my post helped. Tony C.


Connect SSMS 2014 to AWS instance

$
0
0

I'm using SSMS (SQL Server Management Studio) 2014 and trying to connect to an AWS instance which has SQL Server Express running. OS is Windows Server 2012 R2. All updates have been applied.

What I've done:

  • Opened ports 1433, 1148 in AWS Security Group (firewall opened on inbound ports also on server)
  • Enabled client protocols (TCP/IP, Named Pipes, Shared Memory) on server
  • Remote server access enabled for database (server -> properties)
  • SQL Server Browser enabled (server service)
  • Public/Elastic IP assigned (ping works fine)
  • Able to log into database on server just fine

The error I'm receiving:

  • Cannot connect to MYIPADDRESS\SERVERNAME,1148
  • The wait operation timed out

Any help would be greatly appreciated.

Zack


FILESTREAM shared folder can not be accessed using listener name

$
0
0

I have AlwaysOn configured in SQL Server 2014 and enabled Filestream in both nodes (node 1 and node2) as shown here:

Enable and Configure FILESTREAM (MSDN Library)

I have named the shared folder name "MYSHAREDSQLFILES".

I can access the folder using below path whenever node 1 is Primary

\\**node1**\MYSHAREDSQLFILES

But I want to access it using listener name, because user will not know which one is PRIMARY node. what is the best practise.

I have gone through the prerequisites but still it does not work MSDN 



Many Thanks Deepak

Error AppDomain 22 (SSISDB.dbo[runtime].27) is marked for unload due to memory pressure.

$
0
0

AppDomain 22 (SSISDB.dbo[runtime].27) is marked for unload due to memory pressure.

AppDomain 22 (SSISDB.dbo[runtime].27) unloaded.


ABDUL HAFEEZ MCSE MCITP

SQL Server Service Terminated Unexpectedly

$
0
0

I have a production server that had the SQL Server service terminate unexpectedly.

My Server & SQL Server info is:

Current time is 3:55:01 04/04/16.                                                                              
=====================================================================                                            
       BugCheck Dump                                                                                            
=====================================================================                                            
                                                                                                                
This file is generated by Microsoft SQL Server                                                                  
version 11.0.6518.0                                                                                             
upon detection of fatal unexpected error. Please return this file,                                               
the query or program that produced the bugcheck, the database and                                                
the error log, and any other pertinent information with a Service Request.                                       
                                                                                                                
                                                                                                                
Computer type is Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz.                                                      
Bios Version is HP     - 1                                                                                      
I36                                                                                                             
72 X64 level 8664, 2 Mhz processor (s).                                                                         
Windows NT 6.2 Build 9200 CSD .                                                                                 
                                     
Memory                               
MemoryLoad = 96%                     
Total Physical = 393087 MB           
Available Physical = 12031 MB        
Total Page File = 395135 MB          
Available Page File = 10767 MB       
Total Virtual = 134217727 MB         
Available Virtual = 131146694 MB     
**Dump thread - spid = 0, EC = 0x000002EBE2015D70                                                               
***Stack Dump being sent to ...\MSSQL\LOG\SQLDump0001.txt  
* *******************************************************************************                                
*                                                                                                               
* BEGIN STACK DUMP:                                                                                             
*   04/04/16 3:55:01 spid 5645                                                                                  
*                                                                                                               
* ex_terminator - Last chance exception handling                                                                
*                                                                                                               
* Input Buffer 255 bytes - 

SQL Agent not starting up

$
0
0
2016-04-04 13:13:00 - ? [100] Microsoft SQLServerAgent version 11.0.6020.0 (X64 unicode retail build) : Process ID 4848
2016-04-04 13:13:00 - ? [495] The SQL Server Agent startup service account is XXXX\XXXXService.
2016-04-04 13:13:00 - ! [150] SQL Server does not accept the connection (error: 233). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
2016-04-04 13:13:00 - ! [000] Unable to connect to server '(local)'; SQLServerAgent cannot start
2016-04-04 13:13:00 - ! [298] SQLServer Error: 233, Shared Memory Provider: No process is on the other end of the pipe. [SQLSTATE 08001]
2016-04-04 13:13:00 - ! [298] SQLServer Error: 233, Client unable to establish connection [SQLSTATE 08001]
2016-04-04 13:13:00 - ! [382] Logon to server '(local)' failed (DisableAgentXPs)
2016-04-04 13:13:00 - ? [098] SQLServerAgent terminated (normally)

how to get the borders if page data continued to next page

$
0
0

hi all,

 i'm getting weird problem with borders.

i enabled borders but my tablix borders are cutting

the output preview..firstpage accountnumber data  is continued to next page then the tablix bottom border is cutted,it looks weird .in second page also when second accountnumber started then lot of gap between the borders ..please check the images..help is urgent..thanx inadvance..


lucky

Query on SQL server Datetime

$
0
0

Hi All,
we have few tables that are already partitioned based on date column like 2014, 2015,2016,2017, etc. and we are using this date column in our SQL queries (in where condition as inuput parameter/or declared variable).

Now we have to add one more condition (input variable) in our queries that is time. I want to know from SQL Server experts, is there any modifications required on below partition function to use time value.

NOTE: after implementing table partition on date column we are able to see good performance

Our query:
declare @FromDate datetime
declare @ToDate datetime
/*Today we have modified query with below variables*/
declare @FromTime time 
declare @ToTime time

set @Fromdate='2015-01-01'
set @Todate='2016-01-01'
set @FromTime='00:00'
set @ToTime='07:30'

select a.col1,b.col1
from tab a join tab b on a.id=b.id
where a.[date] >= Convert(VARCHAR(24), (@FromDate) + ' ' + (@FromTime), 113)
and b.[date] <= Convert(VARCHAR(24), (@ToDate) + ' ' + (@ToTime), 113)

Existing PF definition:
CREATE PARTITION FUNCTION VisitorsPerYear(datetime)
AS
RANGE RIGHT FOR VALUES 
('2012-01-01', '2013-01-01', '2014-01-01',
 '2015-01-01', '2016-01-01',2017-01-01)
GO


SMSS New -> View very slow on first time

$
0
0

In SMSS on our SQL Server 2014 (12.0.4213.0) there are some maddening delays when we perform one particular function. When we right-click on View and choose New -> View. It can take from 30 to 60 seconds. Interestingly enough, when the new view comes up and we close it and create a new view immediately, it's fairly fast. It's down to about 3-4 seconds then. There's something that's happening at the first attempt but not subsequent attempts.

The delays don't seem to happen on our old SQL 2008 R2 server (10.50.6220). When we click New -> View to create a new view we always have the new view dialog box (Add Table) within 2 seconds.

Our new server is a screaming Dell PE 730 filled with SSDs and the DBs themselves between 20 and 400 GB with no more than 20 users for any of these servers. Nothing else seems to tax the server. Running applications are screaming fast.

The New -> Views function seems to be the one thing. I would love some way to  I need to tune/fix this to keep the primary DB manager happy with this server.

Can I access the file stream shared folder using Listeners in case of AlwaysOn cluster environment?

$
0
0

One of the most effective ways to extend your SQL Server Integration Services (SSIS) control flow is to use a Script task to write custom code that perform tasks you cannot perform with the built-in components.But it's not straight forward in case of AlwaysOn configured nodes

Below is my current environment setup which helps you to understand the problem.

My environment

  • I am having NODE 1 and NODE 2 as cluster configured
  • SQL Server always on and availability group configured
  • SQL Server file stream is enabled on both node 1 and node 2 entitled as MYSHAREDNAME
  • Internal load balancing Listener configured and entitled as MYACTIVENODE

Problem Statement One of the node among cluster (node 1 or node2) can be down any time. We will not sure which one will become PRIMARY. I am trying to access the shared folder as follow

\\NODE1\MYSHAREDNAME - Works if NODE 1 is primary node

\\NODE2\MYSHAREDNAME - Works if NODE 2 is primary node

But it's difficult to hard code above path as any node can go down. So I used LISTENER name so that it can automatically detect the PRIMARY node to do the desired job as shown below

So I used LISTENER name so that it can automatically detect the PRIMARY node to do the desired job as shown below

  \\MYLISTENERNAME\MYSHAREDNAME  

But I am not able to access it

How can I fix it? Ports 1433, 5022, 59999 are enabled.

Extract from https://msdn.microsoft.com/en-in/library/dn385720.aspx

AlwaysOn Availability Groups are supported as long as you do not add new database files to the primary database. If a database operation requires a new file to be created in the primary database, first disable AlwaysOn Availability Groups in the secondary node. Then, perform the database operation on the primary database and backup the database in the primary node. Next, restore the database to the secondary node, and enable AlwaysOn Availability Groups in the secondary node. Note that AlwaysOn Failover Cluster Instances is not supported when using the SQL Server Data Files in Windows Azure feature

But I did not understand what does above statement means?



NUMA doubts

$
0
0

Hi SQL Experts,

Can anyone help in below queries.

What is NUMA? Why NUMA ? How it is related/affects SQL Server Performance?
How it affects the MAXDOP setting.

Please don't paste urls/links. I just wanted to understand in simple layman terms or short descriptions.

Thanks,

Sam

SQL 2012 CU2 After SP3

Implementing Transparent Data Encryption on replicated Databases

$
0
0

Hi All,

We have transactional replication in place for many databases in our environment. The requirement now is to implement TDE for whole database. I request you to share your thoughts and insights about considerations for TDE.

Is there any impact on replication. If i apply TDE in publisher DB will there be any impact on subscriber DB?

In our case we are going to implement it in both publisher db and suscbriber Db.

Is compressed backup possible after applying TDE?

We have SAN backups for our prod systems, anything that needs to be taken care in that front( can we expect increase in backup duration, backup size )

Thanks

Udhayan

Cannot start SQL Server Service Broker on Database Could not start Service Broker for database id: 13

$
0
0

Dear Team,

I am getting below error in event log

Cannot start SQL Server Service Broker on Database Could not start Service Broker for database id: 13

could you please help me to understand what does the above error mean and how can we resolve it.

Appreciate your input.

Regards

ChetanV

[MSSQL2005Std 64-bit] - EXECUTE sys.xp_logininfo - Error

$
0
0

HEllo All.

I have 4 MS SQL 2005 Std EN 64-bit servers SQL Server processes and Agent Processes are working as domain user. The same for all servers end services.

But only on one server error occurs.

When I am trying to launch the Job - error appear:

[298] SQLServer Error: 15404, Could not obtain information about Windows NT group/user 'DOMAIN\Marek', error code 0xffff0002. [SQLSTATE 42000] (ConnIsLoginSysAdmin)

I can ommit the error, when as Job Owner I choose non domain account - but this is only bypass the problem, not solve.

I found, that error is called from sys.xp_logininfo function.

If I call function as:

EXECUTE sys.xp_logininfo 'DOMAIN\Marek'
 - Error occurs.

If I call as:

EXECUTE sys.xp_logininfo 'DOMAIN\marek'
 - login name with lower letters - all is OK.

It seems, the function is case sensitive. I cannot change Job Owner to the lower letter - after I close window OK button and open again upper letter appears in the field.

On other 3 servers, with the same configuration, all is OK.

Is anybody who can help me?

Regards

Marek


SQL Server Standard Edition - Memory Question

$
0
0

We have a SQL 2012 Instance Standard Edition. I know Standard Edition supports only 64 GB of RAM. But with 112 GB RAM on the server, I set the max server memory as 96 GB and the memory usage on the server is about 100 GB, with SQL using up the 96 GB. If Standard supports only 64 GB, how come my SQL is using 96 GB?

Thanks

Satya

SQL Server 2012 - Linked Server - Error: 10054 - OLE DB provider "SQLCLIN11" - for linked server - unable to establish connection

$
0
0

I am trying to establish a linked server between SQL Server 2012 (11.0.5613) and SQL Server 2012 (11.0.6020). I am getting the below error message:

TITLE: Microsoft SQL Server Management Studio
------------------------------

The test connection to the linked server failed.

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

TCP Provider: An existing connection was forcibly closed by the remote host.

OLE DB provider "SQLNCLI11" for linked server "###.###.###.##" returned message "Client unable to establish connection". (Microsoft SQL Server, Error: 10054)

------------------------------


An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------
Program Location:

   at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType)
   at Microsoft.SqlServer.Management.Smo.ExecutionManager.ExecuteNonQuery(String cmd)
   at Microsoft.SqlServer.Management.Smo.LinkedServer.TestConnection()
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.LinkedServerConnectionTest.Invoke()

===================================

TCP Provider: An existing connection was forcibly closed by the remote host.

OLE DB provider "SQLNCLI11" for linked server "###.###.###.##" returned message "Client unable to establish connection". (.Net SqlClient Data Provider)

Server Name: Server NAME\SQL Instance
Error Number: 10054
Severity: 16
State: 1

------------------------------
Program Location:

   at Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSql(ExecuteTSqlAction action, Object execObject, DataSet fillDataSet, Boolean catchException)
   at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType)

Unable to open physical file - Operating system error 5: 5(error not found) Microsoft SQL Server: Error 5120

$
0
0

I am trying to attach a database to SQL 2005. This database has not previously been attached. I have only just installed SQL.

 

I get the following message: Unable to open physical file "C:\ArrowSQL\Arr@Data\Arrow_data.mdf" Operating system error 5: "5(error not found)" (Microsoft SQL Server: Error 5120)".

 

I have loaded SQL and the database fiel and directory with the same user acccount which is a local adminstrator ont hsi machine. I have checked that I have read/write access to the file.

 

The machine runs Windows Vista Business. SQL has SP 2 loaded.

 

What causes this?

WMIEventProviderNotificationQueue is filling up space in msdb database

$
0
0

Hi All,

I setup SQL audit and created SQL Alerts (for WMI events I enabled service broker on MSDB database andWMIEventProviderNotificationQueue is created behind and is holding all messages related toAUDIT_DATABASE_OBJECT_MANAGEMENT_EVENT ) on servers to monitor SQL audit not touched. Now I am seeing the msdb is filling up with message_queue_xxxxxxxx object(WMIEventProviderNotificationQueue). I found out this caused because of WAITFOR (RECEIVE message_body FROM WMIEventProviderNotificationQueue), TIMEOUT 5000not running wherever this issue occurred.

So why WAITFOR (RECEIVE message_body FROM WMIEventProviderNotificationQueue), TIMEOUT 5000 is not running. How to fix this problem?

server details:

SQL version: sql server 2012 EE SP2

windows: windows 2012 R2

vmware

Thanks in advance.

Brahma


------------------------ Brahma http://brahmarao.tech.officelive.com http://nani1211.info/sql

SQL Server service not started after reboot even when set to Atomatic

$
0
0

Hi,

I am installing sql server 2014 by bundling in installshield. It is installed successfully but the service is not starting after reboot.

Below is the command line parameters used.

/Q /HIDECONSOLE /ACTION="Install" /SECURITYMODE=SQL /SAPWD="DMSUser@123" /INSTANCENAME="DMSSERVER" /IACCEPTSQLSERVERLICENSETERMS="True" /FEATURES="SQLENGINE,Replication" /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE"   /TCPENABLED="1" /NPENABLED="1" /SQLSVCSTARTUPTYPE="Automatic" /SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS" /BROWSERSVCSTARTUPTYPE="Disabled" /SKIPRULES=RebootRequiredCheck

Regards,

Arif Shaikh


Viewing all 15694 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>