Quantcast
Channel: SQL Server Database Engine forum
Viewing all 12963 articles
Browse latest View live

logshipping wrong database alert

$
0
0

We have a wrong database configured for alert, JKUINMHYU1.JOLRsty should only be a primary database
JKUINMHYU2.JOLRsty should be secondary.
In the mgmt studio, properties of JKUINMHYU1.JOLRsty, transaction log shipping page, We only see JKUINMHYU2.JOLRsty as secondary.

But when we run the following commands, we see a difference.
any way we can remove the the secondary logshipping for JKUINMHYU1.JOLRsty

as run on the primary server JKUINMHYU1

sp_help_log_shipping_monitor

status is_primary server                                                                                                                           database_name                                                                                                                    time_since_last_backup last_backup_file                                                                                                                                                                                                                                                 backup_threshold is_backup_alert_enabled time_since_last_copy last_copied_file                                                                                                                                                                                                                                                 time_since_last_restore last_restored_file                                                                                                                                                                                                                                               last_restored_latency restore_threshold is_restore_alert_enabled
------ ---------- -------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------- ---------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------- ----------------------- -------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------- ----------------- ------------------------
0      1          JKUINMHYU1                                                                                                                      JOLRsty                                                                                                                          5                      e:\JKUINMHYU1\tlogs\JOLRsty_20131202021521.trn                                                                                                                                                                                                                  60               1                       NULL                 NULL                                                                                                                                                                                                                                                             NULL                    NULL                                                                                                                                                                                                                                                             NULL                  NULL              NULL
NULL   0          JKUINMHYU2                                                                                                                      JOLRsty                                                                                                                          NULL                   NULL                                                                                                                                                                                                                                                             NULL             NULL                    NULL                 NULL                                                                                                                                                                                                                                                             NULL                    NULL                                                                                                                                                                                                                                                             NULL                  NULL              NULL
1      0          JKUINMHYU1                                                                                                                      JOLRsty                                                                                                                          NULL                   NULL                                                                                                                                                                                                                                                             NULL             NULL                    NULL                 NULL                                                                                                                                                                                                                                                             142471                  NULL                                                                                                                                                                                                                                                             NULL                  45                1

exec sys.sp_check_log_shipping_monitor_alert
Msg 14421, Level 16, State 1, Procedure sp_check_log_shipping_monitor_alert, Line 61
The log shipping secondary database JKUINMHYU1.JOLRsty has restore threshold of 45 minutes and is out of sync. No restore was performed for 142472 minutes. Restored latency is 0 minutes. Check agent log and logshipping monitor information.


T


Avoid or Remove Deadlock

$
0
0

Hi,

I have two process running parallel. One process(process1) is deleting rows in table 1. But in another process(process2) table2 is getting inserted with rows.

Table2 has table1's primary key as reference. Here the process1 locks the table 1 while deleting. But process2 seeks the table1 for inserting the data in table 2.

S0 these tables creates the dead lock.

How to avoid this deadlock situation?

Thanks In Advance,

Dinesh.

Login failed to sql server after changing domain account

$
0
0

Dear all

I have joined the server running sql server 2012 to another domain because my previous DC demoted, created domain account then used the account to start sql server service successful. The problem I cannot connect to sql server engine using sql server management studio, it is using the previous account that has been removed. i didn't configured the mixed mode authentication initially 

I think is rejecting because the login account I am using is not in sql server. how can i connect to sql server to add the account or any other solution?

Regards

Sadock

Be our December TechNet SQL DBE Guru. Give the gift of code!

$
0
0

It's that time of the year again!

It's Giving time!

A time to think of those less awesome than you.

A time to give something back to the community.

Think of those happy faces you will make, as they open that article!

Remember, "A TechNet Wiki article is not just for Christmas, it's for eternity"!!!

A TechNet article is the gift that keeps on giving!

If you have some spare over this upcoming festive month, please give the gift of code.

So please wrap up some code with plenty of explanation and pop it under our TechNet tree!

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

HOW TO WIN

1) Please copy over your Microsoft technical solutions and revelations toTechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

Winning this award in your favoured technology will help us learn the active members in each community.

Feel free to ask any questions below.

More about TechNet Guru Awards

Thanks in advance!
Pete Laker


#PEJL

Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over to the one and onlyTechNet Wiki, for future generations to benefit from! You'll never get archived again!

