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

Login issue..

$
0
0

Hi team,

we are migration one server, i have login scripts,once we executing the login script in new server we are getting below error message :

Supplied parameter sid is in use.

how to drop the SID and how to fix this issue?


SQL 2012 SP1 system_health security_error_ring_buffer_recorded Events

$
0
0

Hello,

I recenlty upgraded My SQL 2005 server to SQL 2012 SP1. The system_health in Extended Events is now continuously reporting the event listed below.

After upgrading to SQL 2012 SP1 I installed a second instance on the same server.  This instance does not report the same event.

Any help would be welcome.

name: security_error_ring_buffer_recorded  

timestamp:2012-12-20 15:37:22.0779695

id: 968697679

session_id: 84

error_code: 5023

api_name:ImpersonateSecurityContext

calling_api_name:NLShimImpersonate

call_stack: 0x0657506CF815306CDF88C26B4BC1956BE1C6956B9CCF956BEE39966BC8D4C26B4D05966B4EE60F6D7AEA0F6DABE80F6D41090E6D3E080E6D48060E6DA70B0E6D

Exception happened when running extended stored procedure 'xp_delete_file' in the library 'xpstar.dll'.

$
0
0

I have gone through the related posts. However not found the answer to this problem.

Environment: - 

OS Version: - 2003 R2 (SP2) 64 Bit
SQL version: - Microsoft SQL Server 2008 (SP3) - 10.0.5788.0 (X64)   Jun 29 2012 21:00:35   Copyright (c) 1988-2008 Microsoft Corporation  Enterprise Edition (64-bit) on Windows NT 5.2 <X64> (Build 3790: Service Pack 2) 
Cluster: - YES

Problem Summary: - We have multiple SQL maintenance plan scheduled on the server which is in question here. It appears to be running fine for few days after restart of the server and then suddenly start failing. It always fails while cleanup and also we start experiencing that the Error log file is also not opening under SSMS.

In event viewer: -"Exception happened when running extended stored procedure 'xp_delete_file' in the library 'xpstar.dll'. SQL Server is terminating process 277. Exception type: Win32 exception; Exception code: 0xc0000005."

As per my analysis: - This situation stops three XPs to execute - xp_delete_file, xp_enumerrorlogs and xp_readerrorlog.

Access Right: - I have tried this with SA.

SQL error log: - 

