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

Login failed for user. Error 18456

$
0
0

Hi All,

Good day. I am just new in SQL 2012 r2 and we are trying to provision one SQL VM but we are getting an error a"Login failed for user. "Error 18456" when trying to login to the Database Engine for the 1st time via SQL Management Studio. We carefully follow the steps outline in the link below but no luck.

http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-provision-sql-server/

These are the logs"

2015-05-06 12:44:49.57 Logon       Error: 18456, Severity: 14, State: 5.
2015-05-06 12:44:49.57 Logon       Login failed for user 'SD\Admin'. Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]
2015-05-06 12:49:05.23 Logon       Error: 18456, Severity: 14, State: 5.
2015-05-06 12:49:05.23 Logon       Login failed for user 'SD\Admin'. Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]
2015-05-06 12:57:58.16 Logon       Error: 18456, Severity: 14, State: 5.
2015-05-06 12:57:58.16 Logon       Login failed for user 'SD\Admin'. Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]
2015-05-06 12:58:00.90 Logon       Error: 18456, Severity: 14, State: 5.
2015-05-06 12:58:00.90 Logon       Login failed for user 'SD\SAdmin'. Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]
2015-05-06 12:58:04.23 Logon       Error: 18456, Severity: 14, State: 5.
2015-05-06 12:58:04.23 Logon       Login failed for user 'SD\SPAdmin'. Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]

Steps Taken:

Allow 1433 firewall, use login as servername\default instance name, servername\local admin

Did we miss any steps?

Any advise will be much appreciated.

Thanks,

Glenn Jose




using metadata to identify which objects update my tables

$
0
0

Hi we run 2008 std edition (I believe r2 on this server, will double check) and I need to find a needle in a haystack.

I am looking at two tables and would like to learn which, if any objects on same db updates these tables.   I'd even live with any references to these tables.  I already know sql agent is out of the picture.  I'm looking for a static approach, not a monitoring one because its possible updates don't occur till month end.

Is there a way in sql server to query the answer to such a question using dmvs or something like dmvs?   What if I get bold and want to search all db's on this server for objects that update my two tables even across dbs?

In the mean time, i'll look at scripting all triggers and procs , and doing a search on these table names in the scripts. 

I don't know that I've ever seen a way to script all triggers before.  Procs I can easily script from the object explorer details.  But I'm not sure if in explorer details--> server objects --> triggers does what I hope it does.

New 2014 Cardinality Estimator changes compile duration from nothing to infinity

$
0
0

We have a data warehouse that we recently upgraded to 2014 (Enterprise).

Since the upgrade we are experiencing enormous compile times on most of our queries (2014 compatibility level only). Requesting an estimated execution plan can take up to half an hour where before it was as good as instantaneous. The execution time of queries improved in general by 30% but the long compilation times make this improvement useless.

We are experimenting with trace flags 2312/9481 to enable/disable the new CE and tweaking queries to figure out where the increase in time comes from. So far no success. If we disable the CE, compilation is fine, enabled, it is not.

Our statistics are up to date, indexes are in place and defragged, the databases are reasonably large (1-2 TB) and use a few column stores for fact-like tables. A typical query will use around 30 tables. We have identified some groups of tables with more or less the same cardinality. Our current theory is that SQL is trying to estimate each possible path (i.e. order of tables, join type, etc).

Our queries are generated and therefore we cannot influence them easily. They are also mostly unique. The queries use simple inner joins and the execution times are really good. It is the compilation time that is the problem.

So our question is basically, how can we influence the new CE/compiler in any way to;

- Have a maximum time to evaluate paths, i.e., be happy with a simpler plan if the better one takes forever to deduce.

- Figure out if there is any part of our queries (or structures) in particular that could be causing the problem.

- Figure out if there is a particular part of the query or phase of the compiler that is consuming the time.

Our "solution" at this moment is to disable the new cardinality estimator.

Any help is appreciated.

Cheers,
Michel


Replicate Database on another server w/o bring over Security

$
0
0

Hi guys! 