If you are a member of any user groups, please make sure you list them in the Microsoft User Groups Portal. Microsoft are trying to help promote your groups, and collating them here is the first step.

Database backup got failed because of below error.

$
0
0

Hi All,

PFSS,

we are taking the backup of the database through maintenance plan wizard. 

is there any other way without changing the name of database?

Thanks,


rup



Performance Issue Using T4199 or T4126

$
0
0

Hi, we migrated a database from a SQL Server 2008 server (production) to a SQL Server 2008 R2 server (test - version 10.50.4000).  The test server has the trace flag 4199 enabled.  The original production server does not use the trace flag.  One of the queries (with a complicated ON clause) became very slow.  As soon as I removed the trace flag and restarted, the query is fast again. 

With T4199: (takes 30 seconds)

Table 'complaint_data'. Scan count 12296800, logical reads 39196050, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Table 'enhancement'. Scan count 4, logical reads 101956, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Table 'charging_language_segment'. Scan count 9, logical reads 38, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Table 'charge_filed'. Scan count 1, logical reads 3, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Table 'defendant'. Scan count 1, logical reads 2, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Without T4199: (takes less than second)

Table 'Worktable'. Scan count 0, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Table 'complaint_data'. Scan count 80, logical reads 320, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Table 'charging_language_segment'. Scan count 9, logical reads 38, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Table 'enhancement'. Scan count 3, logical reads 33, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Table 'charge_filed'. Scan count 1, logical reads 3, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Table 'defendant'. Scan count 1, logical reads 2, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

I did update the usage and statistics, but it made no difference.   I removed the T4199 flag from startup.  I was able to use DBCC TRACEON one at a time, usinghttp://support.microsoft.com/kb/974006, and isolate the issue to trace flag 4126 (http://support.microsoft.com/kb/959013).  I had to use "OPTION(RECOMPILE)" to insure I was getting a new plan each test.  This flag does not seem to have anything to do with this query.  I don't see any local publications or subscriptions. 

Here's the query.  (Yes, that's an ugly ON clause.  This is ancient code.  I did create a version that optimizes with or without the trace flag, but we have a lot of other code to worry about.  A developer just happened to notice this issue on this query.) 

DECLARE @case_sid int
SET @case_sid = 132970
SELECT COUNT(DISTINCT CAST(e.enhancement_number AS VARCHAR(10)) + CAST(c.segment_number AS VARCHAR(10)))
FROM charging_language_segment c
INNER JOIN enhancement e
ON c.offense_sid = e.offense_sid
	AND c.segment_type IN ('CITY', 'CNTY', 'CRTN', 'CRTP', 'FARM', 'JNDR', 
		'NAME', 'NAR', 'SEL', 'ST', 'VHCL', 'WPN')
	AND e.charge_sid IN (
		SELECT charge_sid 
		FROM charge_filed 
		WHERE defendant_sid IN (
			SELECT defendant_sid 
			FROM defendant 
			WHERE case_sid = @case_sid
			)
		)
	AND 'E' + CAST(e.enhancement_number as varchar(9)) + '_' + CAST(c.segment_number AS VARCHAR(9)) 
		NOT IN
		  (SELECT DISTINCT cd.count_number + '_' + CAST(cd.segment_number AS VARCHAR(9)) 
		  FROM complaint_data cd
		  INNER JOIN enhancement e2
		  ON cd.count_number = 'E' + CAST(e2.enhancement_number AS VARCHAR(9))
			  AND cd.case_sid = @case_sid
			  AND cd.complaint_data_value IS NOT NULL
			  AND cd.complaint_data_value <> '')
OPTION(RECOMPILE)	

Does anybody have any advice?  Perhaps T4199 is no longer an option once we have production code not using the flag? 

Thanks, Randy


Randy in Marin

SQL server CLR creation error "Failed to create AppDomain"

$
0
0

We have a CLR stored procedure registered on all different SQL environment which was working perfectly. But one SQL server 2008R2 instance throw an exception while creating CLR as:

Failed to create AppDomain "DatabaseName.dbo[runtime].18".

The domain manager specified by the host could not be instantiated.

The same SQL instance was working fine in same days back.

We had tried a lot by repairing .net framework 2.0 and 3.5. Also tried by disabling CLR and drop-created CLR’s again but still the same error.