SqlDumpExceptionHandler: Process 231 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
XXXXXXXXXXXXXXXXXXXXspid231     * *******************************************************************************
2013-07-22 00:00:13.63 spid231     *
2013-07-22 00:00:13.63 spid231     * BEGIN STACK DUMP:
2013-07-22 00:00:13.63 spid231     *   07/22/13 00:00:13 spid 231
2013-07-22 00:00:13.63 spid231     *
2013-07-22 00:00:13.63 spid231     *
2013-07-22 00:00:13.63 spid231     *   Exception Address = 000007FF7FC51D71 Module(msvcrt+0000000000051D71)
2013-07-22 00:00:13.63 spid231     *   Exception Code    = c0000005 EXCEPTION_ACCESS_VIOLATION
2013-07-22 00:00:13.63 spid231     *   Access Violation occurred reading address FFFFFFFFFFFFFFFF
2013-07-22 00:00:13.63 spid231     * Input Buffer 238 bytes -
2013-07-22 00:00:13.63 spid231     *             EXECUTE master.dbo.xp_delete_file 0,N'L:\MSSQL10.MSSQLSERVER\
2013-07-22 00:00:13.63 spid231     *  MSSQL\Backup',N'TRN',N'2013-07-20T00:00:13',1  
2013-07-22 00:00:13.63 spid231     *  
2013-07-22 00:00:13.63 spid231     *
2013-07-22 00:00:13.63 spid231     *  MODULE                          BASE      END       SIZE
2013-07-22 00:00:13.63 spid231     * sqlservr                       0000000001000000  00000000048CEFFF  038cf000
2013-07-22 00:00:13.63 spid231     * ntdll                          0000000077EC0000  0000000077FFBFFF  0013c000
2013-07-22 00:00:13.63 spid231     * kernel32                       0000000077D40000  0000000077EB2FFF  00173000
2013-07-22 00:00:13.63 spid231     * MSVCR80                        0000000078130000  00000000781F8FFF  000c9000
2013-07-22 00:00:13.63 spid231     * msvcrt                         000007FF7FC00000  000007FF7FC85FFF  00086000
2013-07-22 00:00:13.63 spid231     * MSVCP80                        000000007C420000  000000007C528FFF  00109000
2013-07-22 00:00:13.63 spid231     * ADVAPI32                       000007FF7FEE0000  000007FF7FFE8FFF  00109000
2013-07-22 00:00:13.63 spid231     * RPCRT4                         000007FF7FD30000  000007FF7FEC8FFF  00199000
2013-07-22 00:00:13.63 spid231     * Secur32                        000007FF7E9C0000  000007FF7E9E1FFF  00022000
2013-07-22 00:00:13.63 spid231     * sqlos                          00000000344D0000  00000000344D6FFF  00007000
2013-07-22 00:00:13.63 spid231     * pdh                            000007FF5B170000  000007FF5B200FFF  00091000
2013-07-22 00:00:13.63 spid231     * SHLWAPI                        000007FF7EF60000  000007FF7EFFAFFF  0009b000
2013-07-22 00:00:13.63 spid231     * GDI32                          000007FF7FC90000  000007FF7FD2BFFF  0009c000
2013-07-22 00:00:13.63 spid231     * USER32                         0000000077C20000  0000000077D2BFFF  0010c000
2013-07-22 00:00:13.63 spid231     * comdlg32                       000007FF7D540000  000007FF7D5B6FFF  00077000
2013-07-22 00:00:13.63 spid231     * COMCTL32                       000007FF76200000  000007FF762EEFFF  000ef000
2013-07-22 00:00:13.63 spid231     * SHELL32                        000007FF7F190000  000007FF7FB9BFFF  00a0c000
2013-07-22 00:00:13.63 spid231     * ole32                          000007FF57140000  000007FF573C4FFF  00285000
2013-07-22 00:00:13.63 spid231     * OLEAUT32                       000007FF7EBC0000  000007FF7ECD5FFF  00116000
2013-07-22 00:00:13.63 spid231     * ODBC32                         000007FF63F00000  000007FF63F68FFF  00069000
2013-07-22 00:00:13.63 spid231     * odbcbcp                        000007FF63EE0000  000007FF63EE7FFF  00008000
2013-07-22 00:00:13.63 spid231     * VERSION                        000007FF7FBF0000  000007FF7FBFAFFF  0000b000
2013-07-22 00:00:13.63 spid231     * CRYPT32                        000007FF7D370000  000007FF7D4CEFFF  0015f000
2013-07-22 00:00:13.63 spid231     * MSASN1                         000007FF7D340000  000007FF7D369FFF  0002a000
2013-07-22 00:00:13.63 spid231     * USERENV                        000007FF7C680000  000007FF7C789FFF  0010a000
2013-07-22 00:00:13.63 spid231     * WINMM                          000007FF7E240000  000007FF7E28FFFF  00050000
2013-07-22 00:00:13.64 spid231     * opends60                       00000000333E0000  00000000333E7FFF  00008000
2013-07-22 00:00:13.64 spid231     * NETAPI32                       000007FF77370000  000007FF77408FFF  00099000
2013-07-22 00:00:13.64 spid231     * BatchParser                    00000000520C0000  00000000520EBFFF  0002c000
2013-07-22 00:00:13.64 spid231     * comctl32                       000007FF7F000000  000007FF7F186FFF  00187000
2013-07-22 00:00:13.64 spid231     * odbcint                        000007FF63DC0000  000007FF63DD7FFF  00018000
2013-07-22 00:00:13.64 spid231     * rdpsnd                         000007FF77100000  000007FF7710AFFF  0000b000
2013-07-22 00:00:13.64 spid231     * WINSTA                         000007FF7D4D0000  000007FF7D4E9FFF  0001a000
2013-07-22 00:00:13.64 spid231     * PSAPI                          000007FF7E380000  000007FF7E38FFFF  00010000
2013-07-22 00:00:13.64 spid231     * instapi10                      00000000053D0000  00000000053DCFFF  0000d000
2013-07-22 00:00:13.64 spid231     * CLUSAPI                        000007FF7B3A0000  000007FF7B3C3FFF  00024000
2013-07-22 00:00:13.64 spid231     * RESUTILS                       000007FF7B310000  000007FF7B32BFFF  0001c000
2013-07-22 00:00:13.64 spid231     * sqlevn70                       000000004F610000  000000004F80FFFF  00200000
2013-07-22 00:00:13.64 spid231     * rsaenh                         0000000068000000  000000006804BFFF  0004c000
2013-07-22 00:00:13.64 spid231     * AUTHZ                          000007FF7E490000  000007FF7E4BDFFF  0002e000
2013-07-22 00:00:13.64 spid231     * MSCOREE                        000006427EE50000  000006427EEB5FFF  00066000
2013-07-22 00:00:13.64 spid231     * msv1_0                         000007FF7E500000  000007FF7E544FFF  00045000
2013-07-22 00:00:13.64 spid231     * cryptdll                       000007FF7DC90000  000007FF7DC9EFFF  0000f000
2013-07-22 00:00:13.64 spid231     * WS2_32                         000007FF77310000  000007FF7733FFFF  00030000
2013-07-22 00:00:13.64 spid231     * WS2HELP                        000007FF77140000  000007FF7714BFFF  0000c000
2013-07-22 00:00:13.64 spid231     * iphlpapi                       000007FF57040000  000007FF57070FFF  00031000
2013-07-22 00:00:13.64 spid231     * kerberos                       000007FF77410000  000007FF774C5FFF  000b6000
2013-07-22 00:00:13.64 spid231     * schannel                       000007FF7DD50000  000007FF7DD93FFF  00044000
2013-07-22 00:00:13.64 spid231     * security                       000007FF77530000  000007FF77534FFF  00005000
2013-07-22 00:00:13.64 spid231     * ftimport                       0000000060000000  0000000060024FFF  00025000
2013-07-22 00:00:13.64 spid231     * MSFTE                          0000000049980000  0000000049D30FFF  003b1000
2013-07-22 00:00:13.64 spid231     * dbghelp                        000000001CEB0000  000000001D00DFFF  0015e000
2013-07-22 00:00:13.64 spid231     * WINTRUST                       000007FF7E3E0000  000007FF7E42FFFF  00050000
2013-07-22 00:00:13.64 spid231     * imagehlp                       000007FF7E470000  000007FF7E484FFF  00015000
2013-07-22 00:00:13.64 spid231     * dssenh                         0000000068100000  000000006813EFFF  0003f000
2013-07-22 00:00:13.64 spid231     * mswsock                        000007FF771B0000  000007FF7722CFFF  0007d000
2013-07-22 00:00:13.64 spid231     * hnetcfg                        000007FF6D200000  000007FF6D292FFF  00093000
2013-07-22 00:00:13.64 spid231     * wshtcpip                       000007FF77170000  000007FF7717AFFF  0000b000
2013-07-22 00:00:13.64 spid231     * wshqos                         000007FF5C750000  000007FF5C75CFFF  0000d000
2013-07-22 00:00:13.64 spid231     * NTMARTA                        000007FF7E4C0000  000007FF7E4FBFFF  0003c000
2013-07-22 00:00:13.64 spid231     * WLDAP32                        000007FF7E950000  000007FF7E9B5FFF  00066000
2013-07-22 00:00:13.64 spid231     * SAMLIB                         000007FF77150000  000007FF77165FFF  00016000
2013-07-22 00:00:13.64 spid231     * ntdsapi                        000007FF7DCB0000  000007FF7DCD3FFF  00024000
2013-07-22 00:00:13.64 spid231     * DNSAPI                         000007FF7E8F0000  000007FF7E93EFFF  0004f000
2013-07-22 00:00:13.64 spid231     * winrnr                         000007FF7E9F0000  000007FF7E9FAFFF  0000b000
2013-07-22 00:00:13.64 spid231     * rasadhlp                       000007FF7EA00000  000007FF7EA06FFF  00007000
2013-07-22 00:00:13.64 spid231     * xpsp2res                       0000000027DA0000  0000000028066FFF  002c7000
2013-07-22 00:00:13.64 spid231     * CLBCatQ                        000007FF7EA10000  000007FF7EAEDFFF  000de000
2013-07-22 00:00:13.64 spid231     * COMRes                         000007FF7EAF0000  000007FF7EBB5FFF  000c6000
2013-07-22 00:00:13.64 spid231     * sqlncli10                      00000000337A0000  0000000033AA9FFF  0030a000
2013-07-22 00:00:13.64 spid231     * SQLNCLIR10                     0000000035000000  0000000035036FFF  00037000
2013-07-22 00:00:13.64 spid231     * xpsqlbot                       000000004A7C0000  000000004A7C7FFF  00008000
2013-07-22 00:00:13.64 spid231     * xpstar                         0000000053C30000  0000000053CB7FFF  00088000
2013-07-22 00:00:13.64 spid231     * SQLSCM                         0000000053AD0000  0000000053ADBFFF  0000c000
2013-07-22 00:00:13.64 spid231     * ATL80                          000000007C630000  000000007C64EFFF  0001f000
2013-07-22 00:00:13.64 spid231     * xpstar                         0000000028100000  0000000028124FFF  00025000
2013-07-22 00:00:13.64 spid231     * xplog70                        0000000034730000  000000003473FFFF  00010000
2013-07-22 00:00:13.64 spid231     * xplog70                        0000000028130000  0000000028131FFF  00002000
2013-07-22 00:00:13.64 spid231     * odsole70                       0000000033380000  0000000033396FFF  00017000
2013-07-22 00:00:13.64 spid231     * scrrun                         000007FF79170000  000007FF791B4FFF  00045000
2013-07-22 00:00:13.64 spid231     * MFC42                          000007FF796F0000  000007FF79859FFF  0016a000
2013-07-22 00:00:13.64 spid231     * SXS                            000007FF7CC60000  000007FF7CE46FFF  001e7000
2013-07-22 00:00:13.64 spid231     * msxmlsql                       0000000078800000  0000000078950FFF  00151000
2013-07-22 00:00:13.64 spid231     * XOLEHLP                        000007FF5C5B0000  000007FF5C5B6FFF  00007000
2013-07-22 00:00:13.64 spid231     * MSDTCPRX                       000007FF67140000  000007FF67213FFF  000d4000
2013-07-22 00:00:13.64 spid231     * msvcp60                        000000001F290000  000000001F379FFF  000ea000
2013-07-22 00:00:13.64 spid231     * MTXCLU                         000007FF7B540000  000007FF7B569FFF  0002a000
2013-07-22 00:00:13.64 spid231     * WSOCK32                        000007FF770F0000  000007FF770F9FFF  0000a000
2013-07-22 00:00:13.64 spid231     * perfdisk                       000007FF63270000  000007FF6327CFFF  0000d000
2013-07-22 00:00:13.64 spid231     * perfos                         000007FF63250000  000007FF6325BFFF  0000c000
2013-07-22 00:00:13.64 spid231     * dbghelp                        0000000048C70000  0000000048DCDFFF  0015e000
2013-07-22 00:00:13.64 spid231     *
2013-07-22 00:00:13.64 spid231     *     P1Home: 0000000000000001:  
2013-07-22 00:00:13.64 spid231     *     P2Home: 00000000342A7290:  0000000000000001  00000000342A7290  0000000000EDA830  000007FF7FC78990  FFFFFADFF5D28890  0000000000000000  
2013-07-22 00:00:13.64 spid231     *     P3Home: 0000000000EDA830:  0056004900520044  007B003D00520045  0020004C00510053  0076007200650053  004E002000720065  0076006900740061  
2013-07-22 00:00:13.64 spid231     *     P4Home: 000007FF7FC78990:  0000000000000024  0000000000000000  0000000000000000  0000000000000000  0000000100000000  0000000000000001  
2013-07-22 00:00:13.64 spid231     *     P5Home: FFFFFADFF5D28890:  
2013-07-22 00:00:13.64 spid231     *     P6Home: 0000000000000000:  
2013-07-22 00:00:13.64 spid231     * ContextFlags: 000000000010001F:  
2013-07-22 00:00:13.64 spid231     *      MxCsr: 0000000000001FA0:  
2013-07-22 00:00:13.64 spid231     *      SegCs: 0000000000000033:  
2013-07-22 00:00:13.64 spid231     *      SegDs: 000000000000002B:  
2013-07-22 00:00:13.64 spid231     *      SegEs: 000000000000002B:  
2013-07-22 00:00:13.64 spid231     *      SegFs: 0000000000000053:  
2013-07-22 00:00:13.64 spid231     *      SegGs: 000000000000002B:  
2013-07-22 00:00:13.64 spid231     *      SegSs: 000000000000002B:  
2013-07-22 00:00:13.64 spid231     *     EFlags: 0000000000010246:  004D005600450044  0053005F00520047  005F0057004F0048  0050004E004F004E  0045005300450052  0044005F0054004E  
2013-07-22 00:00:13.64 spid231     *        Rax: 000000000056B440:  0000000000007A9C  FFFFFFFFFFFFFFFF  0000000000000000  0000000100000000  0000000000000000  0000000000000000  
2013-07-22 00:00:13.64 spid231     *        Rcx: 0000000000000000:  
2013-07-22 00:00:13.64 spid231     *        Rdx: 00000000248E1AC0:  00000000249BD550  0000000024A1E3E0  0000000000000000  000000000056B440  000000001BC6A490  0000000000000000  
2013-07-22 00:00:13.64 spid231     *        Rbx: 0000000000EDA830:  0056004900520044  007B003D00520045  0020004C00510053  0076007200650053  004E002000720065  0076006900740061  
2013-07-22 00:00:13.64 spid231     *        Rsp: 00000000342A7830:  0000000000000000  0000000000000001  0000000000EDA830  0020004C00510053  0000000000000000  000007FF63F26C5E  
2013-07-22 00:00:13.65 spid231     *        Rbp: 000007FF7FC78990:  0000000000000024  0000000000000000  0000000000000000  0000000000000000  0000000100000000  0000000000000001  
2013-07-22 00:00:13.65 spid231     *        Rsi: 00000000342A8E10:  0020004C00510053  0076007200650053  004E002000720065  0076006900740061  006C004300200065  0074006E00650069  
2013-07-22 00:00:13.65 spid231     *        Rdi: 0020004C00510053:  
2013-07-22 00:00:13.65 spid231     *         R8: 000007FFFFEA2000:  0000000000000000  00000000342B0000  0000000034294000  0000000000000000  0000000000001E00  0000000000000000  
2013-07-22 00:00:13.65 spid231     *         R9: 00000000342A83E0:  0000000000000000  0000000000000000  0000000000000000  0000000000000000  0000000000000000  0000000000000000  
2013-07-22 00:00:13.65 spid231     *        R10: 0000000000000000:  
2013-07-22 00:00:13.66 spid231     *        R11: 00000000342A8388:  000007FF63F278D5  0000000000000002  00000000342A83C0  0000000000000012  0000000000000000  0000000000000105  
2013-07-22 00:00:13.66 spid231     *        R12: 0000000000000001:  
2013-07-22 00:00:13.66 spid231     *        R13: 0000000000000001:  
2013-07-22 00:00:13.66 spid231     *        R14: 0000000000000000:  
2013-07-22 00:00:13.66 spid231     *        R15: 00000000342A8E10:  0020004C00510053  0076007200650053  004E002000720065  0076006900740061  006C004300200065  0074006E00650069  
2013-07-22 00:00:13.66 spid231     *        Rip: 000007FF7FC51D71:  7241FB83661FB70F  6604775AFB83660A  3D6606B70F20C383  005A3D660A720041  8348002005660477  856602C6834802C7  
2013-07-22 00:00:13.66 spid231     * *******************************************************************************
2013-07-22 00:00:13.66 spid231     * -------------------------------------------------------------------------------
2013-07-22 00:00:13.66 spid231     * Short Stack Dump
2013-07-22 00:00:13.68 spid231     000007FF7FC51D71 Module(msvcrt+0000000000051D71)
2013-07-22 00:00:13.68 spid231     000007FF63F26C5E Module(ODBC32+0000000000026C5E)
2013-07-22 00:00:13.68 spid231     000007FF63F278D5 Module(ODBC32+00000000000278D5)
2013-07-22 00:00:13.68 spid231     000007FF63F1A9A1 Module(ODBC32+000000000001A9A1)
2013-07-22 00:00:13.68 spid231     0000000053C4FEF6 Module(xpstar+000000000001FEF6)
2013-07-22 00:00:13.68 spid231     0000000053C6253F Module(xpstar+000000000003253F)
2013-07-22 00:00:13.68 spid231     0000000053C62E64 Module(xpstar+0000000000032E64)
2013-07-22 00:00:13.68 spid231     0000000053C6358A Module(xpstar+000000000003358A)
2013-07-22 00:00:13.69 spid231     0000000053C63C86 Module(xpstar+0000000000033C86)
2013-07-22 00:00:13.69 spid231     00000000027C2824 Module(sqlservr+00000000017C2824)
2013-07-22 00:00:13.69 spid231     00000000027C910D Module(sqlservr+00000000017C910D)
2013-07-22 00:00:13.69 spid231     00000000029B1C45 Module(sqlservr+00000000019B1C45)
2013-07-22 00:00:13.69 spid231     0000000002A01204 Module(sqlservr+0000000001A01204)
2013-07-22 00:00:13.69 spid231     0000000002C57935 Module(sqlservr+0000000001C57935)
2013-07-22 00:00:13.69 spid231     00000000020EE650 Module(sqlservr+00000000010EE650)
2013-07-22 00:00:13.69 spid231     000000000321D194 Module(sqlservr+000000000221D194)
2013-07-22 00:00:13.69 spid231     000000000321D8AA Module(sqlservr+000000000221D8AA)
2013-07-22 00:00:13.69 spid231     000000000321DA99 Module(sqlservr+000000000221DA99)
2013-07-22 00:00:13.69 spid231     000000000106793A Module(sqlservr+000000000006793A)
2013-07-22 00:00:13.69 spid231     00000000010697DB Module(sqlservr+00000000000697DB)
2013-07-22 00:00:13.69 spid231     00000000010690F9 Module(sqlservr+00000000000690F9)
2013-07-22 00:00:13.69 spid231     000000000106AFE1 Module(sqlservr+000000000006AFE1)
2013-07-22 00:00:13.69 spid231     00000000010BD827 Module(sqlservr+00000000000BD827)
2013-07-22 00:00:13.69 spid231     000000000100D11B Module(sqlservr+000000000000D11B)
2013-07-22 00:00:13.69 spid231     000000000100CB0A Module(sqlservr+000000000000CB0A)
2013-07-22 00:00:13.69 spid231     000000000100D269 Module(sqlservr+000000000000D269)
2013-07-22 00:00:13.69 spid231     0000000001267240 Module(sqlservr+0000000000267240)
2013-07-22 00:00:13.69 spid231     0000000001267680 Module(sqlservr+0000000000267680)
2013-07-22 00:00:13.70 spid231     00000000012656B6 Module(sqlservr+00000000002656B6)
2013-07-22 00:00:13.72 spid231     0000000001266DFF Module(sqlservr+0000000000266DFF)
2013-07-22 00:00:13.72 spid231     00000000781337D7 Module(MSVCR80+00000000000037D7)
2013-07-22 00:00:13.73 spid231     0000000078133894 Module(MSVCR80+0000000000003894)
2013-07-22 00:00:13.73 spid231     0000000077D6B70A Module(kernel32+000000000002B70A)
2013-07-22 00:00:13.74 spid231     Stack Signature for the dump is 0x0000000131EE25BF