I have 2 SQL 2008 R2 Servers which are always running (on is Prod/one is Test).

is there a way to sync Prod to Test WITHOUT using the .bak and overriding Test's Security settings?

Thanks!

Amy

====


A. Wolf

error "Object reference not set to an instance of an object. (Microsoft.VisualStudio.Platform.WindowManagement) "

$
0
0

Hi,

I've installed Sql Server 2012 express management studio on my machin (many times) but i'm getting this error message "Object reference not set to an instance of an object. (Microsoft.VisualStudio.Platform.WindowManagement) " as soon as I connect to SQL Server or try to expand any object (Databases, Security, etc.). Please help.

regards

Unisntall Service Pack (sp3) for SQL Server 2008 R2 using commandline script

$
0
0

Hi,

How can we un-install Seevice Pack(sp3) for SQL Server 2008 R2 EE SP3 usingcommandline option.

Can anyone give  the script to unstall service pack for SQL Server 2008 R2 SP3 using commandline script?

Note: We know how to un-install manually.

Thanks


Search Index

$
0
0

Hi All,

Here is my question.

If we have a search bar for product & search by keyword.
For example, we have all the Microsoft course but we just search "windows" keyword.
But the result also show "windows server".


Which version of Azure SQL server that we need to use??
Enterprise version?

Thank you.

Regards,

ET

A significant part of SQL server process memory paged OUT

$
0
0

Hi All~ I have the following config

SQL Server 2008R2 bits

Windows 2008 32 bits  on VM

Memory : 4GB

vcpu: 4

There was SSIS triggered on that server @ midnight, and some times I see the following in SQL errorlog

A significant part of SQL Server process memory has been paged out. This may result in performance degradation.This may result in a performance degradation. Duration: 0 seconds. Working set (KB): xxxxxx, committed (KB): xxxxx, memory utilization: 43%.”

I am wondering SSIS process itself also eat resource on the same database server. how to avoid it ?

Can I also set lock page in memory in 32bits  OS/SQL? and my sql server/agent  startup account is local system.~


Fulltext catalogue rebuild and blocking

$
0
0

Hi All.

I have a DB which uses FT and its SQL 2008 R2, unfortunately when the catalogue indexes are being rebuilt, this gets blocked by spid 43 which I believe is a system spid. Is there any reason why this is the case ?

Secondly, a catalogue which uses free text fails to display up to date information unless the catalogue index is rebuilt, is there any reason for this ?

Thanks in advance.

Web Site Admin Tool problem in VS2005

$
0
0
All,

When I create a new project and try to use the WSAT security tab, I get the following :

There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem: Unable to connect to SQL Server database.

I am using VS2005 beta2 with a local copy of SQL Server Express.

I am new to all of this so a little help would be great

Thx
jonpfl

Error encountered when trying to create mirroring endpoint

$
0
0

Hi All.

When I try to create mirroring endpoints, I get the following error. I  checked all the TCP ports and I can see that the port that I a trying to use is not in use. If I do change the port number, then it seems to work.

CREATE ENDPOINT XXX STATE=STARTED AS TCP(LISTENER_PORT = 56039, LISTENER_IP = ALL) FOR DATA_MIRRORING(ROLE = PARTNER, AUTHENTICATION = WINDOWS NEGOTIATE, ENCRYPTION = REQUIRED ALGORITHM RC4)

Msg 9693, Level 16, State 1, Line 1
The Database Mirroring endpoint cannot listen for connections due to the following error: '10013(An attempt was made to access a socket in a way forbidden by its access permissions.)'.

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

$
0
0

When I try to open up SQL Server Management Studio in SQL Server 2005 I get the following error message:

Attempted to read or write protected memory.  This is often an indication that other memory is corrupt.

How do you fix this?


lcerni

query optimizer techniques for sql server

$
0
0
Hi i am Nimra Memon  MS(IT) student my research topic is Tool supported analysis of  query processing and query optimization .
 i am going to implement various optimizer strategies for example converting cstesion product into a join strategy also their execution time and memory utilization. kindly can you tell me what optimizer startegies you are implementing?