Is there any server specific configuration need to check and correct?

Pravin Pandit


From MSDN Subscription

Any script to add multiple agent jobs in new agent category?

$
0
0

I have created new agent category and now I want to add jobs under that category. Any script which can fulfill above requirement?


Rahul


SQL 2012 statistics issue

$
0
0

Hello,

I have a performance problem on my SQL 2012 SP1 enterprise edition database server. Basically we have a query that is reporting against a 600 million row table on which we have a clustered index and a non clustered covering index.The query runs extremly slow when it uses the non clustered index.The reason being the query incorectly assumes this index has only 1 row (estimated number of rows 1,actual number of rows around 2 million) while hash joining with a temp table and  hashes this index into memory which spills to tempdb. Even though I have updated the statistics with FULLSCAN multiple times and flushed the query cache, the query continues to assume the same. If I drop the non clustered index the query runs fast as it uses the clustered index which it correctly diagnose the row count. The nonclustered index/statistics is created on  int,Datetime column whereas the clustered index is on datetime,int columns. I cannot use query hint to force it to use clustered index for this query. Can someone suggest where might be the problem? Appreciate your help.

SELECT
Correlation.Domain as Domain,
ns.InterfaceID AS InterfaceID,
data.SourceIPSort AS IPSort, data.SourcePort AS Port, data.SourceAS as AsId,
data.*
FROM #Temptab ns
INNER JOIN Tab3 data  WITH (NOLOCK) ON ns.InterfaceID = InterfaceIDRx
INNER JOIN View1 AS Correlation ON Correlation.IPAddressSort = SourceIPSort
      WHERE  (1=1)
    AND ( StartTime >= '2013-11-15T00:00:00' AND StartTime < '2013-11-19T00:00:00' )AND(NodeID=998)

Sample of historam

Statistics for INDEX 'IX_NodeID_StartTime3'.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Name                            Updated                         Rows                            Rows Sampled                    Steps                           Density                         Average Key Length              String Index                   
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
IX_NodeID_StartTime3            Nov 23 2013  3:13PM             639376094                       639376094                       200                             5.374837E-06                    8                               NO                                                              639376094                      

All Density                     Average Length                  Columns                        
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
0.004424779                     4                               NodeID                         
1.66179E-07                     8                               NodeID, StartTime              

Histogram Steps                
RANGE_HI_KEY                    RANGE_ROWS                      EQ_ROWS                         DISTINCT_RANGE_ROWS             AVG_RANGE_ROWS                 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1                               0                               94346                           0                               1                              
2                               0                               58573                           0                               1                              
3                               0                               100618                          0                               1                              
5                               0                               2533304                         0                               1                              
35                              0                               8889027                         0                               1                              
36                              0                               4214197                         0                               1                              
38                              0                               1.137143E+07                    0                               1                              
39                              0                               1.297758E+07                    0                               1                              
47                              0                               877041                          0                               1                              
49                              0                               7284844                         0                               1                              
64                              0                               4544215                         0                               1                              
65                              0                               1421458                         0                               1                              

Perfmon Versus DMVs

$
0
0

I am looking at Perfmon and I can see that for the following counters

SQLServer:Buffer Manager               Buffer cache hit ratio                                                                    
SQLServer:Buffer Manager               Page life expectancy                                                                      
SQLServer:General Statistics           User Connections                                                                          
SQLServer:SQL Statistics                 Batch Requests/sec                                                                        
SQLServer:SQL Statistics                 SQL Compilations/sec                                                                      
SQLServer:SQL Statistics                 SQL Re-Compilations/sec                                                                   
SQLServer:Memory Manager            Memory Grants Pending                                                                     
SQLServer:Memory Manager            Target Server Memory (KB)                                                                 
SQLServer:Memory Manager            Total Server Memory(KB)

                                                                          
I can find this information in sys.dm_os_performance_counters.

 

However, I am wondering for these counters

