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

SQL server shutdown

$
0
0

HI all

I find the one of my sql server service suddenly shutdown. how can I know it's shutdown manually or accidentally?

Beside sql errorlog file, are there any method which I can dump more information duing shutdown accidentally ?


Error 9002 lead to a shutdown of db

$
0
0

Hello,

My database shutdown due to error 9002, instead of get in the read-only mode.

The error message is :

04/12/2013 16:34:15,spid169,Unknown,Database BizTalkMsgBoxDb was        
shutdown due to error 9002 in routine 'XdesRMReadWrite::RollbackToLsn'.
Restart for non-snapshot databases will be attempted after all          
connections to the database are aborted.    

We are looking for what could cause this shutdown ?

Any clue ?

Thanks for you help. Regards. Etienne.                         

Comparision of Tables Structures

$
0
0

hello

can we compare the two tables structures where the tables are from 2 different databases?

Suppose,Table A and B are present in Db1 and Db2 respectively.cane we compare their structure?

Cannot generate SSPI context.

$
0
0

We have two front end server and one backup database server.

I am facing this is error in event viewer of application log from 3 days.

Unknown SQL Exception 0 occurred. Additional error information from SQL Server is included below.

Cannot generate SSPI context.

what is the problem ?

Why heap table doesn’t support Ghost records?

$
0
0

Under default isolation level,we know index data page or non-clustered index leaf page supports ghost records ,but heap table doesn't.

So my question is why heap table doesn’t support Ghost records?


Monitor ressource governor workload group fails as data collection ?

$
0
0

Hi all,
I set up ressource governor in sql 2008 r2.
Am able to monitor cpu usage % per workload group live.
When I add "\SQLServer:Workload Group Stats (*)\CPU usage %" into a data collection no data for any (internal/default/myworkgroup) are collected?
What did I do wrong ??

Any help is highly appreciated!

TIA
acki4711


Device is not ready

$
0
0

Hi all

There are so many error logs on eventlog showing that "Device is not ready"

and in detail it is showing master.mdf . SQL service is still on, however can't get into the database through the management studio. 

any work around ?

SQL TRACE ID 1 was started by Login "SA"

$
0
0

SQL TRACE ID 1 was started by Login "SA"

SQL TRACE ID 2 was started by Login "SA"

In every minute it is creating 200MB file and filling my disk space.

Please help?

 

Thanks


sys.fn_hadr_backup_is_preferred_replica returns 0 on both nodes of cluster

$
0
0