How to check if a view is updatable or not

$
0
0

What is a good way to find out if a view is updatable or not?

The following options I know but are not useful for me:

- try a update / insert statement: because I check all views existing in a unknown database

- look for check_option: there are updatable views with check off

- compare of create / modify date: modify date is also modified if an index is rebuild or if the view is changed even if it is not updateable  - not really sure about it, but I think so

In sys.views I have not found a column with the information I ma looking for. I thought also about OBJECTPROPERTY, but I also have found nothing. Perhaps I have only not seen it ...

SQL Server 2012 Shutting Down Randomly

$
0
0

Hello,

I have two servers with Windows Server 2008 R2 and SQL Server 2012 Standard that were just setup about a week ago. Both SQL Server instances will randomly stop the service and become disabled. I have been reviewing the SQL Server Logs in C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log and I am not seeing any issues that would cause it.

Edit: I am figuring that it is not a coincidence that is happening to two different servers setup at the same time. One with Reporting Services and the other with Integration Services.

Here is the log file:

2013-05-16 15:15:07.55 Server      Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64)
Oct 19 2012 13:38:57
Copyright (c) Microsoft Corporation
 Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)

2013-05-16 15:15:07.55 Server      (c) Microsoft Corporation.
2013-05-16 15:15:07.55 Server      All rights reserved.
2013-05-16 15:15:07.55 Server      Server process ID is 3380.
2013-05-16 15:15:07.55 Server      System Manufacturer: 'VMware, Inc.', System Model: 'VMware Virtual Platform'.
2013-05-16 15:15:07.55 Server      Authentication mode is WINDOWS-ONLY.
2013-05-16 15:15:07.55 Server      Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\ERRORLOG'.
2013-05-16 15:15:07.55 Server      The service account is '<Service Account>'. This is an informational message; no user action is required.
2013-05-16 15:15:07.55 Server      Registry startup parameters:
  -d C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\master.mdf
  -e C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\ERRORLOG
  -l C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\mastlog.ldf
