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

SQL Server 2008r2, Windows Azure PowerShell

$
0
0
Can I use Windows Azure PowerShell in SQL Server 2008r2 Jobs?

Unable to shutdown SQL Server

$
0
0

Hello,

I'm facing an issue with a SQL Server 2008 SP3 CU17 setup on Windows Server 2008 R2 SP1.

I've got 4 instances running on this server. A bunch of users make some queries with SSMS (I know it's not really advised...) and from time to time, the instance becomes unavailable.

If I try to restart the instance, it shuts down and never restarts. When looking task manager, I still can see the process of the instance I've just tried to restart, and I'm not able to kill this process.

The only solution remaining is a reboot of the server. But the reboot hangs until a BSOD involving a broadcom faulty driver.

On The advice of Dell Support, I've updated every drivers and firmware but the issue is still there.

The event viewer also show a message about registry file still in use involving sqlservr.exe.

Disk check on the host does not show any hardware issue.

Everything was working fine until one day, when a user came and told me he cannot access the instance anymore. No updates were applied just before the issue appeared.

SQL data are stored on a SAN and when I don't start SQL, reboot of the server goes just fine.

Does anyone has an advice?

Thanks,

Steph

[298] SQLServer Error: 258, Unable to complete login process due to delay in login response [SQLSTATE 08001

$
0
0

Hi Experrts,

we are receiving below error since 1 week, 

The below error logging in SQL AGENT LOG.

[298] SQLServer Error: 258, Unable to complete login process due to delay in login response [SQLSTATE 08001]

Thanks in advance.

What happens when the maximum limit of DataBase partitiong is reached

$
0
0

Hello,

We are using SQL server 2012 which allows 15000 partitions per table.

We are partitioning tables on the primary ID (e.g. periodID) of one of the tables.

As of now we have data for all the period in the DB. I am wondering that if we reach the maximum partition limit allowed by SQL server then what is the suggested approach?

WMI alert for event 162 User Error Message

$
0
0

Can anybody help.   I am new to WMI.

I am trying to create an alert for trace event 162 - User Error Message

I already have standard alerts for Login failed for user - 18452, 18456, 18457.  The problem is that these errors don't tell you the 'real' database the user is trying to log into.  They show the database as master.

The other day I started a profiler trace and looked for event 162 - User Error Message and 20- Login Failed.  In the trace file I saw messages like 

- Cannot open database "<DATABASENAME>" requested by the login. The login failed.
- 2014-07-22 20:05:56.60 Logon       Error: 18456, Severity: 14, State: 38.  2014-07-22 20:05:56.60 Logon       Login failed for user '<UserName>'. Reason: Failed to open the explicitly specified database. [CLIENT: xxx.xxx.xxx.xxx] 
- Login failed for user '<UserName>'. Reason: Failed to open the explicitly specified database. [CLIENT: xxx.xxx.xxx.xxx]
- Login failed for user '<UserName>'.

The first error is is event 162 and contains my database name. The error number for this error is 4060.

Is there any way to create a SQL Server alert for this event/error and capture the text string?  I tried standard alerts but was un successful so I thought WMI might be the answer.

Is there a wmi class for user error messages?  Does anybody have any ideas on how to get this to work?

How to troubleshoot high cpu and high memory usage happening on the same time?

$
0
0

Hi Experts.

What would be the proper troubleshooting approach for the below performance issue.
Server is 100% cpu and 90% memory usage and users are unable to login.
What all things need to be checked? IF users cannot login to the server, how can we troubleshoot?

This was one of the interview question which I have recently attended. I have less knowledge on perf and so looking for some guidance to troubleshoot such issues.

Thanks in advance.

SQL Server 2014 System.Data.SqlClient.SqlException: A severe error occurred on the current command.

$
0
0

About every 12 hours we encounter the following exception when accessing sql server from ASP.Net web application.

2014-07-22 23:22:18.97 spid99      *   Exception Address = 000007FEE36765D3 Module(sqlmin+00000000006D65D3)
2014-07-22 23:22:18.97 spid99      *   Exception Code    = c0000005 EXCEPTION_ACCESS_VIOLATION
2014-07-22 23:22:18.97 spid99      *   Access Violation occurred reading address 0000000000000000
2014-07-22 23:22:18.98 spid99      * Input Buffer 125 bytes -
2014-07-22 23:22:18.99 spid99      *                     16 00 00 00 12 00 00 00 02 00 00 00 00 00 00 00 00 00
2014-07-22 23:22:18.99 spid99      *        K B S C a t  01 00 00 00 20 00 4b 00 42 00 53 00 43 00 61 00 74 00
2014-07-22 23:22:18.99 spid99      *  e g o r y B r e a  65 00 67 00 6f 00 72 00 79 00 42 00 72 00 65 00 61 00
2014-07-22 23:22:18.99 spid99      *  d C r u m b E d i  64 00 43 00 72 00 75 00 6d 00 62 00 45 00 64 00 69 00
2014-07-22 23:22:18.99 spid99      *  t A r t i c l e    74 00 41 00 72 00 74 00 69 00 63 00 6c 00 65 00 00 00
2014-07-22 23:22:18.99 spid99      *   @ c a t e g o r y 0b 40 00 63 00 61 00 74 00 65 00 67 00 6f 00 72 00 79
2014-07-22 23:22:18.99 spid99      *   i d  &            00 69 00 64 00 00 26 08 08 00 00 00 00 00 00 00 00
2014-07-22 23:22:18.99 spid99      *  
2014-07-22 23:22:18.99 spid99      *
2014-07-22 23:22:18.99 spid99      *  MODULE                          BASE      END       SIZE
2014-07-22 23:22:18.99 spid99      * sqlservr                       00000000FFFC0000  000000010001EFFF  0005f000
2014-07-22 23:22:18.99 spid99      * ntdll                          0000000077000000  00000000771A8FFF  001a9000
2014-07-22 23:22:18.99 spid99      * kernel32                       0000000076DE0000  0000000076EFEFFF  0011f000
2014-07-22 23:22:18.99 spid99      * KERNELBASE                     000007FEFD170000  000007FEFD1DBFFF  0006c000
2014-07-22 23:22:18.99 spid99      * NETAPI32                       000007FEFA280000  000007FEFA295FFF  00016000
2014-07-22 23:22:18.99 spid99      * netutils                       000007FEFC510000  000007FEFC51BFFF  0000c000
2014-07-22 23:22:18.99 spid99      * msvcrt                         000007FEFD790000  000007FEFD82EFFF  0009f000
2014-07-22 23:22:18.99 spid99      * srvcli                         000007FEFC8D0000  000007FEFC8F2FFF  00023000
2014-07-22 23:22:18.99 spid99      * RPCRT4                         000007FEFD1F0000  000007FEFD31CFFF  0012d000
2014-07-22 23:22:18.99 spid99      * wkscli                         000007FEFA260000  000007FEFA274FFF  00015000
2014-07-22 23:22:18.99 spid99      * pdh                            000007FEF58F0000  000007FEF593DFFF  0004e000
2014-07-22 23:22:18.99 spid99      * ADVAPI32                       000007FEFEAF0000  000007FEFEBCAFFF  000db000
2014-07-22 23:22:18.99 spid99      * sechost                        000007FEFD5C0000  000007FEFD5DEFFF  0001f000
2014-07-22 23:22:18.99 spid99      * opends60                       000007FEE91F0000  000007FEE91F8FFF  00009000
2014-07-22 23:22:18.99 spid99      * MSVCR100                       0000000074A70000  0000000074B41FFF  000d2000
2014-07-22 23:22:18.99 spid99      * MSVCP100                       00000000749A0000  0000000074A37FFF  00098000
2014-07-22 23:22:18.99 spid99      * SQLOS                          000007FEE81C0000  000007FEE81C6FFF  00007000
2014-07-22 23:22:18.99 spid99      * sqlmin                         000007FEE2FA0000  000007FEE6E3CFFF  03e9d000
2014-07-22 23:22:18.99 spid99      * CRYPT32                        000007FEFCEB0000  000007FEFD01BFFF  0016c000
2014-07-22 23:22:18.99 spid99      * MSASN1                         000007FEFCE40000  000007FEFCE4EFFF  0000f000
2014-07-22 23:22:18.99 spid99      * Secur32                        000007FEFCA50000  000007FEFCA5AFFF  0000b000
2014-07-22 23:22:18.99 spid99      * SSPICLI                        000007FEFCC00000  000007FEFCC24FFF  00025000
2014-07-22 23:22:18.99 spid99      * PSAPI                          00000000771C0000  00000000771C6FFF  00007000
2014-07-22 23:22:18.99 spid99      * WS2_32                         000007FEFE940000  000007FEFE98CFFF  0004d000
2014-07-22 23:22:18.99 spid99      * NSI                            000007FEFECE0000  000007FEFECE7FFF  00008000
2014-07-22 23:22:18.99 spid99      * WINHTTP                        000007FEF17A0000  000007FEF1810FFF  00071000
2014-07-22 23:22:18.99 spid99      * webio                          000007FEF1730000  000007FEF1793FFF  00064000
2014-07-22 23:22:18.99 spid99      * USER32                         0000000076F00000  0000000076FF9FFF  000fa000
2014-07-22 23:22:18.99 spid99      * GDI32                          000007FEFDA60000  000007FEFDAC6FFF  00067000
2014-07-22 23:22:18.99 spid99      * LPK                            000007FEFECF0000  000007FEFECFDFFF  0000e000
2014-07-22 23:22:18.99 spid99      * USP10                          000007FEFD6C0000  000007FEFD788FFF  000c9000
2014-07-22 23:22:18.99 spid99      * ole32                          000007FEFF050000  000007FEFF252FFF  00203000
2014-07-22 23:22:18.99 spid99      * OLEAUT32                       000007FEFD5E0000  000007FEFD6B6FFF  000d7000
2014-07-22 23:22:18.99 spid99      * sqlTsEs                        000007FEE2700000  000007FEE2F92FFF  00893000
2014-07-22 23:22:18.99 spid99      * sqldk                          000007FEE2230000  000007FEE26F8FFF  004c9000
2014-07-22 23:22:18.99 spid99      * WINMM                          000007FEF0870000  000007FEF08AAFFF  0003b000
2014-07-22 23:22:18.99 spid99      * qds                            000007FEE21A0000  000007FEE222DFFF  0008e000
2014-07-22 23:22:18.99 spid99      * sqllang                        000007FEDFF30000  000007FEE2196FFF  02267000
2014-07-22 23:22:18.99 spid99      * USERENV                        000007FEFCE50000  000007FEFCE6DFFF  0001e000
2014-07-22 23:22:18.99 spid99      * profapi                        000007FEFCE30000  000007FEFCE3EFFF  0000f000
2014-07-22 23:22:18.99 spid99      * LOGONCLI                       000007FEFC3D0000  000007FEFC3FFFFF  00030000
2014-07-22 23:22:18.99 spid99      * SAMCLI                         000007FEF9A50000  000007FEF9A63FFF  00014000
2014-07-22 23:22:18.99 spid99      * AUTHZ                          000007FEFC800000  000007FEFC82EFFF  0002f000
2014-07-22 23:22:18.99 spid99      * WINTRUST                       000007FEFCE70000  000007FEFCEA9FFF  0003a000
2014-07-22 23:22:18.99 spid99      * IMM32                          000007FEFF2E0000  000007FEFF30DFFF  0002e000
2014-07-22 23:22:18.99 spid99      * MSCTF                          000007FEFEBD0000  000007FEFECD8FFF  00109000
2014-07-22 23:22:18.99 spid99      * CRYPTBASE                      000007FEFCC90000  000007FEFCC9EFFF  0000f000
2014-07-22 23:22:18.99 spid99      * instapi120                     000007FEF59F0000  000007FEF59FEFFF  0000f000
2014-07-22 23:22:18.99 spid99      * cscapi                         000007FEEE370000  000007FEEE37EFFF  0000f000
2014-07-22 23:22:18.99 spid99      * sqlevn70                       000007FEDFC80000  000007FEDFF2CFFF  002ad000
2014-07-22 23:22:18.99 spid99      * CRYPTSP                        000007FEFC630000  000007FEFC646FFF  00017000
2014-07-22 23:22:18.99 spid99      * rsaenh                         000007FEFC320000  000007FEFC366FFF  00047000
2014-07-22 23:22:18.99 spid99      * imagehlp                       000007FEFD3C0000  000007FEFD3D8FFF  00019000
2014-07-22 23:22:18.99 spid99      * ncrypt                         000007FEFC7B0000  000007FEFC7FCFFF  0004d000
2014-07-22 23:22:18.99 spid99      * bcrypt                         000007FEFC780000  000007FEFC7A1FFF  00022000
2014-07-22 23:22:18.99 spid99      * bcryptprimitives               000007FEFC260000  000007FEFC2ABFFF  0004c000
2014-07-22 23:22:18.99 spid99      * GPAPI                          000007FEFC0C0000  000007FEFC0DAFFF  0001b000
2014-07-22 23:22:18.99 spid99      * cryptnet                       000007FEF9A70000  000007FEF9A96FFF  00027000
2014-07-22 23:22:18.99 spid99      * WLDAP32                        000007FEFE860000  000007FEFE8B1FFF  00052000
2014-07-22 23:22:18.99 spid99      * SHLWAPI                        000007FEFF260000  000007FEFF2D0FFF  00071000
2014-07-22 23:22:18.99 spid99      * CLUSAPI                        000007FEEBA30000  000007FEEBA7FFFF  00050000
2014-07-22 23:22:18.99 spid99      * cryptdll                       000007FEFC8B0000  000007FEFC8C3FFF  00014000
2014-07-22 23:22:18.99 spid99      * RESUTILS                       000007FEEB1D0000  000007FEEB1E8FFF  00019000
2014-07-22 23:22:18.99 spid99      * VERSION                        000007FEFBF00000  000007FEFBF0BFFF  0000c000
2014-07-22 23:22:18.99 spid99      * hkruntime                      000007FEDF9C0000  000007FEDFC76FFF  002b7000
2014-07-22 23:22:18.99 spid99      * hkcompile                      000007FEDF900000  000007FEDF9BDFFF  000be000
2014-07-22 23:22:18.99 spid99      * XmlLite                        000007FEFAA90000  000007FEFAAC4FFF  00035000
2014-07-22 23:22:18.99 spid99      * hkengine                       000007FEDF750000  000007FEDF8FEFFF  001af000
2014-07-22 23:22:18.99 spid99      * dbghelp                        000000006D870000  000000006DA05FFF  00196000
2014-07-22 23:22:18.99 spid99      * pcwum                          000007FEFC220000  000007FEFC22CFFF  0000d000
2014-07-22 23:22:18.99 spid99      * credssp                        000007FEFC210000  000007FEFC219FFF  0000a000
2014-07-22 23:22:18.99 spid99      * msv1_0                         000007FEFC560000  000007FEFC5B1FFF  00052000
2014-07-22 23:22:18.99 spid99      * kerberos                       000007FEFC650000  000007FEFC707FFF  000b8000
2014-07-22 23:22:18.99 spid99      * schannel                       000007FEFC370000  000007FEFC3C6FFF  00057000
2014-07-22 23:22:18.99 spid99      * MSCOREE                        000007FEF9870000  000007FEF98DEFFF  0006f000
2014-07-22 23:22:18.99 spid99      * mscoreei                       000007FEF97D0000  000007FEF9866FFF  00097000
2014-07-22 23:22:18.99 spid99      * security                       0000000074590000  0000000074592FFF  00003000
2014-07-22 23:22:18.99 spid99      * CLBCatQ                        000007FEFEFB0000  000007FEFF048FFF  00099000
2014-07-22 23:22:18.99 spid99      * sqlncli11                      0000000071B60000  0000000071EB2FFF  00353000
2014-07-22 23:22:18.99 spid99      * COMCTL32                       000007FEF98E0000  000007FEF997FFFF  000a0000
2014-07-22 23:22:18.99 spid99      * COMDLG32                       000007FEFD320000  000007FEFD3B6FFF  00097000
2014-07-22 23:22:18.99 spid99      * SHELL32                        000007FEFDAD0000  000007FEFE857FFF  00d88000
2014-07-22 23:22:18.99 spid99      * SQLNCLIR11                     0000000071910000  0000000071947FFF  00038000
2014-07-22 23:22:18.99 spid99      * netbios                        000007FEF99A0000  000007FEF99A9FFF  0000a000
2014-07-22 23:22:18.99 spid99      * clr                            000007FEF8E60000  000007FEF97CAFFF  0096b000
2014-07-22 23:22:18.99 spid99      * MSVCR110_CLR0400               000007FEF8D80000  000007FEF8E51FFF  000d2000
2014-07-22 23:22:18.99 spid99      * mscorlib.ni                    000007FEF7780000  000007FEF8D79FFF  015fa000
2014-07-22 23:22:18.99 spid99      * SqlAccess                      000000006D7F0000  000000006D861FFF  00072000
2014-07-22 23:22:18.99 spid99      * clrjit                         000007FEF6930000  000007FEF6A60FFF  00131000
2014-07-22 23:22:18.99 spid99      * nlssorting                     000007FEF99D0000  000007FEF99E5FFF  00016000
2014-07-22 23:22:18.99 spid99      * BatchParser                    000007FEE6E40000  000007FEE6E67FFF  00028000
2014-07-22 23:22:18.99 spid99      * ntmarta                        000007FEFBED0000  000007FEFBEFCFFF  0002d000
2014-07-22 23:22:18.99 spid99      * RsFxFt                         000007FEE81B0000  000007FEE81B8FFF  00009000
2014-07-22 23:22:18.99 spid99      * netfxperf                      000007FEF9990000  000007FEF999FFFF  00010000
2014-07-22 23:22:18.99 spid99      * perfcounter                    000007FEE9C70000  000007FEE9CABFFF  0003c000
2014-07-22 23:22:18.99 spid99      * CorperfmonExt                  000007FEE9B80000  000007FEE9BA6FFF  00027000
2014-07-22 23:22:18.99 spid99      * WTSAPI32                       000007FEFA890000  000007FEFA8A0FFF  00011000
2014-07-22 23:22:18.99 spid99      * aspnet_counters                000007FEF9980000  000007FEF9987FFF  00008000
2014-07-22 23:22:18.99 spid99      * aspnet_perf                    000007FEEA380000  000007FEEA38CFFF  0000d000
2014-07-22 23:22:18.99 spid99      * aspnet_perf                    000007FEE9F00000  000007FEE9F0CFFF  0000d000
2014-07-22 23:22:18.99 spid99      * MSVCR80                        0000000071300000  00000000713C8FFF  000c9000
2014-07-22 23:22:18.99 spid99      * DTSPipelinePerf110             00000000712F0000  00000000712FBFFF  0000c000
2014-07-22 23:22:18.99 spid99      * DTSPipelinePerf120             000007FEE99B0000  000007FEE99BCFFF  0000d000
2014-07-22 23:22:18.99 spid99      * esentprf                       000007FEE9900000  000007FEE9911FFF  00012000
2014-07-22 23:22:18.99 spid99      * msdtcuiu                       000007FEE98B0000  000007FEE98FFFFF  00050000
2014-07-22 23:22:18.99 spid99      * ATL                            000007FEFB6A0000  000007FEFB6B8FFF  00019000
2014-07-22 23:22:18.99 spid99      * MSDTCPRX                       000007FEE9630000  000007FEE96EBFFF  000bc000
2014-07-22 23:22:18.99 spid99      * MTXCLU                         000007FEE93F0000  000007FEE944FFFF  00060000
2014-07-22 23:22:18.99 spid99      * ktmw32                         000007FEFB650000  000007FEFB659FFF  0000a000
2014-07-22 23:22:18.99 spid99      * DNSAPI                         000007FEFC400000  000007FEFC45AFFF  0005b000
2014-07-22 23:22:18.99 spid99      * MSMDCTR120                     000007FEE9950000  000007FEE9959FFF  0000a000
2014-07-22 23:22:18.99 spid99      * perf-MSSQL$SHAREPOINT-sqlctr12.0.2000.8 000007FEE9190000  000007FEE91E2FFF  00053000
2014-07-22 23:22:18.99 spid99      * ftimport                       0000000060000000  0000000060024FFF  00025000
2014-07-22 23:22:18.99 spid99      * MSFTE                          0000000049980000  0000000049D2DFFF  003ae000
2014-07-22 23:22:18.99 spid99      * perf-MSSQLSERVER-sqlctr12.0.2000.8 000007FEE90C0000  000007FEE9112FFF  00053000
2014-07-22 23:22:18.99 spid99      * mswsock                        000007FEFC5D0000  000007FEFC624FFF  00055000
2014-07-22 23:22:18.99 spid99      * wship6                         000007FEFC5C0000  000007FEFC5C6FFF  00007000
2014-07-22 23:22:18.99 spid99      * wshtcpip                       000007FEFBFD0000  000007FEFBFD6FFF  00007000
2014-07-22 23:22:18.99 spid99      * ntdsapi                        000007FEF9EE0000  000007FEF9F06FFF  00027000
2014-07-22 23:22:18.99 spid99      * IPHLPAPI                       000007FEFA5B0000  000007FEFA5D6FFF  00027000
2014-07-22 23:22:18.99 spid99      * WINNSI                         000007FEFA5A0000  000007FEFA5AAFFF  0000b000
2014-07-22 23:22:18.99 spid99      * rasadhlp                       000007FEF9F10000  000007FEF9F17FFF  00008000
2014-07-22 23:22:18.99 spid99      * fwpuclnt                       000007FEFA530000  000007FEFA582FFF  00053000
2014-07-22 23:22:18.99 spid99      * msmdctr120                     000007FEE9020000  000007FEE9029FFF  0000a000
2014-07-22 23:22:18.99 spid99      * perfdisk                       000007FEE9010000  000007FEE901CFFF  0000d000
2014-07-22 23:22:18.99 spid99      * CFGMGR32                       000007FEFD040000  000007FEFD075FFF  00036000
2014-07-22 23:22:18.99 spid99      * perfnet                        000007FEE8A80000  000007FEE8A89FFF  0000a000
2014-07-22 23:22:18.99 spid99      * BROWCLI                        000007FEE9060000  000007FEE9071FFF  00012000
2014-07-22 23:22:18.99 spid99      * perfos                         000007FEE8A70000  000007FEE8A7AFFF  0000b000
2014-07-22 23:22:18.99 spid99      * perfproc                       000007FEE8A60000  000007FEE8A6DFFF  0000e000
2014-07-22 23:22:18.99 spid99      * rasctrs                        000007FEE8A50000  000007FEE8A57FFF  00008000
2014-07-22 23:22:18.99 spid99      * rasman                         000007FEFA700000  000007FEFA71BFFF  0001c000
2014-07-22 23:22:18.99 spid99      * winspool                       000007FEE8250000  000007FEE82C0FFF  00071000
2014-07-22 23:22:18.99 spid99      * perf-MSSQL12.SHAREPOINT-sqlagtctr 000000006F6B0000  000000006F6CBFFF  0001c000
2014-07-22 23:22:18.99 spid99      * perf-MSSQL12.MSSQLSERVER-sqlagtctr 000000006F620000  000000006F63BFFF  0001c000
2014-07-22 23:22:18.99 spid99      * tapiperf                       000007FEE8190000  000007FEE8196FFF  00007000
2014-07-22 23:22:18.99 spid99      * Perfctrs                       000007FEE8180000  000007FEE818FFFF  00010000
2014-07-22 23:22:18.99 spid99      * perfts                         000007FEE80F0000  000007FEE80F8FFF  00009000
2014-07-22 23:22:18.99 spid99      * WINSTA                         000007FEFCD40000  000007FEFCD7CFFF  0003d000
2014-07-22 23:22:18.99 spid99      * UTILDLL                        000007FEE80B0000  000007FEE80C6FFF  00017000
2014-07-22 23:22:18.99 spid99      * SETUPAPI                       000007FEFD3E0000  000007FEFD5B6FFF  001d7000
2014-07-22 23:22:18.99 spid99      * DEVOBJ                         000007FEFD130000  000007FEFD149FFF  0001a000
2014-07-22 23:22:18.99 spid99      * usbperf                        000007FEE80A0000  000007FEE80A6FFF  00007000
2014-07-22 23:22:18.99 spid99      * msxml3                         000007FEE9450000  000007FEE9623FFF  001d4000
2014-07-22 23:22:18.99 spid99      * SAMLIB                         000007FEF9A30000  000007FEF9A4CFFF  0001d000
2014-07-22 23:22:18.99 spid99      * xpsqlbot                       000007FEDF4C0000  000007FEDF4C7FFF  00008000
2014-07-22 23:22:18.99 spid99      * Sort00001000                   000007FEDF2E0000  000007FEDF3B4FFF  000d5000
2014-07-22 23:22:18.99 spid99      * System.ni                      000007FEF6AC0000  000007FEF777AFFF  00cbb000
2014-07-22 23:22:18.99 spid99      * xpstar                         000007FEDF270000  000007FEDF2D8FFF  00069000
2014-07-22 23:22:18.99 spid99      * ODBC32                         000007FEE96F0000  000007FEE97A0FFF  000b1000
2014-07-22 23:22:18.99 spid99      * SQLSCM                         000007FEDF3C0000  000007FEDF3CEFFF  0000f000
2014-07-22 23:22:18.99 spid99      * odbcint                        0000000071180000  00000000711B7FFF  00038000
2014-07-22 23:22:18.99 spid99      * xpstar                         000007FEDF4B0000  000007FEDF4BCFFF  0000d000
2014-07-22 23:22:18.99 spid99      * System.Data                    000007FEEC810000  000007FEECB2DFFF  0031e000
2014-07-22 23:22:18.99 spid99      * System.Transactions            000007FEE8AB0000  000007FEE8AF8FFF  00049000
2014-07-22 23:22:18.99 spid99      * System.Security.ni             000007FEDF180000  000007FEDF26CFFF  000ed000
2014-07-22 23:22:18.99 spid99      * System.Xml.ni                  000007FEF5E30000  000007FEF67EFFFF  009c0000
2014-07-22 23:22:18.99 spid99      * dsrole                         000007FEFB690000  000007FEFB69BFFF  0000c000
2014-07-22 23:22:18.99 spid99      * dbghelp                        000000006DEC0000  000000006E055FFF  00196000
2014-07-22 23:22:18.99 spid99      *
2014-07-22 23:22:18.99 spid99      *     P1Home: 0000000012E6DBE0:  00000000C0000005  0000000000000000  000007FEE36765D3  0000000000000002  0000000000000000  0000000000000000  
2014-07-22 23:22:18.99 spid99      *     P2Home: 0000000012E6D6F0:  0000000012E6DBE0  0000000012E6D6F0  0000000200000000  0000000200000000  0000000000000000  0000000012E6DA40  
2014-07-22 23:22:18.99 spid99      *     P3Home: 0000000200000000:  000100040002C000  0000000201ECA060  0000000000002000  0000000200002000  0000000200002000  0000000200001F86  
2014-07-22 23:22:18.99 spid99      *     P4Home: 0000000200000000:  000100040002C000  0000000201ECA060  0000000000002000  0000000200002000  0000000200002000  0000000200001F86  
2014-07-22 23:22:18.99 spid99      *     P5Home: 0000000000000000:  
2014-07-22 23:22:18.99 spid99      *     P6Home: 0000000012E6DA40:  000000028C38B788  000007FEE306A145  0000000000000000  0000000000000000  0000B6DF1E0F0000  000000028C38B830  
2014-07-22 23:22:18.99 spid99      * ContextFlags: 000000000010001F:  0000010000001400  0000340000000200  000001000000D400  0000000000000000  0000000000000000  0000020000000000  
2014-07-22 23:22:18.99 spid99      *      MxCsr: 0000000000001FA8:  
2014-07-22 23:22:18.99 spid99      *      SegCs: 0000000000000033:  
2014-07-22 23:22:18.99 spid99      *      SegDs: 000000000000002B:  
2014-07-22 23:22:18.99 spid99      *      SegEs: 000000000000002B:  
2014-07-22 23:22:18.99 spid99      *      SegFs: 0000000000000053:  
2014-07-22 23:22:18.99 spid99      *      SegGs: 000000000000002B:  
2014-07-22 23:22:18.99 spid99      *      SegSs: 000000000000002B:  
2014-07-22 23:22:18.99 spid99      *     EFlags: 0000000000010206:  00007713A0700000  0000FFFFFFFF0000  0000000000000000  0000000000000000  000000000FA00000  0000000000000000  
2014-07-22 23:22:18.99 spid99      *        Rax: 0000000000000000:  
2014-07-22 23:22:18.99 spid99      *        Rcx: 0000000000000FF0:  
2014-07-22 23:22:18.99 spid99      *        Rdx: 0000000000000006:  
2014-07-22 23:22:18.99 spid99      *        Rbx: 000000000000007F:  
2014-07-22 23:22:18.99 spid99      *        Rsp: 0000000012E6DCB0:  000000000000007F  0000000012E6DD59  000000026E9B4FD8  0000000000000000  0000000200000000  000007FE00000001  
2014-07-22 23:22:18.99 spid99      *        Rbp: 0000000012E6DD59:  0100000000000000  0000000000000000  610000000248B151  D10000A5E9CC24E1  50000007FEE2FCC1  000000000248B141  
2014-07-22 23:22:18.99 spid99      *        Rsi: 000000026E9B4FD8:  000007FEE64E0270  0000004000000004  0000000000000FF0  000000026E9B4EB0  000000026E9B5FE0  0000000248B147F0  
2014-07-22 23:22:18.99 spid99      *        Rdi: 0000000012E6DDE0:  0000000200007F00  0000000000000000  0000000248B14BF0  000007FEE303EF22  0000000200003800  00000000B6DF1E0F  
2014-07-22 23:22:18.99 spid99      *         R8: 0000000000000000:  
2014-07-22 23:22:18.99 spid99      *         R9: 000000026E9B4FA0:  000007FEE64E02E0  00000001C7CF9218  0000000248B147F0  000000026E9B4F40  000000026E9B4E51  0000000000000000  
2014-07-22 23:22:18.99 spid99      *        R10: 000000026E9B4FE0:  0000004000000004  0000000000000FF0  000000026E9B4EB0  000000026E9B5FE0  0000000248B147F0  000000028A798500  
2014-07-22 23:22:18.99 spid99      *        R11: 0000000012E6DA90:  00000002886CC040  0000000248B153D0  0000000000000000  000000026E9B5008  0000000000000000  000007FEE307215D  
2014-07-22 23:22:18.99 spid99      *        R12: 0000000000000000:  
2014-07-22 23:22:18.99 spid99      *        R13: 0000000000000002:  
2014-07-22 23:22:18.99 spid99      *        R14: 0000000248B153D0:  000007FEE2B795A0  000007FEE2701390  0000000248B7C440  0000000012E6DDE0  0000000248B7C340  0000000248B15430  
2014-07-22 23:22:18.99 spid99      *        R15: 00000002886CC040:  00000002886CDF00  00000002886B47F0  00000002886CC0C0  00000002886B4470  00000002886B5560  00000002886CD640  
2014-07-22 23:22:18.99 spid99      *        Rip: 000007FEE36765D3:  8B4CC88B48108B48  E7558D486852FFF0  FF41C88B48008B4C  1374040A45F61050  8B49D3B60FC78B4C  CDE90007275FE8CE  
2014-07-22 23:22:18.99 spid99      * *******************************************************************************
2014-07-22 23:22:18.99 spid99      * -------------------------------------------------------------------------------
2014-07-22 23:22:18.99 spid99      * Short Stack Dump
2014-07-22 23:22:19.06 spid99      000007FEE36765D3 Module(sqlmin+00000000006D65D3)
2014-07-22 23:22:19.06 spid99      000007FEE2701437 Module(sqlTsEs+0000000000001437)
2014-07-22 23:22:19.06 spid99      000007FEE303FAEB Module(sqlmin+000000000009FAEB)
2014-07-22 23:22:19.07 spid99      000007FEE2FFE6EF Module(sqlmin+000000000005E6EF)
2014-07-22 23:22:19.07 spid99      000007FEDFF3F517 Module(sqllang+000000000000F517)
2014-07-22 23:22:19.07 spid99      000007FEDFF5CEBE Module(sqllang+000000000002CEBE)
2014-07-22 23:22:19.07 spid99      000007FEDFF5CCB9 Module(sqllang+000000000002CCB9)
2014-07-22 23:22:19.07 spid99      000007FEDFF3A058 Module(sqllang+000000000000A058)
2014-07-22 23:22:19.07 spid99      000007FEDFF3B66B Module(sqllang+000000000000B66B)
2014-07-22 23:22:19.07 spid99      000007FEDFF3AC2E Module(sqllang+000000000000AC2E)
2014-07-22 23:22:19.08 spid99      000007FEDFF42267 Module(sqllang+0000000000012267)
2014-07-22 23:22:19.09 spid99      000007FEDFF49087 Module(sqllang+0000000000019087)
2014-07-22 23:22:19.09 spid99      000007FEE22349D0 Module(sqldk+00000000000049D0)
2014-07-22 23:22:19.09 spid99      000007FEE22347B4 Module(sqldk+00000000000047B4)
2014-07-22 23:22:19.09 spid99      000007FEE22345B6 Module(sqldk+00000000000045B6)
2014-07-22 23:22:19.09 spid99      000007FEE22536FF Module(sqldk+00000000000236FF)
2014-07-22 23:22:19.09 spid99      000007FEE22538F0 Module(sqldk+00000000000238F0)
2014-07-22 23:22:19.09 spid99      000007FEE2253246 Module(sqldk+0000000000023246)
2014-07-22 23:22:19.11 spid99      000007FEE2253558 Module(sqldk+0000000000023558)
2014-07-22 23:22:19.12 spid99      0000000076DF59ED Module(kernel32+00000000000159ED)
2014-07-22 23:22:19.12 spid99      000000007702C541 Module(ntdll+000000000002C541)
2014-07-22 23:22:19.16 spid99      Stack Signature for the dump is 0x000000017A3D8D5C
2014-07-22 23:22:20.64 spid99      [INFO]          Identity             Begin               End |        State                 Result     Error  Speculate   Prepared LazyCommit   ReadOnly |      Transaction         Database          ThreadId |   ReadSet WriteSet   ScanSet Savepoint LogSizeRq | CommitDep TotalComm       Dependent 0       Dependent 1       Dependent 2       Dependent 3       Dependent 4       Dependent 5       Dependent 6       Dependent 7 |            Area  Location |
2014-07-22 23:22:25.45 spid99      External dump process return code 0x20000001.
External dump process returned no errors.

2014-07-22 23:22:25.50 Server      Error: 17310, Severity: 20, State: 1.
2014-07-22 23:22:25.50 Server      A user request from the session with SPID 99 generated a fatal exception. SQL Server is terminating this session. Contact Product Support Services with the dump produced in the log directory.

Windows could not start the SQL Server (xxx) on Local Computer. For more information, review the System Event Log. If this is a non-Microsof service, contact the service vendor, and refer to service-specific error code -1.

$
0
0

I have two instances of SQL on this machine, 2005 and 2008 R2.  The 2005 server starts and works fine but the 2008 R2 is giving me the above error when trying to start.

Here is the contents of the ERRORLOG file:

2014-07-23 11:02:34.95 Server      Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64)
 Jun 28 2012 08:36:30
 Copyright (c) Microsoft Corporation
 Express Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)

