Quantcast
Channel: SQL Server Manageability forum
Viewing all 1519 articles
Browse latest View live

MSSQLSERVER Alert

$
0
0

I keep getting this alert, but the backups are working.

BACKUP failed to complete the command BACKUP LOG CustomerSupport. Check the backup application log for detailed messages.

Any ideas?


Domain Rename

$
0
0

Hello Everyone,

Am planning to migrate my domain from a single label domain CONTOSO to FQDN CONTOSO.COM, I would your advise on the impact of this change to my SQL services and the application using the SQL instances. Will all the services resume as normal once all machines pick the same new domain? Are there things you would recommend I take care of before and after rename?

Thanks in Advance.


Meshack

SQL Server Agent - Job History not being recorded (SQL Server 2005)

$
0
0
I have been trying to get to the bottom of an issue with SQL Server Agent not recording any job history. I am using SQL Server 2005 on a single Windows Server 2008 machine (i.e. no other domain controllers/active directory servers).

The SQL Server Agent service is configured to 'Log On As' NT user account 'sqlagent'. The jobs themselves are executed successfully (all 'Transact-SQL' type steps actually use the 'sa' account) however the there is no actual job history to be found for any of the jobs -- in the SQL Activity monitor, the 'Last Run Outcome' is always 'Unknown' and the 'Last Run' date is always 'Never' for all jobs; in the SQL Job History Viewer there are no entries for any instances of a job being executed.

The 'sqlagent' NT user account ia a member of the 'Administrators' NT group; the 'Administrators' group appears under Security > Logins on the database server. I have another server that also uses the same setup with a 'sqlagent' NT user account, on that database server the 'sqlagent' user account appears under Security > Logins and the SQL job history works correctly. I have attempted to add the 'sqlagent' to the Logins on the affected server using the SQL Server Surface Area configuration but this operation returns an error, detailed below.

Additionally, I have attempted to use the built-in NT system account 'NETWORKSEVICES' to run the SQL Agent Service but this also results in exceptions in the error log and no job history being recorded. The entries in the error logs are very similar to those from the 'sqlagent' NT user account but instead the user is referred to as 'NT AUTHORITY\ANONYMOUS LOGON' in the error logs, again these are detailed below.

Many thanks in advance for anyone's time and help with this issue!
Arthur


The following errors are raised in SQL Server Agent > Error Logs each time a job is executed:

Date11/11/2012 18:30:01
LogSQL Agent (Current - 11/11/2012 18:30:00)
Message
[298] SQLServer Error: 18452, Login failed for user ''. The user is not associated with a trusted SQL Server connection. [SQLSTATE 28000]

Date11/11/2012 18:30:01
LogSQL Agent (Current - 11/11/2012 18:30:00)
Message
[382] Logon to server 'XXXXXXXX' failed (ConnAttemptCachableOp)


If the SQLAgent service is configured to use the NT system account 'NETWORKSERVICE' then the following errors are returned instead:

Date29/10/2012 18:30:15
LogSQL Agent (Archive #1 - 29/10/2012 18:38:00)
Message
[298] SQLServer Error: 18456, Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. [SQLSTATE 28000]

Date29/10/2012 18:30:15
LogSQL Agent (Archive #1 - 29/10/2012 18:38:00)
Message
[382] Logon to server 'XXXXXXXX' failed (ConnAttemptCachableOp)



I have tried granting the 'sqlagent' NT user account with SysAdmin Server Role privaledges using the SQL Server User Provisioning tool in SQL Server Surface Area Configuration, but this always throws the following, similar error:

Login failed for user ''. The user is not associated with a trusted SQL Server connection. (Error: 18452)

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

Login failed for user ''. The user is not associated with a trusted SQL Server connection. (.Net SqlClient Data Provider)

------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=18452&LinkId=20476

------------------------------
Server Name: 127.0.0.1,1344
Error Number: 18452
Severity: 14
State: 1
Line Number: 65536

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

   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   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.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
   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 sqlprov.SysAdminServerRole.ProvisionInstance(Instance instance, String userName)
   at sqlprov.ProvisionTask.Provision(Instance instance, String userName)
   at sqlprov.MainForm.ProvisionTasks()

Maintenance Cleanup Task fails when executed with SQL Agent but dont if executed manually

$
0
0

Hello,

I have a job that fails with the following error if exectued via the SQL Server Agent but not if executed manually.

The error is:

 Error: 2014-03-31 21:30:14.89     Code: 0xC002F210     Source: Maintenance Cleanup Task Execute SQL Task     Description: Executing the query "EXECUTE master.dbo.xp_delete_file 0,N'\\erpfiles\b..." failed with the following error: "xp_delete_file() returned error 2, 'The system cannot find the file specified.'". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.  End Error

I have checked and the user configured to run the SQL Agent has all needed accesses to the folder \\erpfiles\b....

Have you an idea to help me go further in my troubleshooting ? Or have you an idea to solve my problem ?

Thanks in advance

Does Azure plan to support SQL server jobs in the near future.

$
0
0
I have heard about workarounds but non of them were real business solutions. Question is will Azure platform ever support SQL Agent Jobs functionality somehow?

SQL2008R2 installs Office 2003 Web Components

$
0
0

I see that support for Office 2003 disappears next April. Is it possible to upgrade the Office 2003 Web Components with Office 2010 or 2013?

Thanks

Chris

SQL 2014 changed my NTFS permission - default backup directory setup

$
0
0

Hello everybody.

Today I realize that new SQL 2014 changed my existing folder permissions (NTFS). This folder was shared for domain users and had set NTFS permissions for domain users and local administrators.

In setup of SQL I set backup directory to this shared folder and continued with setup. After finisting setup I realize that this folder is not accesible via network. Finally I realized that setup changed permissions - it added his MSSQL$INSTANCENAME account into Security Tab and added all permissions to it. Other permissions was erased!

What the hell MS is wrong with you?

I must retake ownership to this folder and subfolder to fix it.

This is not funny and I think it is a BUG! I think that older SQL servers do not have begavior like this new one 2014.

Maybe it will be helpfully for somebody.

Maybe Microsoft found his lost saying - This is NOT a BUG, it is a FEATURE!

Have a nice day and keep calm.

Jarda Nechvatal

How to fix database(in recovery)?

$
0
0

One database name abc,

when I connect via ssms to see all listed database

I find abc(in recovery)

What's happened? How to fix it?



Drop direct dependent objects of a table.

$
0
0

Hi,

I have a task to drop all the objects(Views,Functions,Procedures and Triggers) which are directly dependent on 200 tables.

Using SSMS, i have got the "View Dependencies" script which gives me the complete N-Level of dependency list.

But i would like to get only the direct dependent objects of those 200 tables.

Can anyone help me plz.


After running script to reorganize indexes, the next day the database shows fragmentation again.

$
0
0

Hello,

I run the following script to reorganize an index, but then the next day the database shows 26% fragmentation again. 

USE [database];

GO
ALTER INDEX [IDX_INDEX] ON [COLUMN] REORGANIZE;
GO

I after I run the script SQL Server shows 0% fragmentation, but then the very next day it shows 26%. I have SQL Server 2008 R2. I am running a nightly maintenance plan that includes rebuilding indexes, full backups, updating statistics, cleaning up history.   

Any ideas on what could be going on?

Thanks.


Paul

A significant part of sql server process memory has been paged out. This may result in a performance degradation. Duration: 0 seconds. Working set (KB): 17697520, committed (KB): 38618464, memory utilization: 45%%.

$
0
0

I have a sql2012 server running on server 2012. It has 48gb of RAM (max sql mem set at 39) and I keep getting this error at around 3 AM on random days.

A significant part of sql server process memory has been paged out. This may result in a performance degradation. Duration: 0 seconds. Working set (KB): 17697520, committed (KB): 38618464, memory utilization: 45%%.

The 7 application servers which rely on this server lose their connection and the application involved fails. 

I've seen a bunch of articles suggesting hotfixes, but they're all related to server 2003.  Suggestions?

Thanks!

One table with lot of Unused space

$
0
0

Hi,

I have this table with over 20 GB of unused space 

captured by exec sp_spaceused tablename

how can i resolve this one

Please assist


k

DBCC job fails--I post error message.How to fix it?

$
0
0

Here are detail logs--What is the issue?How to fix it? one log is from job history and the other is log generated by job(send text words to log file)

Date  4/5/2014 9:10:04 AM
Log  Job History (DbccAll)

Step ID  2
Server  test11\abc
Job Name  DbccAll
Step Name  run dbcc
Duration  00:46:40
Sql Severity  21
Sql Message ID  9001
Operator Emailed  
Operator Net sent  
Operator Paged  
Retries Attempted  3

Message
Executed as user: abc\user11. ... have been terminated by the server. [SQLSTATE HY000] (Error 0)  A database snapshot cannot be created because it failed to start. [SQLSTATE 42000] (Error 1823)  A database snapshot cannot be created because it failed to start. [SQLSTATE 42000] (Error 1823)  Write to sparse file 'd:\mssql\Data\test1_FG8888_Data.ndf:MSSQL_DBCC17' failed due to lack of disk space. [SQLSTATE 42000] (Error 5128)  The database snapshot for online checks could not be created. Either the reason is given in a previous error or one of the underlying volumes does not support sparse files or alternate streams. Attempting to get exclusive access to run checks offline. [SQLSTATE 42000] (Error 7928)  The log for database 'test1' is not available. Check the event log for related error messages. Resolve any errors and restart the database. [SQLSTATE HY000] (Error 9001)  During redoing of a logged operation in database 'test1', an error occurred at lo...  The step failed.

Job 'DbccAll' : Step 2, 'run dbcc' : Began Executing 2014-04-05 7:00:02

Msg 0, Sev 0, State 1: Unspecified error occurred on SQL Server. Connection may have been terminated by the server. [SQLSTATE HY000]
Msg 1823, Sev 16, State 1, Line 1 : A database snapshot cannot be created because it failed to start. [SQLSTATE 42000]
Msg 1823, Sev 16, State 1, Line 1 : A database snapshot cannot be created because it failed to start. [SQLSTATE 42000]
Msg 5128, Sev 17, State 2, Line 1 : Write to sparse file 'd:\mssql\Data\test1_FG8888_Data.ndf:MSSQL_DBCC17' failed due to lack of disk space. [SQLSTATE 42000]
Msg 7928, Sev 17, State 1, Line 1 : The database snapshot for online checks could not be created. Either the reason is given in a previous error or one of the underlying volumes does not support sparse files or alternate streams. Attempting to get exclusive access to run checks offline. [SQLSTATE 42000]
Msg 9001, Sev 21, State 7, Line 1 : The log for database 'test1' is not available. Check the event log for related error messages. Resolve any errors and restart the database. [SQLSTATE HY000]
Msg 3313, Sev 21, State 1, Line 1 : During redoing of a logged operation in database 'test1', an error occurred at log record ID (412500:38522:403). Typically, the specific failure is previously logged as an error in the Windows Event Log service. Restore the database from a full backup, or repair the database. [SQLSTATE HY000]
Msg 9001, Sev 21, State 1, Line 1 : The log for database 'test1' is not available. Check the event log for related error messages. Resolve any errors and restart the database. [SQLSTATE HY000]

SQL 2008R2: Can't receive notifications to my email

$
0
0

Hello all!

I've recently installed MS SQL2008 R2 server, created two maintenance plans, one operator with my correct email and configured Database email. 

I am concerned Database email, I configured maintenance jobs that when the job completes, send an email to operator, but the sql server does not send it :( I see the logs, that it even didn't tried to send. 

Test emails works correctly. 

Can anybody advice me, how to get emails work?

Uninstalling Full-Text Search

$
0
0

We have an instance of SQL Server 2005 which we are about to upgrade to SQL Server 2008R2.

The Upgrade adviser has informed us that we must deal with the Full-Text search before we upgrade.

Full-Text Search is installed but disabled. So, it would be best for us not to have it at all.

My question is this.. How do I uninstall it?

The OS is Windows Server 2008 R2 Standard.

Thanks,

Les


SQL Server Memory Questions We were too shy to ask

$
0
0

Hi,

I have the following SQL Server Memory related questions. Shedding light on the same highly appreciated.

1. The Maximum Memory Configuration applies only to BufferPool Memory Usage.

2. BufferPool & Plan Cache Memory usages are different and Plan Cache Memory usage is not restricted by Maximum Memory Setting.

3. I am using Process Explorer at on server on which the Maximum Memory configuration is set to 18 Gigs whereas the total SQL Server is showing as 19+ Gigs, the Physical Memory on this server is 24 Gigs. I understand there some non-bufferpool usages, Is the non-bufferpool usage could be the only content.

4. What are the major memory usage blocks that is showing with Process explorer like, Bufferpool, Plan Cache, Non-bufferpool memory usages, is there any other memory usage items ?

5.On a 2008 64-bit instance, Maximum Memory is configured with 18 Gigs and the Process Explorer is showing the memory usage as 19+ Gigs, As per task manager the memory usage is more than 95 % of the total memory 24 Gigs. To get rid of the alert, If I forcefully issue the following queries, I am able to get rid of the memory critical alerts, i.e using Maximum Memory configuration the maximum limit is reduced to 4 Gigs and increasing it again to 18 Gigs, is this an recommended way of doing ? If not, what could be the impact,

EXEC  sp_configure‘max server memory (MB)’,4096;
GO
RECONFIGURE;
GO

EXEC  sp_configure‘max server memory (MB)’,18432;
GO
RECONFIGURE;
GO

6. I have issued DBCC FREEPROCCACHE on the SQL Server instance, and the memory usage on Process Explorer is not getting reduced. (Before issuing this query check that the total plan cache usage memory is more than 3 Gigs, the following query is used to check the plan cache memory usage :

SELECT SUM(cast(size_in_bytes AS BIGINT))/1024/1024 AS 'Size (MB)'
FROM sys.dm_exec_cached_plans;


SQL 2012, backup with Stored Procedures

$
0
0

I am new with SQL and has been giving an assignment to make backup of our database with stored procedures.

How do I do that?

Test

Question for SQL execution plan, strange..

$
0
0

HI, all

We meet a strange problem for a execution plan. First, we have a StoreProc, it runs around less than 20 secs. One day, it runs more than 5 mins (Execution plan 1). I checked all the index (fragmentation is low and Scan density is high), and re-run the update statistics, but the performance still have no any improvement.

This is very strange for me, why the query becomes slow suddenly on one day (we will know the performance immedidately because it is a daily function, user will report to us if the performance is low, we only got complain today.)?

Finally, we tested in two ways.

1. We run the below update statistic command with one index - "update statistics dbo.PCMS_CARD_TRANS MGM_IDX_PCMS_TRANS_TIME_PROCESSING"

Result: It runs under 20 secs.

2. We create a new index - "MGM_IDX_Test_TRANS_TIME"

Result: It runs around 1 second, but I checked the execution plan (Execution plan 2) didn't change and the new index is not use for it...we feel strange again on it......

All information was included in below:

Table - PCMS_CARD_TRANS, PCMS_CARD_PROFILE.

VIEW - PCMS_V_CR_CARD_STOCK

StoreProc:  PCMS_CardRoom_GetProcessedCardStock

Index: All zipped.

Physical Memory: 97%

$
0
0

I have a SQL Server 2008 R2 on Windows Server 2008 R2, on 64-bit virtual machine, dual processors dual quad core , and 32 GB RAM.

If I restart the server, and after all the processes and services start running, the used memory is not more than 4 ~ 6 GB (I don't remember exactly, but small compared to the overall 32 GB). Every day the used memory increases for 2~3 GB!, till it reaches 97% of the physical memory (31 GB),  29 GB of them for the SQL Server:

My question is how can I know what SQL Server processes or queries causes those increases in the memory? and if it is a process or query, why the used memory is not released after that process or query finishes ?!

Honestly, there is no complain about the performance of the server, but the weird thing is that as much as I give the server RAM as much as the SQL Server takes! The server was 8 GB and I increased it to 16 then 32 GB, but the SQL Server keeps eating more and more!

Viewing all 1519 articles
Browse latest View live


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