Deadlock on two delete statements

$
0
0

I have two store procedures running from different server.

  • Table 1 only has primary key on identity column plus column1.
  • SP1 
    setup transaction isolation level read uncommitted.
    there have delete statement for table 1 with where column1 and column2 meet criteria.
  • SP2
    just one delete statement from table 1 with where column1/column2/column3 meet criteria.

I am seeing the following deadlock graph. The SP1 always been selected as victim.  It looks like both side try lock the cluster index resource and waiting each other. Is that a way to solve this issue?

<deadlock><victim-list><victimProcess id="process6062748"/></victim-list><process-list><process id="process6062748" taskpriority="0" logused="0" waitresource="KEY: 8:72057594796769280 (0e035e796b00)" waittime="3610" ownerId="54705478" transactionname="user_transaction" lasttranstarted="2015-04-28T10:31:35.023" XDES="0x15ad72d950" lockMode="U" schedulerid="30" kpid="12376" status="suspended" spid="106" sbid="0" ecid="0" priority="0" trancount="2" lastbatchstarted="2015-04-28T10:31:04.080" lastbatchcompleted="2015-04-28T10:31:04.080" clientapp=".Net SqlClient Data Provider" hostname="SERVER1" hostpid="1548" loginname="MYDOMAIN\Account" isolationlevel="read uncommitted (1)" xactid="54705478" currentdb="8" lockTimeout="4294967295" clientoption1="671088672" clientoption2="128056"><executionStack><frame procname="" line="51" stmtstart="3008" stmtend="3530" sqlhandle="0x0300080038edc6638446e2007ba300000100000000000000"/><frame procname="" line="43" stmtstart="2286" stmtend="2510" sqlhandle="0x030008007111bb64e684c400b0a200000100000000000000"/></executionStack><inputbuf> Proc [Database Id = 8 Object Id = 1689981297]   </inputbuf></process><process id="process6058988" taskpriority="0" logused="3664" waitresource="KEY: 8:72057594796769280 (1f3f78f3309f)" waittime="3618" ownerId="54707551" transactionname="DELETE" lasttranstarted="2015-04-28T10:31:38.223" XDES="0x800f4ab0" lockMode="U" schedulerid="29" kpid="2496" status="suspended" spid="94" sbid="0" ecid="0" priority="0" trancount="2" lastbatchstarted="2015-04-28T10:31:38.207" lastbatchcompleted="2015-04-28T10:31:38.207" clientapp=".Net SqlClient Data Provider" hostname="SERVER2" hostpid="4400" loginname="MYDOMAIN\Account" isolationlevel="read committed (2)" xactid="54707551" currentdb="8" lockTimeout="4294967295" clientoption1="673185824" clientoption2="128056"><executionStack><frame procname="" line="28" stmtstart="1652" stmtend="1872" sqlhandle="0x03000800953e4c3dd7250300ffa000000100000000000000"/></executionStack><inputbuf> Proc [Database Id = 8 Object Id = 1028406933]   </inputbuf></process></process-list><resource-list><keylock hobtid="72057594796769280" dbid="8" objectname="" indexname="" id="lock696f500" mode="X" associatedObjectId="72057594796769280"><owner-list><owner id="process6058988" mode="X"/></owner-list><waiter-list><waiter id="process6062748" mode="U" requestType="wait"/></waiter-list></keylock><keylock hobtid="72057594796769280" dbid="8" objectname="" indexname="" id="lock6a99480" mode="U" associatedObjectId="72057594796769280"><owner-list><owner id="process6062748" mode="U"/></owner-list><waiter-list><waiter id="process6058988" mode="U" requestType="wait"/></waiter-list></keylock></resource-list></deadlock>

Error occurred while reading the input stream from the network

$
0
0

Hi,

I am facing this error in SQL server error logs on my active\passive Cluster set around 10-20 times per day, can anyone guide me according to the versions and service pack that is been used