2014-07-23 11:02:34.95 Server      (c) Microsoft Corporation.
2014-07-23 11:02:34.95 Server      All rights reserved.
2014-07-23 11:02:34.95 Server      Server process ID is 628.
2014-07-23 11:02:34.95 Server      System Manufacturer: 'Hewlett-Packard', System Model: 'HPE-500y'.
2014-07-23 11:02:34.95 Server      Authentication mode is MIXED.
2014-07-23 11:02:34.95 Server      Logging SQL Server messages in file 'c:\Program Files\Microsoft SQL Server\MSSQL10_50.MITEK_TP\MSSQL\Log\ERRORLOG'.
2014-07-23 11:02:34.95 Server      This instance of SQL Server last reported using a process ID of 7844 at 7/23/2014 10:55:02 AM (local) 7/23/2014 4:55:02 PM (UTC). This is an informational message only; no user action is required.
2014-07-23 11:02:34.95 Server      Registry startup parameters:
  -d c:\Program Files\Microsoft SQL Server\MSSQL10_50.MITEK_TP\MSSQL\DATA\master.mdf
  -e c:\Program Files\Microsoft SQL Server\MSSQL10_50.MITEK_TP\MSSQL\Log\ERRORLOG
  -l c:\Program Files\Microsoft SQL Server\MSSQL10_50.MITEK_TP\MSSQL\DATA\mastlog.ldf