2013-05-16 15:15:07.57 Server      Command Line Startup Parameters:
  -s "MSSQLSERVER"
2013-05-16 15:15:07.76 Server      SQL Server detected 2 sockets with 2 cores per socket and 2 logical processors per socket, 4 total logical processors; using 4 logical processors based on SQL Server licensing. This is an informational message; no user action is required.
2013-05-16 15:15:07.76 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2013-05-16 15:15:07.76 Server      Detected 8191 MB of RAM. This is an informational message; no user action is required.
2013-05-16 15:15:07.76 Server      Using conventional memory in the memory manager.
2013-05-16 15:15:07.79 Server      Error: 8319, Severity: 16, State: 1.
2013-05-16 15:15:07.79 Server      Windows kernel object 'Global\SQL_110_MEMOBJ_24_MSSQLSERVER_0' already exists. It's not owned by the SQL Server service account. SQL Server performance counters are disabled.
2013-05-16 15:15:07.79 Server      Error: 3409, Severity: 16, State: 1.
2013-05-16 15:15:07.79 Server      Performance counter shared memory setup failed with error -1. Reinstall sqlctr.ini for this instance, and ensure that the instance login account has correct registry permissions.
2013-05-16 15:15:07.82 Server      Perfmon counters for resource governor pools and groups failed to initialize and are disabled.
2013-05-16 15:15:07.83 Server      This instance of SQL Server last reported using a process ID of 1740 at 5/16/2013 3:15:02 PM (local) 5/16/2013 8:15:02 PM (UTC). This is an informational message only; no user action is required.
2013-05-16 15:15:07.83 Server      Node configuration: node 0: CPU mask: 0x000000000000000f:0 Active CPU mask: 0x000000000000000f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
2013-05-16 15:15:07.84 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.
2013-05-16 15:15:07.85 Server      Software Usage Metrics is disabled.
2013-05-16 15:15:07.85 spid5s      Starting up database 'master'.
2013-05-16 15:15:07.94 Server      CLR version v4.0.30319 loaded.
2013-05-16 15:15:07.98 Server      Common language runtime (CLR) functionality initialized using CLR version v4.0.30319 from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\.
2013-05-16 15:15:08.70 spid5s      SQL Server Audit is starting the audits. This is an informational message. No user action is required.
2013-05-16 15:15:08.70 spid5s      SQL Server Audit has started the audits. This is an informational message. No user action is required.
2013-05-16 15:15:08.76 spid5s      SQL Trace ID 1 was started by login "sa".
2013-05-16 15:15:08.79 spid5s      Server name is '<Server Name>'. This is an informational message only. No user action is required.
2013-05-16 15:15:08.81 spid5s      Failed to verify Authenticode signature on DLL 'c:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\ftimport.dll'.
2013-05-16 15:15:08.81 spid13s     Starting up database 'msdb'.
2013-05-16 15:15:08.81 spid16s     Starting up database 'red'.
2013-05-16 15:15:08.81 spid9s      Starting up database 'mssqlsystemresource'.
2013-05-16 15:15:08.82 spid17s     Starting up database 'SSISDB'.
2013-05-16 15:15:08.83 spid9s      The resource database build version is 11.00.3000. This is an informational message only. No user action is required.
2013-05-16 15:15:09.02 spid12s     A self-generated certificate was successfully loaded for encryption.
2013-05-16 15:15:09.02 spid12s     Server is listening on [ 'any' <ipv6> 1433].
2013-05-16 15:15:09.03 spid12s     Server is listening on [ 'any' <ipv4> 1433].
2013-05-16 15:15:09.03 spid12s     Server local connection provider is ready to accept connection on [  ].
2013-05-16 15:15:09.03 spid12s     Server local connection provider is ready to accept connection on [ ].
2013-05-16 15:15:09.03 Server      Server is listening on [ ::1 <ipv6> 1434].
2013-05-16 15:15:09.03 Server      Server is listening on [ 127.0.0.1 <ipv4> 1434].
2013-05-16 15:15:09.03 Server      Dedicated admin connection support was established for listening locally on port 1434.
2013-05-16 15:15:09.04 Server      SQL Server is attempting to register a Service Principal Name (SPN) for the SQL Server service. Kerberos authentication will not be possible until a SPN is registered for the SQL Server service. This is an informational message. No user action is required.
2013-05-16 15:15:09.04 spid12s     SQL Server is now ready for client connections. This is an informational message; no user action is required.
2013-05-16 15:15:09.07 Server      The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc<FQDN>/ ] for the SQL Server service. Windows return code: 0x2098, state: 15. Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually registered.
2013-05-16 15:15:09.07 Server      The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc<FQDN>/:1433 ] for the SQL Server service. Windows return code: 0x2098, state: 15. Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually registered.
2013-05-16 15:15:09.58 spid9s      Starting up database 'model'.
2013-05-16 15:15:09.74 spid9s      Clearing tempdb database.
2013-05-16 15:15:10.00 spid9s      Starting up database 'tempdb'.
2013-05-16 15:15:10.12 spid18s     The Service Broker endpoint is in disabled or stopped state.
2013-05-16 15:15:10.12 spid18s     The Database Mirroring endpoint is in disabled or stopped state.
2013-05-16 15:15:10.13 spid18s     Service Broker manager has started.
2013-05-16 15:15:10.27 spid16s     CHECKDB for database 'red' finished without errors on 2013-05-16 10:03:37.250 (local time). This is an informational message only; no user action is required.
2013-05-16 15:15:10.28 spid5s      Recovery is complete. This is an informational message only. No user action is required.
2013-05-16 15:15:10.32 spid5s      Launched startup procedure 'sp_ssis_startup'.
2013-05-16 15:15:11.08 spid16s     AppDomain 2 (SSISDB.dbo[runtime].1) created.
2013-05-16 15:15:11.25 spid16s     Unsafe assembly 'microsoft.sqlserver.integrationservices.server, version=11.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91, processorarchitecture=msil' loaded into appdomain 2 (SSISDB.dbo[runtime].1).
2013-05-16 15:15:11.29 spid16s     Unsafe assembly 'microsoft.sqlserver.integrationservices.server, version=11.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91, processorarchitecture=msil' loaded into appdomain 2 (SSISDB.dbo[runtime].1).
2013-05-16 15:15:48.03 spid52      Configuration option 'show advanced options' changed from 0 to 1. Run the RECONFIGURE statement to install.
2013-05-16 15:15:48.03 spid52      Configuration option 'Agent XPs' changed from 0 to 1. Run the RECONFIGURE statement to install.
2013-05-16 15:15:48.04 spid52      Configuration option 'show advanced options' changed from 1 to 0. Run the RECONFIGURE statement to install.
2013-05-16 15:15:48.51 spid52      Attempting to load library 'xpsqlbot.dll' into memory. This is an informational message only. No user action is required.
2013-05-16 15:15:48.52 spid52      Using 'xpsqlbot.dll' version '2011.110.2100' to execute extended stored procedure 'xp_qv'. This is an informational message only; no user action is required.
2013-05-16 15:15:48.66 spid52      Attempting to load library 'xpstar.dll' into memory. This is an informational message only. No user action is required.
2013-05-16 15:15:48.68 spid52      Using 'xpstar.dll' version '2011.110.3000' to execute extended stored procedure 'xp_instance_regread'. This is an informational message only; no user action is required.
2013-05-16 15:15:48.80 spid52      Attempting to load library 'xplog70.dll' into memory. This is an informational message only. No user action is required.
2013-05-16 15:15:48.81 spid52      Using 'xplog70.dll' version '2011.110.2100' to execute extended stored procedure 'xp_msver'. This is an informational message only; no user action is required.
2013-05-16 15:17:21.23 Logon       Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.23 Logon       Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'model'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.23 Logon       Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.23 Logon       Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'model'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.54 Logon       Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.54 Logon       Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'red'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.54 Logon       Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.54 Logon       Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'red'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.62 Logon       Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.62 Logon       Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'SSISDB'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.62 Logon       Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.62 Logon       Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'SSISDB'. [CLIENT: <IP Address>]
2013-05-16 23:47:21.20 Logon       Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'SSISDB'. [CLIENT: <IP Address>]
2013-05-17 00:00:13.38 spid24s     This instance of SQL Server has been using a process ID of 3380 since 5/16/2013 3:15:10 PM (local) 5/16/2013 8:15:10 PM (UTC). This is an informational message only; no user action is required.
2013-05-17 00:01:34.28 spid51      Configuration option 'show advanced options' changed from 0 to 1. Run the RECONFIGURE statement to install.
2013-05-17 00:01:34.37 spid51      Configuration option 'Agent XPs' changed from 1 to 0. Run the RECONFIGURE statement to install.
2013-05-17 00:01:34.38 spid51      Configuration option 'show advanced options' changed from 1 to 0. Run the RECONFIGURE statement to install.
2013-05-17 00:01:35.94 spid18s     Service Broker manager has shut down.
2013-05-17 00:01:36.09 spid5s      .NET Framework runtime has been stopped.
2013-05-17 00:01:37.09 spid5s      SQL Server is terminating in response to a 'stop' request from Service Control Manager. This is an informational message only. No user action is required.
2013-05-17 00:01:37.09 spid5s      SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.