Edition : SQLserver2008R2 Enterprise edition

SQL SP: SP1

Windows : 2008R2 Enterprise windows

  2012-07-30 04:44:15.560 A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 10054, output error: 0).


disk block size for memory-optimized tables filestream data, SQL 2014

$
0
0

In SQL Server 2014, how big for the block size is better for performance? 64 KB? 4 KB?

For normal database files, best practise is 64 KB disk block size. Not sure if it is same for memory-optimized filegroup.

Please advise

Thanks

Extension FILE among backup file

$
0
0

Hi guys, I checked quickly one network  and I ran into the folders; I found out the folder MSSQL backup, nothing strange so far. Within that folder, anyway, I found out several backup and one very huge file (datawarehouse) with extension FILE. I am wondering what can be? I got datawarehouse mdf of course and datawarehouse log but what is that huge file (1 TB)? I am afraid if one of the guys in my department did something strange...

Unfortunately I am not a network administrator so it's not easy for me check..

Level11 failure in SQL Server Query when query runs from the SQL stored procedure

$
0
0

Hi,

   The below SQL Server query throws linked server error when run from the stored procedure.However, the same query runs fine, when run using SSMS.

Insert into [Server1].[tlArchive].[dbo].tblIntnAttachmentMap(nEventID,nAttachmentId) Select nEventID,nAttachmentId from tblIntnAttachmentMap with(nolock) inner join tblArchiveInstances with(nolock) on nArchObjectID =nAttachmentID where nArchObjectType = 68

Here Server1 is the different machine.

Same query is when run by stored procedure, throws below error:
Msg 0, Level 11, State 0, Line 0
A severe error occurred on the current command.  The results, if any, should be discarded.

SQL Version info:

Microsoft SQL Server2008 R2 (SP2) x64

Microsoft SQL Server Management Studio                        10.50.4000.0
Microsoft Analysis Services Client Tools                        10.50.4000.0
Microsoft Data Access Components (MDAC)                        6.1.7600.16385
Microsoft MSXML                        3.0 4.0 5.0 6.0
Microsoft Internet Explorer                        8.0.7600.16385
Microsoft .NET Framework                        2.0.50727.4927
Operating System                        6.1.7600

Please help.

Thanks in advance.

regards,

Pradeep

Temp DB at 2 Terabyte. How can I normalize it?

$
0
0

Hi guys, it's one of those days. One of the guys has launched a big, bad and recursive query. Result, the Tempo Db has gon at 2TB, two terabyte! I stopped the query, killed the process but the TempDb is still at 2TB.

Is there something I can do over than waiting that the db goes down. I am not a DBA but I am acting like and it's one of those days...

Many Thanks

Remote Procedure Call Failed after 2012 installation.

$
0
0

We have server with Sql2008 R2 RTM 64 bit standard edition.We installed 2012 sp1 64 bit standard edition  in win2012sp1 64 bit as side by side setup.After installation, i found the below error when i opened SSCM:

Remote Procedure Call Failed:

I fixed this error by renaming the MSC file.

At event log i am observing continuously below error:

Source:        Application Error    Event ID:      1000

Faulting application name: wmiprvse.exe, version: 6.3.9600.16384, time stamp: 0x5532e9c9
Faulting module name: svrenumapi100.dll, version: 2009.100.1600.1, time stamp: 0x4bb681be
Exception code: 0xc0000005
Fault offset: 0x00000000000514e6
Faulting process id: 0x17e8
Faulting application start time: 0x01d0873d9d37c382
Faulting application path: C:\Windows\system32\wbem\wmiprvse.exe
Faulting module path: C:\Program Files\Microsoft SQL Server\100\Shared\svrenumapi100.dll
Report Id: afe88c1-330-11e4-80c4-008786656bda
Faulting package full name: 
Faulting package-relative application

Is there any other way to get rid of this error without installing a SP1 or later on sql 2008 R2 RTM version.

Thanks in advance.

Viewing all 15264 articles
Browse latest View live


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