2014-07-23 11:02:34.99 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2014-07-23 11:02:34.99 Server      Detected 6 CPUs. This is an informational message; no user action is required.
2014-07-23 11:02:35.09 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
2014-07-23 11:02:35.16 Server      Node configuration: node 0: CPU mask: 0x000000000000003f:0 Active CPU mask: 0x000000000000003f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
2014-07-23 11:02:35.19 spid6s      Starting up database 'master'.
2014-07-23 11:02:35.31 spid6s      FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'MITEK_TP'.
2014-07-23 11:02:35.34 spid6s      SQL Trace ID 1 was started by login "sa".
2014-07-23 11:02:35.34 spid6s      Starting up database 'mssqlsystemresource'.
2014-07-23 11:02:35.36 spid6s      The resource database build version is 10.50.4000. This is an informational message only. No user action is required.
2014-07-23 11:02:35.52 spid10s     Starting up database 'model'.
2014-07-23 11:02:35.52 spid6s      Server name is 'TPT\MITEK_TP'. This is an informational message only. No user action is required.
2014-07-23 11:02:35.52 spid6s      Informational: No full-text supported languages found.
2014-07-23 11:02:35.52 spid6s      Starting up database 'msdb'.
2014-07-23 11:02:35.69 Server      A self-generated certificate was successfully loaded for encryption.
2014-07-23 11:02:35.69 Server      Error: 17182, Severity: 16, State: 1.
2014-07-23 11:02:35.69 Server      TDSSNIClient initialization failed with error 0xffffffff, status code 0x80. Reason: Unable to initialize SSL support.
2014-07-23 11:02:35.69 Server      Error: 17182, Severity: 16, State: 1.
2014-07-23 11:02:35.69 Server      TDSSNIClient initialization failed with error 0xffffffff, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors.
2014-07-23 11:02:35.69 Server      Error: 17826, Severity: 18, State: 3.
2014-07-23 11:02:35.69 Server      Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
2014-07-23 11:02:35.69 Server      Error: 17120, Severity: 16, State: 1.
2014-07-23 11:02:35.69 Server      SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.