I have setup a Windows 2012, SQL 20102, 2-node, non-shared storage Availability Group cluster. I am trying to backup the transaction logs and databases but the sys.fn_hadr_backup_is_preferred_replica function returns 0 on both nodes. I have changed backup preference settings multiple ways, rebuilt the availability group from scratch, rebooted both nodes and there is no change. If I remove the database from the availability group, it will backup no problem(using Ola Hallengren's scripts). We have a case sensitive collation(Latin1_General_BIN). Not sure If that may be an issue.

SELECT sys.fn_hadr_backup_is_preferred_replica('<db_name>') always returns 0 for a database in the availability group no matter what backup preference you set for the availability group.

Thanks, Mike

IDENTITY_INSERT

$
0
0

Hello all,

I have a table that has an identity column. Since I deleted all the data in the table by mistake, I tried to insert data from a restored copy of the table. So in the INSERT statement I just gave the column list and I got an IDENTITY_INSERT related error. So I set this option ON and I tried to insert again but it didn't work. Then I set the option OFF and this time the insert operation worked. But shouldn't the insert work with IDENTITY_INSERT ON option and not OFF? Also, will the identity value in the target table increase from the values inserted or will sql server use a different seed value to create next values?

Thanks.

Cannot create date/time type fields in SQL Server 2012?

$
0
0

I install SQL Server 2012 Enterprise version on my computer. However, it is very strange that I cannot create field with following types:

date,time,datetime2,datetimeoffset,hierarchyid

In SQL Server Management Studio, there are no above types. And if I using SQL statement with the above types, then get "type does not exist" error.

What is the problem?

Thanks

Sql Server agent - Job Schedule

$
0
0

I have set up few jobs in my Sql server to run periodically with my login credentials. If I change my windows password the job failed as the credentials was not updated with my new password.

Please suggest how to be independent of the change in my password for the jobs to not fail by this condition.


When SQL kill a process?

$
0
0

Without issuing "kill" to a process, will SQL Server kill a process by itself ??

Creating databases to an existing AG

$
0
0

Hi guys,

Hopefully you can help me to get to know the best way how to create new databases in an existing available group.

For SharePoint it is recommended to configure a CAP. Therefore I need an additional name and another IP but it this really necessary? If so there would be two names and two IPs for every AG if I want to install the databases directly.

http://technet.microsoft.com/en-us/library/hh913923(v=office.14).aspx

I thought therefore we configured the listener: “An availability group listener is a server name to which clients can connect in order to access a database in a primary or secondary replica of an AlwaysOn availability group.“

Why do we need a CAP too? Are there other ports in use?

Thanks everyone for clarification!

Viele Grüße

Christian 

High load RTCLOCAL SQL instance on idle Lync FE servers

$
0
0

Dear all,

(double posting from Lync Server 2013 topic)

I am facing a high CPU load on my lab Lync 2013 FE servers (both on an Enterprise FE server and a Standard FE server). No live users on the system (only 1 user logged in), purely a lab environment, completely idle.

Symptom: SQL server process (RTCLOCAL instance) consumes 80-90% CPU, and this activity is running for a very long time (since a couple of hours right now so I am not sure it will ever finish, or got stuck). If I manually restart the RTCLOCAL SQL instance service, the CPU load goes back to normal idle, and does not increase again.

The RTCLOCAL instance "tempdb" file is frequently accessed during this activity. It seems some infinite loop is happening, that cannot be finished in timely manner. I have looked at the SSMS Activity monitor, however I'm not a DB expert to recognize the issue from those counters. There are a couple of "Recent expensive queries", the top one regarding to "Microsoft.Rtc.Management.Xds.AppLayer.2008" having 30-60 executions/min, which sounds quite high to me.

Also, I have experienced a very similar issue on a Lync 2010 SE server a year ago, however I dont have the details anymore to confirm this.

Did anybody experience similar issues in the SQL process of Lync? I will not restart the SQL process for some time, so if anyone has idea how to troubleshoot this, I am happy to provide feedback, maybe catching a bug here?

azman + SQL Server 2008 : Access Denied

$
0
0

Hi,

I am trying to create a new Authorization store with Azman with SQL Server 2008 R2 on Windows Server 2008 Server machine. However, when i try to do that, i get an error from Azman : 

"Can not create an authorization store. The following problem occured : Access is Denied".

I then looked into the SQL Server logs which said : 

Error: 18456, Severity: 14, State: 38.

Login failed for user 'servername\Administrator'. Reason: Failed to open the explicitly specified database. [CLIENT: <local machine>]

However, my connection string was : mssql://Driver={SQL Server};Server={servername};User=sa;Password=pws;/AzDB/AzStore

I dont understand why the SQL server is trying to connect using "Administrator" even though i have specified the user as 'sa'.

Can somebody help me with this ?


Kulvinder Singh

Which database login is mapped to which databases and what permission are mapped.

$
0
0

Can I get a script that can give me the details of :

Login Name-->User Name-->Permission-->database Name

Which database login is mapped to which databases and what permission are mapped.


Thanks

Problem in Select Top 1

$
0
0

Hi All-


Its looking Strange for me!


I'm using following Query!



SELECT TOP 1 
      [Some_Column]
  FROM [Table] WHERE AlbumID = 'MW0001350412' AND ReleaseID='MR0003238514'


The Problem here is when I'm running the query for the very first time.. I'm getting one value.. If I'm running second time it is giving another value... Again If I'm running the query mulitiple times I'm getting the same value which I have got second time..


I have dropped all the data in table and I was trying the same and I'm getting the same problem..

Could anyone please help me out? I'm fed up

Thanks In Advance

Prabhu






[FullText] Indexer seems to cut up some words at accent position

$
0
0

I have a full text catalog defined on 2 VARCHAR columns of a single table. It works well except for a few words where indexation seems to cut the term where an accent is found. It doesn't do it for all accentuated words, only a minority of them. As a result, querying on these exact terms won't return any result but querying on accent-stripped parts of them will work.

select mycolumn from mytable where Id = 2028

mycolumn
------------------------------
<P>Anaïs et Alizé</P>

select * from sys.dm_fts_index_keywords_by_document(DB_ID(),Object_iD('mytable'))where display_term like 'Anaïs%' or display_term like 'Alizé%'

keyword    display_term    column_id    document_id    occurrence_count
--------------------------------------------------------------------------------------------------
(no results)

select * from sys.dm_fts_index_keywords_by_document(DB_ID(),Object_iD('mytable'))where display_term like 'Ana%' or display_term like 'Aliz%'

keyword    display_term    column_id    document_id    occurrence_count
-------------------------------------------------------------------------------------------------------------------------
0x0061006C0069007A    aliz    22    20259    1<== notice amputated words here
0x0061006E0061    ana    22    20259    1<== and there

I tried both to repopulate the index manually and rebuild it to no avail.

The odd thing is, we have a similar database on another server with the same data and exactly the same fulltext configuration and the complete words do appear in  terms referenced by that index :

select * from sys.dm_fts_index_keywords_by_document(DB_ID(),Object_iD('mytable'))where display_term like 'Anaïs%' or display_term like 'Alizé%'

keyword    display_term    column_id    document_id    occurrence_count
---------------------------------------------------------------------------------------------------------------------
0x0061006C0069007A0065    alize    22    20259    1
0x0061006E006100690073    anais    22    20259    1


Environment details :

- Microsoft SQL Server 2008 (SP3) - 10.0.5828.0 (X64)  Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)