I have also reviewed the Event Viewer and I see three entries one for disabling MSSQLSERVER, stopping SQL Server Agent, and one for stopping the SQL Server service. I do not see that any specific user information associated with the event.

System
  Provider
   [ Name]  Service Control Manager
   [ Guid]  {555908d1-a6d7-4695-8e1e-26931d2012f4}
   [ EventSourceName]  Service Control Manager
EventID 7040
   [ Qualifiers]  16384
   Version 0
   Level 4
   Task 0
   Opcode 0
   Keywords 0x8080000000000000
TimeCreated
   [ SystemTime]  2013-05-17T05:01:32.109975600Z
   EventRecordID 3733
   Correlation
Execution
   [ ProcessID]  620
   [ ThreadID]  2600
   Channel System
   Computer <FQDN>
Security
  [ UserID]  S-1-5-18
EventData
  param1 SQL Server (MSSQLSERVER)
  param2 auto start
  param3 disabled
  param4 MSSQLSERVER

Our servers do have System Center Operations Manager 2012 installed if that makes a difference. I am not sure what else I can check to see if I can find the cause of the problem. Any assistance would be appreciated.



sp_send_dbmail formatting results - one column has line breaks and wraps a long text string

$
0
0

I have a procedure that returns several results.  One of which has a column with a long string, but I am trimming it to 300 characters.