Tlog just record DML ?

$
0
0

Dear:

   I met " 

Msg 3023, Level 16, 

Backup, file manipulation operations (such as ALTER DATABASE ADD FILE) and encryption changes on a database must be serialized. Reissue the statement after the current backup or file manipulation operation is completed.

"

Does it means I can not add new datafile during the database backup is running ?  Since sql server has TLOG , does not

it remember the datafiles changed, right ?  It was too weak.

Hierarical Query Performance

$
0
0

Hi Folks,

I need a quick help from you. I have a hierarical query that is used in the front-end application.

WITH EMP ([EMP_ID],[NAME],  [MANAGER_NAME]  ,[MANAGER_ID], [CHGS]) AS 

(   SELECT [EMP_ID],[NAME],[MANAGER_NAME]  ,[MANAGER_ID], [CHGS]  FROM EMPLOYEE
 WHERE [MANAGER_ID]=101 or [EMP_ID]=101 and  BILLDATE  BETWEEN '10-APRIL-2013' and '10-MAY-2013'
  UNION all  
SELECT a.[EMP_ID], a.[NAME], a.[MANAGER_NAME]  ,a.[MANAGER_ID], a.[CHGS] FROm EMPLOYEE as a inner  JOIN EMP b ON a.[MANAGER_ID]=b.[EMP_ID]) 