- Server Collation : SQL_Latin1_General_CP1_CI_AI

- Catalog - Accent Sensitive : false,

- Language for Word Breaker : French for both columns

- Catalog track changes : Automatic

- Catalog Stoplist : SYSTEM

Has anyone experienced anything like this ?

Thanks for your help





SetFileIOOverlappedRange Error AFTER Installing SQL Server 2008 R2 SP2 / Win 2679255 / T8903

$
0
0

SQL Server 2008 R2 - 64 Bit

Version: 10.5.4260 (SP2 CU1)

OS: Windows Server 2008 R2 Enterprise 64 bit SP1 With Hotfix 2679255 installed

SQL Server Trace flag 8903 enabled

In the environment described above, we are sometimes experiencing the following error when restoring databases from backup:

SetFileIoOverlappedRange failed, GetLastError is 1314

Per blogs, forum posts, etc. (see the bottom of this post), I was under the impression that this error is fixed with SQL Server 2008 R2 in conjunction with Windows hotfix 2679255 and SQL Server Trace flag 8903. Yet this error still occurs.

Has anyone else seen this error AFTER updating to SP2 / T8903 / 2679255?

I realize that we can work around the issue by turning off T8903, but I'd still like to understand why this isn't working- seems like we have everything we need in place.

Any help appreciated!

Thanks,

Vince

Background posts:

http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/thread/74d2eaaa-cbcf-4870-9d99-e9b052805c2d

http://blogs.msdn.com/b/psssql/archive/2012/03/20/setfileiooverlappedrange-can-lead-to-unexpected-behavior-for-sql-server-2008-r2-or-sql-server-2012-denali.aspx

Viewing all 15872 articles
Browse latest View live


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