Regardless, when the email is received, the attached file contains the query results.

The one resultset with the long strings doesnt look right.  It is wrapping within the column, and this throws off the other columns and their headers.
I want it all on one line, no wrapping.
How can I force that one column not to wrap its text

What setting or parameter value should I look at?

USE msdb
    EXEC sp_send_dbmail
      @profile_name = 'DevSQL',
      @recipients = 'me@somewhere.com',
      @subject = 'my report',
      @body = 'my report',
      @query_result_header=1,
      @execute_query_database = 'DBdev',
      @attach_query_result_as_file = 1,
      @query_attachment_filename = 'MyReport.rpt',
      @query_result_width = 4000,     
      @query = 'EXEC Myprocedure'

system date time change influenceon SQL server

$
0
0

Hi! I'm making a small research on how system date time change may influence on correct behavior of windows services.

Actually i need to do some trick in my .Net application on server to make it execute a certain important procedure in the context of time that differs from current (correct) system time. The only way i see is to change system time for a while, execute the procedure, and change date and time back =)

The server (Windows Server 2008R2) is running SQL server 2008 R2 and SharePoint server 2010. So i want to understand what potential problems it can cause in work environment.

SQL Server quit unexpectantly after system date on server was changed to a past date

$
0
0
We have a .NET application that stopped working. After investigation, we discovered that the system date on the server had been changeed to 2003 instead of the current 2013. After correcting the date, the application started working again. So in order to test this, we purposfully changed the date and observed that the application failed on a web request. In addition, SQL Server abruptly quit without any error messages. Changing the date back and rebooting the server fixed the problem again. I want to know what the root issue is so that it can be documented in our knowledge base system.