SELECT round(sum(distinct([CHGS]))/100,0) as charges FROM EMP.

In Employee table there were 2000 records and it is taking 6 minutes.

Can you kindly suggest me how to improve the performance of this query. Appreciate your help.

Thanks,

Ven.

SQL 2012 OBJECTSTORE_LOCK_MANAGER

$
0
0

We recently experienced a significant performance degradation on our main TP SQL server (Current primary of SQL2012 - 3 servers in High Availability config)

This was diagnosed to the OBJECTSTORE_LOCK_MANAGER consuming approx. 66% of available memory (40gb) which it would not release.

Running 

DBCC FREESYSTEMCACHE ( 'ALL' )

cleared the problem

Investigating log files has not provided info to determine how this situation occurred. What may have caused OBJECTSTORE_LOCK_MANAGER to reach this state?


hojo

SQL 2005 Server Agent not starting job

$
0
0

Apologies if this question has been asked elsewhere on these forums, I've had a search around and have not been able to find something with the same issues.

Last year I took over management of a SQL server (SQL2005 on a Server 2003 R2 O/S), as part of the expansion of operation the DB server is being used for an agent job was created to take customer information from our web site and, where the customer has selected to be contacted, pass those details to our dialler system, so we can rech our customer ideally within 20 minutes of them interacting with the website.