LogicalDisk                  Avg Disk Queue Length
LogicalDisk                  Avg Disk Read Queue Length
LogicalDisk                  Avg Disk Write Queue Length
LogicalDisk                  Current Disk Queue Length
LogicalDisk                  Disk Bytes/sec
Memory                       Available Mbytes
Memory                       Pages/sec
Paging File                  % Usage
Paging File                  % Usage Peak
PhysicalDisk                % Disk Time
PhysicalDisk                Avg Disk Queue Length
PhysicalDisk                Avg Disk sec/Read
PhysicalDisk                Avg Disk sec/Write
PhysicalDisk                Disk Bytes/sec
PhysicalDisk                Disk Reads/sec
PhysicalDisk                Disk Transfers/sec
PhysicalDisk                Disk Writes/sec
Processor %               Idle Time
Processor %               Interrupt Time
Processor %               Privileged Time
Processor %               Processor Time
Processor %               User Time
System                       Context Switches/sec
System                       Processor Queue Length
System                       Threads

 

can they be found in a DMV?


lcerni

A scalar function removes rows

$
0
0

Hello,

I have a complex scalar function which requires 2 integers and returns 1 integer.

Now if I add that function to my query I loose two rows. Is that possible ?

The function is add to the select list. I thought a scalar function would always return a 1 value or NULL.

Any idea's ?

Constantijn

Multiple Partitioned Indexed Views

$
0
0

Hi,

I have a peculiar problem for which I can't seem to find any info. In a DW scenario I have a fact table which is partitioned. To insert/update the table we switch partitions out, then in per day. It all works very well when done with no indexed views on top of the table.

Now, when I have indexed view defined only on the main and switch-in tables things also work just fine. However, if I have indexed views for two different aggregations defined on the main and switch-in tables, I get a message telling me that the target table has 2 indexed views while the source table has 0 matching views.

I have indexed views on the fact table and the switch-in table matching exactly - everything is precisely the same, minus the table name. The clustered indexes are defined on the same partition scheme, etc.

It is weird that they work separately, but not in combination. Is there a reason why this could be happening??

Thanks!


Boyan Penev --- http://www.bp-msbi.com

Give us some candy - please upvote helpful posts and mark your answers!

SQL Restore error

$
0
0

Dear all,

I'm trying to restore an SQL Server database from one server to another but I get the following error:

The media family on device 'G:\FULL_databasename.bak' is incorrectly formed. SQL Server cannot process this media family.
RESTORE HEADERONLY is terminating abnormally. (.Net SqlClient Data Provider)

Would anyone let me know what I should do to resolve the issue please?

Thank you.

Sequence restarted at restart server???

$
0
0

I've created a sequence for a logging table:

CREATE SEQUENCE [dbo].[LoggingSequence] 
 AS [bigint]
 START WITH 110356
 INCREMENT BY 1
 MINVALUE 1
 MAXVALUE 9223372036854775807
 CACHE  2000 
GO

But now it has happened twice that after a restart of the server, the sequence is restarted...

Huh? And i've tested it on a different server and there it is working as aspected, so why not on our production server???

Regards,

Henk


Kind regards, Henk

SQL Agent Job is failing due to job has been suspended

$
0
0

Hi All,

I am working on Migration Project,  so after installed sql server i restored msdb database and edited maintatince plans with new connection string and when i am trying to run any job i am getting below error message

Step 1 of job 'SystemDBBackupPlan.Subplan_1' (0x2B68822C6938784AAB80FEFA82DDEAC7) cannot be run because the SSIS subsystem failed to load. The job has been suspended.

SQLServerAgent Error: Request to run job UserDBBackupPlan.Subplan_1 (from User DBA) refused because the job has been suspended. (.Net SqlClient Data Provider)

Any suggestion

Thanks,

Maddy


INSERT statement conflicted with the FOREIGN KEY constraint. The statement has been terminated.

$
0
0

Hi all,

I get this error when inserting data...

The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Participant_Log_BiometricInstance_Participant_Activities". The conflict occurred in database "ProvantCustomerPortal", table "dbo.Activities", column 'Id'.
The statement has been terminated.

My query looks like this 

insert into [dbo].[Participant_BiometricInstance](ParticipantId, ActivityId, ProviderTypeId, Fasting, ExternalSystemId, ResultsDate, ModifiedBy, ModifiedDate)
select participantID,'','','',NULL,getdate(),NULL,getdate() from [dbo].[Participant_Profile]
union all 
select '',id,'','','','','','' from [dbo].[Activities]
union all
select '','',id,'','','','','' from [dbo].[Log_ProviderType]

ParticipantID, ActivityId, ProviderTypeId are Foreign Keys.