Jo Lee


SQL on VM, but disks on SAN

$
0
0

My question relates to what happens when you have to rollback the VM.

If all your databases are on a SAN and the SQL Server is on a VM, but you rollback your VM, won't the state of SQL and the state of the databases now not match?  The databases aren't rolled back since they are separate.

I think that was the root cause of a suspect database and DBCC CheckDB reporting errors on other databases, but I want to find documentation on this kind of issue.

Re:Log shipping..

$
0
0

Hi team ,

we are configured log shipping primary and secondary both server are 2005 enterprise edition, but monitor server is 2008  enterprise edition, it can be working or not???


Euro symbol issue in CP850

$
0
0

We are in US using code page 437 (chcp at command prompt returns 437). We have a 3rd party accounting platform with back-end SQL database that we recently migrated from SQL 2005 to 2008 R2. After changing compatibility level to 100, the vendor required us to change collation (using vendor supplied scripting packaged as an executable) from the SQL default to SQL_Latin1_General_Cp850_BIN.

Now, after collation change, in the vendor platform client program the euro symbol displays as a ? instead of €

The vendor says this is a "known MSS issue" but I can't find anything to indicate this except way back with SQL 2000 and 850 not yet supporting the euro symbol.

Can anybody tell me why this might be happening? (I am not an SQL professional)

Thanks,

Joan

How to migrate extended store procedure 64x DLL from SQL 2005 to SQL 2008 R2 ?

$
0
0

Hi! all,

I need to migrate a database with extended store procedures from SQL 2005 64 bit EE to SQL Server 2008 R2 EE, the targuet os is Windows 2008 R2 EE.

I went trought the http://msdn.microsoft.com/en-us/library/ms164653(v=sql.90).aspx when I call a extended store procedure inside the dll é get :