This job runs daily Monday to Friday from 8am to 4:30pm at 15 minute intervals and once a day at 5pm on Saturday and Sunday(same job with muliple schedules), 3 week ago the Saturday job failed to start, then following week the Sunday job failed to start then last weekend the job failed to start on both Saturday and Sunday. There have been no updates or changes made to the job or the server and the job has run for 6 months with this multiple scehduling without any issues at all.

I have checked through the server event/system/application logs and the SQL logs (that I know of) and can find no evidence of errors that would have an effect on the SQL or SQL Agent operation, I can also find no evidence that the server made an attempt to start the job at all, the application log will normally show an event 12288 and 12289 with the source of SQLISPackage for the start and stop of the job. There is no event start notice shown in the application event log on weekend days the job has failed to start. I've check the Agent service status, as well as all the other SQL services and they are all running as they should be.

Does anyone have any ideas where I should be looking next for the cause of this issue or has anyone ever experienced this before and found a cause?

Many thanks

Stuart.

2012 SP 2 Issue

$
0
0

I have a warehouse that was running perfectly under 2012 SP1, it uses CDC with net enabled on the source tables to do incremental loads into the warehouse.

We migrated the databases over to a new SQL 2012 SP2 build (also later applied the hot fix for index rebuild), we are using SSIS and the CDC components for our integration.