Id is primary key in Activity table

Id is primary key in Log_ProviderType.

Does anyone know how can we solve this?


Debugging SQL minidump - sqllang.dll symbol issue

$
0
0

Hi,

I am attempting to debug a SQL 2012 minidump to find the root cause for the dump.

I am getting the following log

0:006> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************

DBGHELP: C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x64\sqllang.dll - file not found
DBGHELP: C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x64\sqllang.dll - file not found
DBGHELP: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqllang.dll - mismatched timestamp
DBGHELP: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqllang.dll - mismatched timestamp
DBGHELP: sqllang.dll not found in C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn
DBGHELP: sqllang.dll not found in C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn
SYMSRV:  Get File Path: /download/symbols/sqllang.dll/519DC178208f000/sqllang.dll

SYMSRV:  Get File Path: /download/symbols/sqllang.dll/519DC178208f000/sqllang.dll

SYMSRV:  Notifies the client application that a proxy has been detected.
SYMSRV:  Notifies the client application that a proxy has been detected.
SYMSRV:  Connecting to the Server: http://msdl.microsoft.com/download/symbols.
SYMSRV:  Connecting to the Server: http://msdl.microsoft.com/download/symbols.
SYMSRV:  Successfully connected to the Server.
SYMSRV:  Successfully connected to the Server.
SYMSRV:  Sending the information request to the server.
SYMSRV:  Sending the information request to the server.
SYMSRV:  Successfully sent the information request to the server.
SYMSRV:  Successfully sent the information request to the server.
SYMSRV:  Waiting for the server to respond to a request.
SYMSRV:  Waiting for the server to respond to a request.
SYMSRV:  Successfully received a response from the server.
SYMSRV:  Successfully received a response from the server.
SYMSRV:  Closing the connection to the Server.
SYMSRV:  Closing the connection to the Server.
SYMSRV:  Successfully closed the connection to the Server.
SYMSRV:  Successfully closed the connection to the Server.
SYMSRV:  Notifies the client application that a proxy has been detected.
SYMSRV:  Notifies the client application that a proxy has been detected.
SYMSRV:  Connecting to the Server: http://msdl.microsoft.com/download/symbols.
SYMSRV:  Connecting to the Server: http://msdl.microsoft.com/download/symbols.
SYMSRV:  Successfully connected to the Server.
SYMSRV:  Successfully connected to the Server.
SYMSRV:  Sending the information request to the server.
SYMSRV:  Sending the information request to the server.
SYMSRV:  Successfully sent the information request to the server.
SYMSRV:  Successfully sent the information request to the server.
SYMSRV:  Waiting for the server to respond to a request.
SYMSRV:  Waiting for the server to respond to a request.
SYMSRV:  Successfully received a response from the server.
SYMSRV:  Successfully received a response from the server.
SYMSRV:  Closing the connection to the Server.
SYMSRV:  Closing the connection to the Server.
SYMSRV:  Successfully closed the connection to the Server.
SYMSRV:  Successfully closed the connection to the Server.
SYMSRV:  Get File Path: /download/symbols/sqllang.dll/519DC178208f000/file.ptr

SYMSRV:  Get File Path: /download/symbols/sqllang.dll/519DC178208f000/file.ptr

SYMSRV:  Notifies the client application that a proxy has been detected.
SYMSRV:  Notifies the client application that a proxy has been detected.
SYMSRV:  Connecting to the Server: http://msdl.microsoft.com/download/symbols.
SYMSRV:  Connecting to the Server: http://msdl.microsoft.com/download/symbols.
SYMSRV:  Successfully connected to the Server.
SYMSRV:  Successfully connected to the Server.
SYMSRV:  Sending the information request to the server.
SYMSRV:  Sending the information request to the server.
SYMSRV:  Successfully sent the information request to the server.
SYMSRV:  Successfully sent the information request to the server.
SYMSRV:  Waiting for the server to respond to a request.
SYMSRV:  Waiting for the server to respond to a request.
SYMSRV:  Successfully received a response from the server.
SYMSRV:  Successfully received a response from the server.
SYMSRV:  Closing the connection to the Server.
SYMSRV:  Closing the connection to the Server.
SYMSRV:  Successfully closed the connection to the Server.
SYMSRV:  Successfully closed the connection to the Server.
SYMSRV:  c:\symbols\sqllang.dll\519DC178208f000\sqllang.dll not found
SYMSRV:  c:\symbols\sqllang.dll\519DC178208f000\sqllang.dll not found
SYMSRV:  http://msdl.microsoft.com/download/symbols/sqllang.dll/519DC178208f000/sqllang.dll not found
SYMSRV:  http://msdl.microsoft.com/download/symbols/sqllang.dll/519DC178208f000/sqllang.dll not found
DBGHELP: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqllang.dll - mismatched
DBGHELP: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqllang.dll - mismatched
DBGHELP: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqllang.dll - mismatched
DBGHELP: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqllang.dll - mismatched