Msg 17750, Level 16, State 0, Procedure xp_fmove, Line 1
Could not load the DLL R:\X_SP\xp_sgt_64.dll, or one of the DLLs it references. Reason: 14001(failed to retrieve text for this error. Reason: 15105).

Am i doing any thing wrong ?

Please assist me to fix the problem.

Best regards.

DELETE FROM Table WHERE PKID=1 runs for over 5 minutes - no idea why

$
0
0

We have a table that has around 500 rows.

I ran DELETE FROM Table WHERE PKID = 1 and the query ran for over 5 minutes before I finally killed it.

I backed up the database and restored to another server, same issue.

After I dropped all the FK constraints and dropped the table itself, I created an exact duplicate an reloaded with the same data and I was then able to delete the row.

I checked the FK constraints and verified they did not have cascade update or deletes (they were set to NO ACTION).

When the DELETE query ran in Activity Monitor I would see wait types of PAGEIOLATCH_SH and CXPacket which swap around for suspended.

The CPU spikes to around 40%.

As for parallelism, I tried setting it to 1 (vs the default of 0) for Max Degree of Parallelism.

After setting it to 1 and trying again, no change (still ran for a while and I killed it).

 I am uncertain as to what is causing this. 

As I have a backup of the database and I can replicate this issue by restoring it and trying again to delete a row I'd really like to investigate this and understand the root cause.

Thoughts/suggestions/ideas?

This is SQL Server 2008 (not R2)

 

how to move database with snapshot?

$
0
0
i have a database for which i have created a database snapshot.  how can i move the database files (and the snapshot file) to a different disk location?  i cannot detach / attach because detach is not allowed for databases with snapshots.

Cannot open backup device 'F:\foldername'. Operating system error 5(Access is denied.).

$
0
0

SQL 2005 Enterprise

Even if I logon as Administrator and try to backup any of my databases to local partitions, I get this error below. I have been operating fine up until this point and doing backups all the time.  As far as I know, and after checking, no permissions have changed and of course Administrator has ntfs permissions to my local C and other partitions on this server:

TITLE: Microsoft SQL Server Management Studio
------------------------------

Backup failed for Server 'servername'.  (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Backup+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

System.Data.SqlClient.SqlError: Cannot open backup device 'F:\foldername'. Operating system error 5(Access is denied.). (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

In the Event log for Windows Server 2003 I see this:

 

Event Type: Error
Event Source: DCOM
Event Category: None
Event ID: 10016
Date:  3/6/2006
Time:  3:35:06 PM
User:  NT AUTHORITY\NETWORK SERVICE
Computer: servername
Description:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
 to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20).  This security permission can be modified using the Component Services administrative tool.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


Huge transaction log issue

$
0
0

Hi there,

Got an issue with a transactio log that was initially set to 1,275,880 mb. Huge since the db is only about 6.5 gb.

The problem is that the disk is out of space and the log is full.

I'm familiar with shrinking the log, but since I have no space on the server, I was going to back the log to another server via SMB. However, since the file is well over a TB, I'm afraid that network perfomance might be an issue.

I wanted to detach and reatach without the log, but since it's full, no dice.

Was wondering if there was something else that I might be able to do.

Thanks!

Justin

What is elapsed time in return from Set Statistics Time

$
0
0
I have the following message when I run a simple query "Select Distinct Orderids from tblOrders"
CPU time = 47 ms, elapsed time = 1692 ms.

Other elasped times within the last 18 hours include 3198 ms, 5189 ms and 8698 ms, and even over 11,000 ms. The CPU time is always between 35 ms and 50 ms. So we need to know what is the cause of this other elapsed time. Is it the network? Is it SSMS? Is it something else on the server? Does anyone have any ideas? Does anyone have any idea how we can check this with only DB_owner rights on some of the databases on the server?

Edward R. Joell MCSD MCDBA


file store from network to sql

$
0
0

Hi Friends,

using sql powershell script how to store files from network location.Can anyone help me on same.

Thanks,

Tiru


tirupal

Performance issues while using the IS_MEMBER function - PREEMPTIVE_OS_LOOKUPACCOUNTSID / PREEMPTIVE_OS_AUTHORIZATIONOPS

$
0
0

We are seeing a huge performance hit with a query that uses the IS_MEMBER function to make sure the current login is part of an specific set of groups in AD.

When we run the code containing the IS_MEMBER function, the query runs in 02:06 minutes.

When the IS_MEMBER piece of code is removed, without checking for the group information, the query runs in 1 second.

While observing the query running for over 2 minutes, I see most of time being spent on the following WAIT STATS:

PREEMPTIVE_OS_LOOKUPACCOUNTSID

PREEMPTIVE_OS_AUTHORIZATIONOPS

These are not well documented WAIT STATS. It seems that only Paul Randal has some information on them.

About my environment:

SQL Server 2012 with AlwaysOn Enabled. This query runs in one of the AlwaysOn Replicas.

For troubleshooting purposes we ran this on the principal as well, and we're still having the same performance.

Are you guys familiar with any issues with that function?

Would the ADSI link work better than the IS_MEMBER function?

Anywhere you guys could point me to?


--- Best Regards, Igor Santos Twitter: @sqlsantos Blog: sqlsantos.wordpress.com

How to remove manually a one instance on a server with 4 instances sql 2005 exp

$
0
0

Hello at all,
I have a win2003 server with sql2005 exp with 4 instance. Now I can remove a one of these istances but the add/remove procedure faill and this instance can not uninstall. I would like to tray to remove it manually butI want to besure that I notcreateproblemsover the other 3instances.
Can you suggestthe bestprocedure for themanual removalof an instancewithout beinginvolvedthe other

Thanks a lot



Viewing all 15264 articles
Browse latest View live


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