So once we migrated a few of our tables were hanging on the CDC Source component beyond our timeout (around 10 minutes), typical CDC source time is 15 seconds.

I then tested the query output in the sis output in management studio and boom it works in under 15 seconds as expected,

I then did a Perlman on it and captured the real queries from SSIS, and the get_net_changes TVF call was wrapped in an sp_execute call, I copied it out and ran it in a SSMS window and it hangs, so I've eliminated everything but the query engine and how it behaves with sp_executesql, if I modify the sp_Executesql to include option (recompile) the sp_executesql for the TVF works in under 15 seconds as well.

Running a dbcc freeproccache just prior to running sp_executesql has no effect either.

What I'm believing is that either plan cache utilization or the plan being created is so horrid that the query never finishes, I've let ssms run for over 30 minutes and still not got a plan back.

Since I can't change the SSIS component to use option (recompile) nor is option recompile valid in a TVF (inline) as they are currently written, I'm more concerned that the behavior is the sign of a larger problem in the optimizer with SP2.

Any guidance in resolving this would be appreciated, at the moment we are considering downgrading the new box to SP1.

Additional information:

Tables giving us trouble are fairly wide, have fairly large PK (from a JDE system), and are fairly high volume change wise, if there are no records or very low records in the CT tables then the functions still perform fast, they also perform as expected when using the ALL instead of Net option.