FAULTING_IP:
sqllang!stackTrace+107
000007fb`d123c9f7 456d            ins     dword ptr [rdi],dx

EXCEPTION_RECORD:  ffffffffffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 000007fbd123c9f7 (sqllang!stackTrace+0x0000000000000107)
   ExceptionCode: 00000000
  ExceptionFlags: 00000000
NumberParameters: 0

CONTEXT:  0000000000000000 -- (.cxr 0x0;r)
rax=0000000000344fd0 rbx=0000000000000000 rcx=0000000000320000
rdx=0000000000000008 rsi=0000000000000064 rdi=0000000000000f0c
rip=000007fbdd0a2c2a rsp=0000000003d9ce48 rbp=0000000003dbef10
 r8=0000000000000086  r9=0000000000000000 r10=0000000000000000
r11=0000000003d9c168 r12=0000000000000000 r13=0000000000000000
r14=0000000003d9ce78 r15=0000000000000000
iopl=0         nv up ei ng nz na po cy
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000287
ntdll!NtWaitForSingleObject+0xa:
000007fb`dd0a2c2a c3              ret

DEFAULT_BUCKET_ID:  WRONG_SYMBOLS

PROCESS_NAME:  sqlservr.exe

NTGLOBALFLAG:  0

APP:  sqlservr.exe

ANALYSIS_VERSION: 6.3.9600.16384 (debuggers(dbg).130821-1623) amd64fre

MANAGED_STACK: !dumpstack -EE
OS Thread Id: 0x5f8 (6)
Current frame:
Child-SP         RetAddr          Caller, Callee

LAST_CONTROL_TRANSFER:  from 000007fbda0a10ea to 000007fbdd0a2c2a

PRIMARY_PROBLEM_CLASS:  WRONG_SYMBOLS

BUGCHECK_STR:  APPLICATION_FAULT_WRONG_SYMBOLS

STACK_TEXT: 
000007fb`d123c9f7 000007fb`d123c9f7 sqllang!stackTrace+0x107