Thanks

John


John Gooding

how to convert float value in hh:mm:ss format

$
0
0

Hi Everyone,

I have a requirement that we have time in hours like 21.52 hrs and we want to convert it into hh:mm:ss format

Please anyone suggest me..

Thanks 

Can't remote connect to sql server

$
0
0

I have SQL Sever 2008 R2 on the cluster environment

cluster server name is A
Cluster Node 1 name is A1 (current active one)
Cluster Node2 name is A2

SQL Server name is Ab, default instance, tcp/ip port 1433

I am not able to remote connect to the server. I tried A, A1, Ab and their corresponding IP address, not of them works. Should I change to the SQL Server name to match with the cluster server name? Thanks in advance!


Why does session not release space in TEMPDB after dropping temporary tables?

$
0
0

I'm using sql 2008 r2.

I've noticed when a session creates and populates a temporary table and then drops it, the space in tempdb does NOT get released. I've run into a situation where the same session creates and drops many fairly large temp tables, and eventually I run out of space in the tempdb.

Is there a way to make it release the space in the tempdb without disconnecting the session?

This is fairly easy to demonstrate. In the below code, even though I keep dropping the table, the tempdb space used by the session keeps increasing as reported by sys.dm_db_session_space_usage.

-- create and populate temp table, then drop it
CREATE TABLE #test (x CHAR(8000)) GO INSERT INTO #test VALUES ('x') GO 100 DROP TABLE #test GO

-- How much space are we using now?

SELECT user_objects_alloc_page_count FROM sys.dm_db_session_space_usage WHERE session_id = @@spid GO
-- Create and populate a temp table again
CREATE TABLE #test (x CHAR(8000)) GO INSERT INTO #test VALUES ('x') GO 100 DROP TABLE #test GO
-- Now we are using even MORE space SELECT user_objects_alloc_page_count FROM sys.dm_db_session_space_usage WHERE session_id = @@spid GO
DROP TABLE #test
GO




Chuck

MAXDOP and SQL Server Standard

$
0
0
I have gone through tons of articles and it seems pretty condiluted, Does standard edition limit you to MAXDOP 4? The server i am working on has 12 physical cores 12 hyper-threaded with 2 numa nodes so in reality it should be set to 6. But is setting it to 6 getting overwritten by the edition of standard?

A job I have seen was running since 11 hours but in history its duration is 48 minutes only

$
0
0

SQL Server agent 2008 :

A job I have seen was running since 11 hours but in history its duration is 48 minutes only.is It possible.


Thanks

Excel Connection

$
0
0

Hi,

When I create an SQL connection from my workstation within an Excel file, other users are unable to refresh the data.

Error Message:

            “[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified”

The connection string being:

DRIVER=SQL Server Native Client 10.0;

SERVER=SQLSERVER;

UID=*ME*;

Trusted_Connection=Yes;

APP=Microsoft Office 2010;

WSID=0347;

But they are able to refresh the data if I create the connection from their own workstation.

The connection string being:

DRIVER=SQL Server Native Client 10.0;

SERVER=SQLSERVER;

UID=*OTHERUSER*;

Trusted_Connection=Yes;

APP=Microsoft Office 2010;

WSID=0348;

I can refresh any connection from my workstation regardless of who created it.


I need all users to be able to refresh files that I have created from my workstation.

Presumably the issue is the SQL Server credentials, but if someone is able to confirm this and offer a solution I’d be most grateful.


Custom File Extension for Microsoft Access Text Driver (*.txt, *.csv)

$
0
0

I'm trying to use a custom file extension for the Microsoft Access Text Driver (*.txt, *.csv) driver.

I have updated the FileExtns registry to have my new extension.

When I issue the following it does not work.

select[NoName] fromopenrowset('MSDASQL'
          
,'Driver={Microsoft Access Text Driver (*.txt, *.csv)};
                DefaultDir=c:\filedir'

          
,'select * from "file.lst"')

If I make the file a .csv it works fine.  However, if it has an extension of not CSV or TXT (in this case .lst, which is in the registry setting) extension it throws the following error and cannot seem to find a solution to it. 

OLE DB provider "MSDASQL" for linked server "(null)" returned message "[Microsoft][ODBC Text Driver] Cannot update. Database or object is read-only.". Msg 7350, Level 16, State 2, Line 1 Cannot get the column information from OLE DB provider "MSDASQL" for linked server "(null)".

In addition, (although I can probably find this elsewhere), I need to have the first line 'BLANK' so that it does not miss data (there is no header row).  Is there  a way to use OPENROWSET without BULK to basically include all rows as data?

Any help is appreciated.

Viewing all 12554 articles
Browse latest View live


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