FOLLOWUP_IP:
sqllang!stackTrace+107
000007fb`d123c9f7 456d            ins     dword ptr [rdi],dx

SYMBOL_STACK_INDEX:  0

SYMBOL_NAME:  sqllang!stackTrace+107

FOLLOWUP_NAME:  MachineOwner

MODULE_NAME: sqllang

IMAGE_NAME:  sqllang.dll

DEBUG_FLR_IMAGE_TIMESTAMP:  519dc178

STACK_COMMAND:  dps 7fbd123c9f7 ; kb

FAILURE_BUCKET_ID:  WRONG_SYMBOLS_0_sqllang.dll!stackTrace

BUCKET_ID:  APPLICATION_FAULT_WRONG_SYMBOLS_sqllang!stackTrace+107

ANALYSIS_SOURCE:  UM

FAILURE_ID_HASH_STRING:  um:wrong_symbols_0_sqllang.dll!stacktrace

FAILURE_ID_HASH:  {1cd55e21-f050-d551-7897-61b3cb5bf8d6}

Followup: MachineOwner
---------

0:006> .ecxr
rax=0000000000000000 rbx=0000000000000000 rcx=0000000000000000
rdx=0000000000000000 rsi=0000000000000000 rdi=0000000000000000
rip=0000000000000000 rsp=0000000000000000 rbp=0000000000000000
 r8=0000000000000000  r9=0000000000000000 r10=0000000000000000
r11=0000000000000000 r12=0000000000000000 r13=0000000000000000
r14=0000000000000000 r15=0000000000000000
iopl=0         nv up di pl nz na pe nc
cs=0000  ss=0000  ds=0000  es=0000  fs=0000  gs=0000             efl=00000000
00000000`00000000 ??              ???
0:006> kv 1000
Child-SP          RetAddr           : Args to Child                                                           : Call Site
00000000`00000000 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : 0x0

***********************

How do I resolve this issue?" Been going round in circles with this one.

Thanks

Michael

I/O Frozen in SQL logs

$
0
0

Hello,

Twice a day during the DPM Backups users could not access anymore the applications...
I noticed in the SQL logs these errors:

http://troubleshootingsql.wordpress.com/2010/01/06/io-frozen-messages-while-taking-nt-backup-for-sql-databases/

http://support.microsoft.com/default.aspx?scid=kb%3bEN-US%3b951288

08/02/2010 05:36:28,spid106,Unknown,I/O was resumed on database FDB_OrderView_20091106. No user action is required.
08/02/2010 05:36:28,spid106,Unknown,I/O is frozen on database FDB_OrderView_20091106. No user action is required. However<c/> if I/O is not resumed promptly<c/> you could cancel the backup.
08/02/2010 05:35:41,Backup,Unknown,Database backed up. Database: master<c/> creation date(time): 2010/06/22(06:38:01)<c/> pages dumped: 1<c/> first LSN: 2902:280:37<c/> last LSN: 2902:304:1<c/> number of dump devices: 1<c/> device information: (FILE=1<c/> TYPE=VIRTUAL_DEVICE: {'{09D5F68B-F1ED-4B48-9FF1-D081C678A56B}1'}). This is an informational message only. No user action is required.
08/02/2010 05:35:40,spid106,Unknown,I/O was resumed on database master. No user action is required.
08/02/2010 05:35:40,spid106,Unknown,I/O is frozen on database master. No user action is required. However<c/> if I/O is not resumed promptly<c/> you could cancel the backup.
08/02/2010 05:34:56,Backup,Unknown,Database backed up. Database: ReportServerTempDB<c/> creation date(time): 2008/02/21(10:24:41)<c/> pages dumped: 1<c/> first LSN: 342:323:37<c/> last LSN: 342:339:1<c/> number of dump devices: 1<c/> device information: (FILE=1<c/> TYPE=VIRTUAL_DEVICE: {'{43DF9404-2459-4E30-B28E-144D0C879483}1'}). This is an informational message only. No user action is required.
08/02/2010 05:34:56,spid164,Unknown,I/O was resumed on database ReportServerTempDB. No user action is required.
08/02/2010 05:34:56,spid164,Unknown,I/O is frozen on database ReportServerTempDB. No user action is required. However<c/> if I/O is not resumed promptly<c/> you could cancel the backup.
08/02/2010 05:34:13,Backup,Unknown,Database backed up. Database: ReportServer<c/> creation date(time): 2008/02/21(10:24:40)<c/> pages dumped: 1<c/> first LSN: 224:85:37<c/> last LSN: 224:101:1<c/> number of dump devices: 1<c/> device information: (FILE=1<c/> TYPE=VIRTUAL_DEVICE: {'{BE633AB6-29A8-49F2-A3D8-4B2727847388}1'}). This is an informational message only. No user action is required.
08/02/2010 05:34:12,spid164,Unknown,I/O was resumed on database ReportServer. No user action is required.
08/02/2010 05:34:12,spid164,Unknown,I/O is frozen on database ReportServer. No user action is required. However<c/> if I/O is not resumed promptly<c/> you could cancel the backup.
08/02/2010 05:33:27,Backup,Unknown,Database backed up. Database: model<c/> creation date(time): 2003/04/08(09:13:36)<c/> pages dumped: 1<c/> first LSN: 215:2368:37<c/> last LSN: 215:2392:1<c/> number of dump devices: 1<c/> device information: (FILE=1<c/> TYPE=VIRTUAL_DEVICE: {'{1F0249D6-F023-487E-B701-2BC54134313C}1'}). This is an informational message only. No user action is required.
08/02/2010 05:33:26,spid164,Unknown,I/O was resumed on database model. No user action is required.
08/02/2010 05:33:26,spid164,Unknown,I/O is frozen on database model. No user action is required. However<c/> if I/O is not resumed promptly<c/> you could cancel the backup.
08/02/2010 05:31:42,Backup,Unknown,Database backed up. Database: CA_LosAngeles_UCLAMedicalCenter_Reagan_EDMS<c/> creation date(time): 2009/05/14(07:35:15)<c/> pages dumped: 1<c/> first LSN: 306387:6654:154<c/> last LSN: 306387:6718:1<c/> number of dump devices: 1<c/> device information: (FILE=1<c/> TYPE=VIRTUAL_DEVICE: {'{51B2DCEE-F371-482F-8AE1-24787B254CFA}1'}). This is an informational message only. No user action is required.
08/02/2010 05:31:41,spid164,Unknown,I/O was resumed on database CA_LosAngeles_UCLAMedicalCenter_Reagan_EDMS. No user action is required.
08/02/2010 05:31:41,spid164,Unknown,I/O is frozen on database CA_LosAngeles_UCLAMedicalCenter_Reagan_EDMS. No user action is required. However<c/> if I/O is not resumed promptly<c/> you could cancel the backup.
08/02/2010 05:30:53,Backup,Unknown,Database backed up. Database: msdb<c/> creation date(time): 2005/10/14(01:54:05)<c/> pages dumped: 1<c/> first LSN: 88691:264:219<c/> last LSN: 88691:360:1<c/> number of dump devices: 1<c/> device information: (FILE=1<c/> TYPE=VIRTUAL_DEVICE: {'{B8384534-CCC6-40A9-8310-97EABC4C7662}1'}). This is an informational message only. No user action is required.
08/02/2010 05:30:52,spid164,Unknown,I/O was resumed on database msdb. No user action is required.
08/02/2010 05:30:52,spid164,Unknown,I/O is frozen on database msdb. No user action is required. However<c/> if I/O is not resumed promptly<c/> you could cancel the backup.
08/02/2010 05:30:00,Backup,Unknown,Log was backed up. Database: CA_LosAngeles_UCLAMedicalCenter_Reagan_EDMS<c/> creation date(time): 2009/05/14(07:35:15)<c/> first LSN: 306380:8489:1<c/> last LSN: 306387:5872:1<c/> number of dump devices: 1<c/> device information: (FILE=2<c/> TYPE=DISK: {'EDMS'}). This is an informational message only. No user action is required.

Any idea how to fix this as it seems to be the issue isn't it?

Thanks,
Dom


System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 Support

Licensing for MS SQL Server 2000 & MSDE 2000

$
0
0

Hi,

I'd like to ask about the licensing requirement for Microsoft SQL Server Service Manager v8.00.20.39 and Microsoft SQL Server 2000 Desktop Engine (MSDE 2000).

Let me describe the situation.

In the company I'm working for, we have an accounting software using MS SQL Server Service Manager v8.00.20.39 and MS SQL Server 2000 Desktop Engine (MSDE 2000).
You can see MS SQL Server Service Manager v8.00.20.39 running in the systray and you can see a folder at this path: C:\Program Files\Microsoft SQL Server (where I found a readme file stating MS SQL Server 2000 Desktop Engine (MSDE 2000)).
We have 2 servers like this: 1 Windows Server 2003 R2 Enterprise and 1 Windows Server 2008 R2 Standard.

The company paid the license for the accounting software but no license has been paid for MS SQL. MS SQL is only installed because of this accounting software and it was the supplier who did the installation.

So my simple question is: do you need to purchase a license for this version of MS SQL?

I couldn't find the answer on Microsoft websites because everything related to licensing redirects you to the latest version of MS SQL Server (2012) which is not what I'm looking for.

Thanks in advance for your help.


Proof of concept by Monitoring the Data in MDF and NDF Files

$
0
0
Hi All:

As per the below statement from Microsoft:

SQL Server files can grow automatically from their originally specified size. When you define a file, you can specify a specific growth increment. Every time the file is filled, it increases its size by the growth increment. If there are multiple files in a filegroup, they will not autogrow until all the files are full. Growth then occurs in a round-robin fashion.

What we are looking for:

We have a primary group, on both MDF and NDF files, how can we monitor the data is segregating to MDF and NDF files as per the statement (round-robin fashion) above.

Please share me with your ideas to monitor.

Thanks,
Satish Kumar.

Thanks, Satish Kumar. Please mark as this post as answered if my anser helps you to resolves your issue :)


Viewing all 12963 articles
Browse latest View live


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