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

Restore full Db backup on another server and transaction log?

$
0
0

If I want to migrate a Db to a new server, and i have the location where the full Db backups and transaction log backups  are being kept, can I use both the Db backup as well as the transaction log backup to restore on the other server?

However, if there has been new records added since the last full backup, then I should probably just do a full (copy only) backup and take that as my starting point? 


SQL Server SSL Certificate used by all instances

$
0
0

I have a server with multiple instances. I created a new SSL Certificate to encrypt connections to one particular instance. This instance is the only one where the certificate shows up under SQL Server Network Configuration > Protocols for <instance>> Properties > Certificate tab. 
Also in the registry, this instance is the only one that has a value under:
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\<instance>\MSSQLServer\SuperSocketNetLib\Certificate.

However, after a server restart all instances on the server loaded the certificate. I see this in all the SQL Server Logs:

The certificate [Cert Hash(sha1) "4AADCC920F8B7B4D7196CAD745986BB286CE0DD6"] was successfully loaded for encryption.

We have one application that has issues with the certificate, and I'd like to figure out why all instances loaded the certificate?

 

Always encrypted and management studio

$
0
0

According to the following links:

https://docs.microsoft.com/en-us/sql/relational-databases/security/encryption/configure-always-encrypted-using-sql-server-management-studio?view=sql-server-2017

I should have able to insert/select with where clause for encrypted column .While I am currently using SSMS 17.8.1

and enable Parameterization for Always Encrypted . And also added Column Encryption Setting=Enabled to connection properties

but still, I trying to do something like :

declare @inputname varchar(50)
set @inputname='Peter'
select * from  dbo.encryptedphone where name=@inputname

throw the following error.

Msg 33299, Level 16, State 6, Line 9
Encryption scheme mismatch for columns/variables '@inputname'. The encryption scheme for the columns/variables is (encryption_type = 'PLAINTEXT') and the expression near line '7' expects it to be (encryption_type = 'DETERMINISTIC', encryption_algorithm_name = 'AEAD_AES_256_CBC_HMAC_SHA_256', column_encryption_key_name = 'CEK_Auto1', column_encryption_key_database_name = 'AdventureworksLT') (or weaker).

why is that??

name is the encrypted column with deterministric function.

Linked server to IBM AS400 only works with AD account and not SQL accounts - Suddenly

$
0
0

Good Day,

I am running SQL server 2014 Standard CU5. For some time now I have had a linked server to IBM AS400.

This is accessed via an SQL account and an AS400 account on the other end and has worked perfectly fine for years.

This has now stopped working and any attempt to browse or query the linked server via Management studio causes it to hang.

I have noticed however that if I log into the studio with an AD account then I can browse and query perfectly fine.

I have created a test linked server and a test sql account in case anything was wrong with these objects but the issue still exists for only sql accounts.

I was hoping someone might have an idea on why sql accounts have this problem all of a sudden.

Thank you for your help.

Paul.

Sharding for on-prem database

$
0
0

There is sharding method in Azure sql database ., Multitenant database.

are there sharding method for on-prem SQL database for any version ?

Unable to terminate process issue for jobs calling a SSIS pkg - SQL Server 2014

$
0
0

Hi,

today I've controlled the SQL Server Agent jobs deployed on a SQL Server 2014 (SP2 C8) prod environment.

Until now, all these jobs have executed rightly!

Today, the jobs calling a SSIS package are remained pending and I've stopped them manually.

The called SSIS pkgs are saved on SQL Server or file system; the SSIS catalog is not used.

I've controlled the log of the SQL Server Agent and I've noticed this error message:

I've tried to launch the jobs manually but no results.

Moreover, I've tried to launch the single SSIS package successfully.

The execution account of the SQL Server Agent is a domain account with sysadmin role.

The owner of these jobs is sa.

Repeat that until now all the prod jobs have executed rightly!

Any helps to me, please? Thanks

Faulting module path: c:\Program Files\Microsoft SQL Server\100\Shared\svrenumapi100.dll

$
0
0

My company's main clustered, always on production server experiences random node restarts often WITHOUT failover, but causing tremendous headache to production systems due to lost connections.

The Windows event log shows Application Errors like:

Faulting application start time: 0x01d4609209fbc997
Faulting application path: C:\Windows\system32\wbem\wmiprvse.exe
Faulting module path: c:\Program Files\Microsoft SQL Server\100\Shared\svrenumapi100.dll

I was not involved with this system setup, but it has both SQL Server 2008 and 2012 Enterprise 64-bit editions installed.

From what I've read online it seems there may be an issue with having both versions installed side by side.  Is it possible to remove the SQL Server 2008 version and alleviate the problem?  If not, can some provide a step by step list of actions to take care of the app crashes we're having?

Thanks in advance!

Access Violation occurred reading address Dump followed by second dump

$
0
0

Our main production server started a log file dump and then 10 minutes later started a second dump. Maybe worth noting the first dump is in the SQL log, but not logged in the Windows Log. But The second dump is in the Windows Log as "The SQL Server (MSSQLSERVER) service terminated unexpectedly. It has done this 1 time(s)."

First dump:

Current time is 14:52:01 10/05/18.                                                                               
=====================================================================                                            
       BugCheck Dump                                                                                             
=====================================================================                                            
This file is generated by Microsoft SQL Server                                                                   
version 10.50.4033.0                                                                                             
upon detection of fatal unexpected error. Please return this file,                                               
the query or program that produced the bugcheck, the database and                                                
the error log, and any other pertinent information with a Service Request.                                       
Computer type is Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz.                                                
Bios Version is VRTUAL - 5001223                                                                                 
BIOS Date: 05/23/12 17:15:53  Ver: 09.00.06                                                                      
6 X64 level 8664, 10 Mhz processor (s).                                                                          
Windows NT 6.1 Build 7601 CSD Service Pack 1.                                                                    
Memory                               
MemoryLoad = 86%                     
Total Physical = 53999 MB            
Available Physical = 7168 MB         
Total Page File = 107997 MB          
Available Page File = 63588 MB       
Total Virtual = 8388607 MB           
Available Virtual = 8328752 MB       
***Stack Dump being sent to C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\LOG\SQLDump0033.tx
t                                                                                                                
SqlDumpExceptionHandler: Process 217 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is
 terminating this process.                                                                                       
* *******************************************************************************                                
*                                                                                                                
* BEGIN STACK DUMP:                                                                                              
*   10/05/18 14:52:01 spid 217                                                                                   
*                                                                                                                
*                                                                                                                
*   Exception Address = 0000000076FCF23C Module(ntdll+000000000004F23C)                                          
*   Exception Code    = c0000005 EXCEPTION_ACCESS_VIOLATION                                                      
*   Access Violation occurred reading address 00000529C2091138                                                   
*                                                                                                                
*                                                                                                                
*  MODULE                          BASE      END       SIZE                                                      
* sqlservr                       00000000007E0000  00000000043F1FFF  03c12000                                    
* ntdll                          0000000076F80000  0000000077129FFF  001aa000                                    
* kernel32                       0000000076D60000  0000000076E7EFFF  0011f000                                    
* KERNELBASE                     000007FEFCCA0000  000007FEFCD09FFF  0006a000                                    
* ADVAPI32                       000007FEFD600000  000007FEFD6DAFFF  000db000                                    
* msvcrt                         000007FEFEA10000  000007FEFEAAEFFF  0009f000                                    
* sechost                        000007FEFEC20000  000007FEFEC3EFFF  0001f000                                    
* RPCRT4                         000007FEFD2B0000  000007FEFD3DCFFF  0012d000                                    
* MSVCR80                        00000000715A0000  0000000071668FFF  000c9000                                    
* MSVCP80                        000000006F970000  000000006FA78FFF  00109000                                    
* sqlos                          000000006F8D0000  000000006F8D6FFF  00007000                                    
* Secur32                        000007FEFC870000  000007FEFC87AFFF  0000b000                                    
* SSPICLI                        000007FEFCA40000  000007FEFCA64FFF  00025000                                    
* pdh                            000007FEF5F40000  000007FEF5F8DFFF  0004e000                                    
* SHLWAPI                        000007FEFEC40000  000007FEFECB0FFF  00071000                                    
* GDI32                          000007FEFEEC0000  000007FEFEF26FFF  00067000                                    
* USER32                         0000000076E80000  0000000076F79FFF  000fa000                                    
* LPK                            000007FEFD5F0000  000007FEFD5FDFFF  0000e000                                    
* USP10                          000007FEFE470000  000007FEFE53AFFF  000cb000                                    
* USERENV                        000007FEFD010000  000007FEFD02DFFF  0001e000                                    
* profapi                        000007FEFCC70000  000007FEFCC7EFFF  0000f000                                    
* WINMM                          000007FEF5F00000  000007FEF5F3AFFF  0003b000                                    
* IPHLPAPI                       000007FEFA5D0000  000007FEFA5F6FFF  00027000                                    
* NSI                            000007FEFF280000  000007FEFF287FFF  00008000                                    
* WINNSI                         000007FEFA5A0000  000007FEFA5AAFFF  0000b000                                    
* opends60                       000000006F890000  000000006F897FFF  00008000                                    
* NETAPI32                       000007FEFA2E0000  000007FEFA2F5FFF  00016000                                    
* netutils                       000007FEFC150000  000007FEFC15BFFF  0000c000                                    
* srvcli                         000007FEFC670000  000007FEFC692FFF  00023000                                    
* wkscli                         000007FEFA2C0000  000007FEFA2D4FFF  00015000                                    
* LOGONCLI                       000007FEFC520000  000007FEFC54FFFF  00030000                                    
* SAMCLI                         000007FEF97C0000  000007FEF97D3FFF  00014000                                    
* BatchParser                    000000006F860000  000000006F88CFFF  0002d000                                    
* IMM32                          000007FEFD5C0000  000007FEFD5EDFFF  0002e000                                    
* MSCTF                          000007FEFEB10000  000007FEFEC18FFF  00109000                                    
* psapi                          0000000077150000  0000000077156FFF  00007000                                    
* instapi10                      000000006F8C0000  000000006F8CCFFF  0000d000                                    
* cscapi                         000007FEF91C0000  000007FEF91CEFFF  0000f000                                    
* sqlevn70                       000000006F650000  000000006F853FFF  00204000                                    
* CRYPTSP                        000007FEFC650000  000007FEFC667FFF  00018000                                    
* rsaenh                         000007FEFC160000  000007FEFC1A6FFF  00047000                                    
* CRYPTBASE                      000007FEFCAD0000  000007FEFCADEFFF  0000f000                                    
* BROWCLI                        000007FEF5C10000  000007FEF5C21FFF  00012000                                    
* AUTHZ                          000007FEFC560000  000007FEFC58EFFF  0002f000                                    
* MSCOREE                        000007FEF8F70000  000007FEF8FDEFFF  0006f000                                    
* mscoreei                       000007FEF8E70000  000007FEF8F0CFFF  0009d000                                    
* ole32                          000007FEFECC0000  000007FEFEEBBFFF  001fc000                                    
* credssp                        000007FEFC0B0000  000007FEFC0B9FFF  0000a000                                    
* msv1_0                         000007FEFC360000  000007FEFC3B1FFF  00052000                                    
* cryptdll                       000007FEFC710000  000007FEFC723FFF  00014000                                    
* kerberos                       000007FEFC3C0000  000007FEFC477FFF  000b8000                                    
* MSASN1                         000007FEFCC80000  000007FEFCC8EFFF  0000f000                                    
* schannel                       000007FEFC1F0000  000007FEFC247FFF  00058000                                    
* CRYPT32                        000007FEFCD30000  000007FEFCE9CFFF  0016d000                                    
* security                       000000006F640000  000000006F642FFF  00003000                                    
* WS2_32                         000007FEFD0D0000  000007FEFD11CFFF  0004d000                                    
* SHELL32                        000007FEFD6E0000  000007FEFE469FFF  00d8a000                                    
* OLEAUT32                       000007FEFE930000  000007FEFEA09FFF  000da000                                    
* ftimport                       0000000060000000  0000000060024FFF  00025000                                    
* MSFTE                          0000000049980000  0000000049D2DFFF  003ae000                                    
* VERSION                        000007FEFBD30000  000007FEFBD3BFFF  0000c000                                    
* dbghelp                        000000006DCC0000  000000006DE1DFFF  0015e000                                    
* WINTRUST                       000007FEFCF90000  000007FEFCFCAFFF  0003b000                                    
* ncrypt                         000007FEFC5F0000  000007FEFC63FFFF  00050000                                    
* bcrypt                         000007FEFC5C0000  000007FEFC5E1FFF  00022000                                    
* mswsock                        000007FEFC480000  000007FEFC4D4FFF  00055000                                    
* wship6                         000007FEFC550000  000007FEFC556FFF  00007000                                    
* wshtcpip                       000007FEFBE00000  000007FEFBE06FFF  00007000                                    
* ntmarta                        000007FEFBB40000  000007FEFBB6CFFF  0002d000                                    
* WLDAP32                        000007FEFEAB0000  000007FEFEB01FFF  00052000                                    
* ntdsapi                        000007FEF9ED0000  000007FEF9EF6FFF  00027000                                    
* DNSAPI                         000007FEFC250000  000007FEFC2AAFFF  0005b000                                    
* rasadhlp                       000007FEF9F70000  000007FEF9F77FFF  00008000                                    
* fwpuclnt                       000007FEF96A0000  000007FEF96F2FFF  00053000                                    
* bcryptprimitives               000007FEFBFB0000  000007FEFBFFBFFF  0004c000                                    
* CLBCatQ                        000007FEFD030000  000007FEFD0C8FFF  00099000                                    
* sqlncli10                      000000006D720000  000000006D9DCFFF  002bd000                                    
* COMCTL32                       000007FEF5970000  000007FEF5A0FFFF  000a0000                                    
* COMDLG32                       000007FEFE540000  000007FEFE5D6FFF  00097000                                    
* SQLNCLIR10                     000000006D330000  000000006D366FFF  00037000                                    
* netbios                        000007FEF4EB0000  000007FEF4EB9FFF  0000a000                                    
* xpsqlbot                       0000000069DC0000  0000000069DC7FFF  00008000                                    
* xpstar                         0000000069C50000  0000000069CD7FFF  00088000                                    
* SQLSCM                         000000006D710000  000000006D71DFFF  0000e000                                    
* ODBC32                         000007FEF4CD0000  000007FEF4D80FFF  000b1000                                    
* ATL80                          000000006FE50000  000000006FE6FFFF  00020000                                    
* odbcint                        000000006D6C0000  000000006D6F7FFF  00038000                                    
* clusapi                        000007FEF4D90000  000007FEF4DDFFFF  00050000                                    
* resutils                       000007FEF4CB0000  000007FEF4CC8FFF  00019000                                    
* xpstar                         0000000069BC0000  0000000069BE4FFF  00025000                                    
* xplog70                        0000000069D80000  0000000069D8FFFF  00010000                                    
* xplog70                        0000000069BB0000  0000000069BB1FFF  00002000                                    
* COMRES                         0000000069710000  000000006984DFFF  0013e000                                    
* XOLEHLP                        000007FEF1BB0000  000007FEF1BC3FFF  00014000                                    
* MSDTCPRX                       000007FEF1900000  000007FEF19BBFFF  000bc000                                    
* MTXCLU                         000007FEF1B50000  000007FEF1BAFFFF  00060000                                    
* ktmw32                         000007FEFA2B0000  000007FEFA2B9FFF  0000a000                                    
* RpcRtRemote                    000007FEFCB80000  000007FEFCB93FFF  00014000                                    
* dsrole                         000007FEFA960000  000007FEFA96BFFF  0000c000                                    
* msxmlsql                       0000000067330000  0000000067480FFF  00151000                                    
* SAMLIB                         000007FEFA910000  000007FEFA92CFFF  0001d000                                    
* apphelp                        000007FEFCA70000  000007FEFCAC6FFF  00057000                                    
* mscorwks                       000007FEF8360000  000007FEF8CFFFFF  009a0000                                    
* mscorlib.ni                    000007FEF72A0000  000007FEF817DFFF  00ede000                                    
* mscorsec                       000007FEF5A10000  000007FEF5A28FFF  00019000                                    
* imagehlp                       000007FEFEF30000  000007FEFEF48FFF  00019000                                    
* GPAPI                          000007FEFBF70000  000007FEFBF8AFFF  0001b000                                    
* cryptnet                       000007FEF9980000  000007FEF99A6FFF  00027000                                    
* SensApi                        000007FEF9050000  000007FEF9058FFF  00009000                                    
* SqlAccess                      0000000061230000  0000000061293FFF  00064000                                    
* mscorjit                       000007FEF5700000  000007FEF5882FFF  00183000                                    
* System.Data                    000000006D380000  000000006D68DFFF  0030e000                                    
* System.ni                      000007FEF6860000  000007FEF7292FFF  00a33000                                    
* System.Transactions            000000006D2E0000  000000006D328FFF  00049000                                    
* System.Security.ni             000007FEE96B0000  000007FEE979FFFF  000f0000                                    
* System                         0000000060C30000  0000000060F3FFFF  00310000                                    
* System.Security                0000000062A90000  0000000062AD5FFF  00046000                                    
* System.Xml                     0000000060A30000  0000000060C29FFF  001fa000                                    
* sqlevn70                       000000005E710000  000000005E982FFF  00273000                                    
* sqlevn70                       000000005AD40000  000000005AFB0FFF  00271000                                    
* sqlevn70                       00000000601D0000  0000000060322FFF  00153000                                    
* sqlevn70                       0000000059D10000  0000000059F69FFF  0025a000                                    
* sqlevn70                       0000000059AA0000  0000000059D00FFF  00261000                                    
* sqlevn70                       0000000059850000  0000000059A95FFF  00246000                                    
* sqlevn70                       0000000059610000  000000005984BFFF  0023c000                                    
* sqlevn70                       000000005F950000  000000005FA44FFF  000f5000                                    
* sqlevn70                       000000005E5C0000  000000005E707FFF  00148000                                    
* sqlevn70                       000000005AC50000  000000005AD3CFFF  000ed000                                    
* instapi                        0000000048060000  000000004806CFFF  0000d000                                    
* dbghelp                        00000000594B0000  000000005960DFFF  0015e000                                    
*                                                                                                                
*     P1Home: 000000004AE8C5B0:  00000000C0000005  0000000000000000  0000000076FCF23C  0000000000000002  00000000
00000000  00000529C2091138                                                                                       
*     P2Home: 000000004AE8C0C0:  000000004AE8C5B0  000000004AE8C0C0  0000000000000000  0000000000000000  00000000
00000007  000000003BF20031                                                                                       
*     P3Home: 0000000000000000:                                                                                  
*     P4Home: 0000000000000000:                                                                                  
*     P5Home: 0000000000000007:                                                                                  
*     P6Home: 000000003BF20031:  02000000003BF200  0000000000000000  000000000403F880  90000000074CCBA0  01000000
001FC01F  D002000302000B00                                                                                       
* ContextFlags: 000000000010001F:  0000000000000000  0000000000000000  0000000000000000  0000000000000000  000000
0000000000  0000000000000000                                                                                     
*      MxCsr: 0000000000001FA0:                                                                                  
*      SegCs: 0000000000000033:                                                                                  
*      SegDs: 000000000000002B:                                                                                  
*      SegEs: 000000000000002B:                                                                                  
*      SegFs: 0000000000000053:                                                                                  
*      SegGs: 000000000000002B:                                                                                  
*      SegSs: 000000000000002B:                                                                                  
*     EFlags: 0000000000010206:  0000770B70300000  0000FFFFFFFF0000  0000000000000000  0000000000000000  00000000
0FA00000  0000000000000000                                                                                       
*        Rax: 00000000F0E0D0C0:  0052001E001A0002  C000A901ED360042  CE0000A7AD015A11  000200000500C293  00330058
001E001A  14DB0000A901EE36                                                                                       
*        Rcx: 000000FFFFFFFFFF:                                                                                  
*        Rdx: 0000000000000000:                                                                                  
*        Rbx: 00000529C2091130:                                                                                  
*        Rsp: 000000004AE8C680:  000000003FFD8C00  000000003FFD8C10  000000003FFD8C10  0000000000000004  000007FE
FEC23174  000007FEFEC230A0                                                                                       
*        Rbp: 000000000052F550:  46582D04FB8A0729  AC3F55ADB42793BE  0051005300000001  11C91CEB8A885D04  6048102B
0008E89F  0000000000000002                                                                                       
*        Rsi: 0000000000000000:                                                                                  
*        Rdi: 0000000000000000:                                                                                  
*         R8: 000000000052F540:  000000000000000A  88000000F0E0D0C0  46582D04FB8A0729  AC3F55ADB42793BE  00510053
00000001  11C91CEB8A885D04                                                                                       
*         R9: 000007FEFD2B7440:  A9AB850F00507983  C300000001B80004  00000018E8CF8B48  9090900003FFB0E9  90909090
90909090  9090909090909090                                                                                       
*        R10: 000007FEFEC230A0:  11C91CEB8A885D04  6048102B0008E89F  0000000000000002  0000000000000000  000007FE
FEC21B52  000007FEFEC21CE0                                                                                       
*        R11: 000000000052F550:  46582D04FB8A0729  AC3F55ADB42793BE  0051005300000001  11C91CEB8A885D04  6048102B
0008E89F  0000000000000002                                                                                       
*        R12: 00000000004C0000:  0000000000000000  010073F0EBBF3701  00000000FFEEFFEE  0000000018F50018  00000000
004C0128  00000000004C0000                                                                                       
*        R13: 000000002FC99B60:  000007FEFD39F410  0001000089ABCDEF  0000000000000002  0000000000000000  00000000
00000000  0000000100000005                                                                                       
*        R14: 000000004AE8CC10:  000000002FC99B60  0000000000000000  0000000000000000  0000000000000000  000007FE
FEC21690  000007FEFEC23170                                                                                       
*        R15: 000000003FFD8C00:  000000000052F550  0000000020ECD8D0  0000000000000001  800000526DC0D3AB  00000000
000000BE  0000000000000000                                                                                       
*        Rip: 0000000076FCF23C:  0001BD49087B8B48  BE49000000010000  FFFFFFFF00007FFF  708841800F40C641  0FFFFF00
00BF410E  8D4B105B8B4C001F                                                                                       
* *******************************************************************************                                
* -------------------------------------------------------------------------------                                
* Short Stack Dump                                                                                               
0000000076FCF23C Module(ntdll+000000000004F23C)                                                                  
000007FEFD2E580A Module(RPCRT4+000000000003580A)                                                                 
000007FEFD2E54AE Module(RPCRT4+00000000000354AE)                                                                 
000007FEFD2F575B Module(RPCRT4+000000000004575B)                                                                 
000007FEFD38C743 Module(RPCRT4+00000000000DC743)                                                                 
000007FEFD38C9BB Module(RPCRT4+00000000000DC9BB)                                                                 
000007FEFD38CDE5 Module(RPCRT4+00000000000DCDE5)                                                                 
000007FEFEC342E1 Module(sechost+00000000000142E1)                                                                
000007FEFEC33E3B Module(sechost+0000000000013E3B)                                                                
000007FEFEC34271 Module(sechost+0000000000014271)                                                                
000007FEFD61DB3F Module(ADVAPI32+000000000001DB3F)                                                               
0000000000C30B67 Module(sqlservr+0000000000450B67)                                                               
0000000000C2FB5B Module(sqlservr+000000000044FB5B)                                                               
0000000000C5AB6F Module(sqlservr+000000000047AB6F)                                                               
0000000000C282D1 Module(sqlservr+00000000004482D1)                                                               
0000000000C281B5 Module(sqlservr+00000000004481B5)                                                               
00000000007EEF4C Module(sqlservr+000000000000EF4C)                                                               
00000000007EED26 Module(sqlservr+000000000000ED26)                                                               
00000000007EEB6B Module(sqlservr+000000000000EB6B)                                                               
000000000094E216 Module(sqlservr+000000000016E216)                                                               
000000000094E445 Module(sqlservr+000000000016E445)                                                               
000000000094DB79 Module(sqlservr+000000000016DB79)                                                               
000000000094EF8A Module(sqlservr+000000000016EF8A)                                                               
00000000715A37D7 Module(MSVCR80+00000000000037D7)                                                                
00000000715A3894 Module(MSVCR80+0000000000003894)                                                                
0000000076D759CD Module(kernel32+00000000000159CD)                                                               
0000000076FAA561 Module(ntdll+000000000002A561)                           

CSession @0x00000005A2D9E3B0
----------------------------
m_spid = 217                         m_cRef = 8                           m_rgcRefType[0] = 1                    
m_rgcRefType[1] = 1                  m_rgcRefType[2] = 5                  m_rgcRefType[3] = 1                    
m_rgcRefType[4] = 0                  m_rgcRefType[5] = 0                  m_pmo = 0x00000005A2D9E080             
m_pstackBhfPool = 0x0000000000000000 m_dwLoginFlags = 0x83e0              m_fBackground = 0                      
m_eConnResetOption = 0               m_fUserProc = -1                     m_fConnReset = 0                       
m_fIsConnReset = 0                   m_fInLogin = 1                       m_fAuditLoginSent = 0                  
m_fAuditLoginFailedSent = 0          m_fReplRelease = 0                   m_fKill = 0                            
m_ulLoginStamp = 14015224            m_eclClient = 6                      m_protType = 6                         
m_hHttpToken = FFFFFFFFFFFFFFFF      

m_pV7LoginRec
---------------------
0000000000000000:   2a010000 03000b73 00000000 00000007 240a0000 †*......s........$...                           

0000000000000014:   00000000 e0830000 2c010000 09040000 5e000900 †....àƒ..,...	...^.	.                           

0000000000000028:   00000000 00000000 70001600 9c000000 00000000 †........p...œ.......                           

000000000000003C:   9c000400 a4000000 a4000400 00155d0a 1f10ac00 †œ...¤...¤.....]...¬.                           

0000000000000050:   7e00ac00 00000000 00000000 0000†††††††††††††††~.¬...........                                 




CPhysicalConnection @0x00000005A2D9E270
---------------------------------------
m_pPhyConn->m_pmo = 0x00000005A2D9E080                                                                           
m_pPhyConn->m_pNetConn = 0x00000005A2D9EAD0                                                                      
m_pPhyConn->m_pConnList = 0x00000005A2D9E380                                                                     
m_pPhyConn->m_pSess = 0x00000005A2D9E3B0                                  m_pPhyConn->m_fTracked = -1            
m_pPhyConn->m_cbPacketsize = 4096    m_pPhyConn->m_fMars = 0              m_pPhyConn->m_fKill = 0                


CBatch @0x00000005A2D9EFA0
--------------------------
m_pSess = 0x00000005A2D9E3B0         m_pConn = 0x00000005A2D9EEA0         m_cRef = 3                             
m_rgcRefType[0] = 1                  m_rgcRefType[1] = 1                  m_rgcRefType[2] = 1                    
m_rgcRefType[3] = 0                  m_rgcRefType[4] = 0                  m_pTask = 0x0000000000613948           


EXCEPT (null) @0x000000004AE89418
---------------------------------
exc_number = 0                       exc_severity = 0                     exc_func = 0x0000000002D03800          



Task @0x0000000000613948
------------------------
CPU Ticks used (ms) = 0              Task State = 2                                                              
WAITINFO_INTERNAL: WaitResource = 0x0000000000000000                      WAITINFO_INTERNAL: WaitType = 0x0      
WAITINFO_INTERNAL: WaitSpinlock = 0x0000000000000000                                                             
WAITINFO_EXTERNAL: WaitResource = 0x0000000000000000                                                             
WAITINFO_EXTERNAL: WaitType = 0x2000017D                                                                         
WAITINFO_EXTERNAL: WaitSpinlock = 0x0000000000000000                      SchedulerId = 0x5                      
ThreadId = 0x58c                     m_state = 0                          m_eAbortSev = 0                        



EC @0x000000014DF620F0
----------------------
spid = 0                             ecid = 0                             ec_stat = 0x0                          
ec_stat2 = 0x0                       ec_atomic = 0x0                      __fSubProc = 1                         
__pSETLS = 0x00000005A2D9EF10        __pSEParams = 0x000000004AE8DEF0     

SEInternalTLS @0x00000005A2D9EF10
---------------------------------
	m_flags = 0                         	m_TLSstatus = 3                     	m_owningTask = 0x0000000000613948     
	m_activeHeapDatasetList = 0x00000005A2D9EF10                                                                    
	m_activeIndexDatasetList = 0x00000005A2D9EF20                            	m_pDbccContext = 0x0000000000000000   


SEParams @0x000000004AE8DEF0
----------------------------
	m_lockTimeout = -1                  	m_isoLevel = 4096                   	m_logDontReplicate = 0                
	m_neverReplicate = 0                	m_XactWorkspace = 0x000000069C6C6080                                       
	m_pSessionLocks = 0x000000014DF629E0                                     	m_pDbLocks = 0x000000004AE8E610       
	m_execStats = 0x00000001045755F0    	m_pAllocFileLimit = 0x0000000000000000                         

SQL Server in Linux crash

$
0
0

Dear All,

anyone have faced issue sql server in linux crash?

Main PID : 1466 (handle-crash.sh)

I can't post image yet, so i can't share any screen shot here.

calculated columns with convert in indexed views

$
0
0

Hi,

I have a report where I need to get some aggregations and grouped by columns with imprecise types.

As you can not use imprecise columns in indexed views I tried to add precise computed columns in my source tables and use them instead. I cannot do it. I get "A severe error occurred on the current command.  The results, if any, should be discarded.". Below I attached my sample code.

Is there some explanation behind it? Are computed columns with type casts considered as dependencies or something?

CREATE TABLE [dbo].[TopCase](
	[Id] [uniqueidentifier] NOT NULL primary key,
	[IdentityID] [bigint] IDENTITY(1,1) NOT NULL,
	[Deductible_CurrentValue] [float] NULL,
	[Deductible_CurrentValue_numeric]  AS (CONVERT([numeric](18,5),[Deductible_CurrentValue])) PERSISTED,
)
GO

CREATE TABLE [dbo].[TopService](
	[Id] [uniqueidentifier] NOT NULL primary key,
	[IdentityID] [bigint] IDENTITY(1,1) NOT NULL,
	[CaseId] [uniqueidentifier] NULL,
)
GO

create view dbo.testView1
with schemabinding
 as
	SELECT 
		 c.[IdentityID]
		 ,c.[Deductible_CurrentValue_numeric]
	FROM [dbo].[TopCase] c
	inner join [dbo].[TopService] cs on cs.caseid=c.id
GROUP BY 
	c.[IdentityID]
	,c.[Deductible_CurrentValue_numeric]
	
go

CREATE UNIQUE CLUSTERED INDEX [iiiiiiiiiiiiiiiiiii] ON [dbo].[testView1](
	[IdentityID] ASC
)
go


Best,

Rafael


Rafal


SQL Server Cluster C: drive read write IOPS and latency

$
0
0

I have a sql server cluster with two nodes, both C: drive are local disk mirrors , with diskspd measurement the IOPS are less than 800 and read write latency are around 100ms, while other same hardware servers with IOPS over 30k  and latency less than 1.7ms.

Wondering if any one has same issue?

WriteRatioThreadsOutstandingBlock
404328192




needs CPU and IO usage per user for department billing purpose

$
0
0

Hi,

I'm looking for a solution to log the CPU and IO usage per user on my SQL server.

(the disk usage, I allready have it)

we want to share the bill among the different departments.

so each month we have to provide a report providing statistics by department and user.

we want to exclude some specific usage from these stats, like CPU consumed by the backup processes and some specific service accounts.

how can we do it?

thanks.

I forgot: its SQL Server 2016 Enterprise

ERROR 233

$
0
0

I am getting this error when connecting to sql. I cant get into my databases .

 

"A connection was succesfulyl established with the server, but then an error occured during the login process.

(provider: Shared Memeory Provoder, error: 0 - No Process is on the other end of the pipe.)Microsoft SQL server error:233

 

Anyone who knows what is going on soem help would be much appreciated.

Mat

MSDTC cluster or MSDTC Local ??

$
0
0

What's the different of using MSDTC cluster or MSDTC Local ??

Seems windows 2016 clustering no need to have a cluster MSDTC resource

For sql server - What is difference between simple index and partitioned index?

$
0
0

What is the difference beweeen Index1 and Index2 ??

Index1)

CREATE NONCLUSTERED INDEX NC1 ON TBL1 ( 

Col1,

Col2

)WITH (ONLINE = OFF) ON PS1(Col2);

Index2)

CREATE NONCLUSTERED INDEX NC1 ON TBL1 ( 

Col1,

Col2

)WITH (ONLINE = OFF) 

Thank you for your support in advance.


AngelVpd


SQL server problem

$
0
0

I installed SQL Server 2017 Standard (no possible updates since Group Policy states that updates are delivered from WSUS server and installation wants to connect Microsoft Update) and chose Windows Authentication and after SQL Server installation was ready I installed SQL Server Management Studio (latest version) but now I can't connect (login) to SQL Server unless I use Run as Administrator otherwise I get error Cannot connect to *sqlservername* Additional information Login Failed for user *domain\user*. (Microsoft SQL Server, Error: 18456)

Here's full error log:

===================================

Cannot connect to *sqlservername*.

===================================

Login failed for user '*domain\user*'. (.Net SqlClient Data Provider)

------------------------------

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=18456&LinkId=20476

------------------------------

Server Name: *sqlservername*

Error Number: 18456

Severity: 14

State: 1

Line Number: 65536

------------------------------

Program Location:

at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)

at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)

at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)

at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)

at System.Data.SqlClient.SqlConnection.Open()

at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)

at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

User who tries to login to SQL has domain admin privileges so shouldn't be permission issue and its not non-english letters (tried with admin-privileged user which has only english letters on username but same issue) either since with Run As login works fine but not running it normally.

Any idea what did I do wrong on installation (server and/or management studio)?

<style type="text/css">p { margin-bottom: 0.1in; line-height: 120%; }</style>

<style type="text/css"><br _moz_dirty="" /></style>

What permissions do I need to provide to a non-sysadmin account to access OLE DB Providers?

$
0
0

I have a linked server that I am creating.

EXEC master.dbo.sp_addlinkedserver @server = N'LINKEDSERVER', @srvproduct=N'', @provider=N'IhOLEDB.iHistorian', @datasrc=N'linkedservername', @provstr=N'Server=localserver;User ID=nonsysadminaccnt'   

EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'LINKEDSERVER',@useself=N'False',@locallogin=NULL,@rmtuser=NULL,@rmtpassword=NULL   

EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'LINKEDSERVER',@useself=N'True',@locallogin=N'nonsysadminaccnt',@rmtuser=NULL,@rmtpassword=NULL

However when I try to run a query with the nonsysadminaccnt I get the following error:

> Msg 7303, Level 16, State 1, Line 1 Cannot initialize the data source
> object of OLE DB provider "IhOLEDB.iHistorian" for linked server
> "LINKEDSERVER".

On the sysadmin account I see a folder with "Providers". On the nonsysadmin account I don't see a folder with "Providers". This leads me to believe that the nonsysadmin account doesn't have access to the provider. However, I can't find any information on how to provide permissions to the nonsysadmin account.

How can I provide access to the provider to the nonsysadmin account?

Just to be clear, there is no username/password that should be supplied to the OLEDB connection string. For example this is the python code that everyone currently uses to connect to the Historian server.

conn = w32.Dispatch('ADODB.Connection')

connection_string = r"Provider=IhOLEDB.iHistorian.1;Data Source=linkedservername;Mode=Read".


SQL Database Not Allowing Clients to Connect

$
0
0

Problem: Clients can't connect to database.

Solution: Open Management Studio. Take database offline and bring it back on line.

When I open the Management Studio I notice that the expand arrow next to the database is missing. I try left clicking on the database and nothing happens(doesn't expand to see Tables, Views etc.). 

If I right click, take it offline and then back online it will expand and clients can connect.

This happens to only one of the two databases being used and happens almost every night.

Partition, Primary key, Spatial index

$
0
0

I am new to SQL partition, trying to partition a table like below

UniquePk  int primary key ,

CountryID int 

ID int -- unique within the country

Polygon geography.

Polygon is indexed and depend on the primary key.

Now, I want partition by CountryID but SQL does not let me do it because the special index depend on the clustered primary key

Seems I have to make the (CountryID, ID) combo primary key (CLUSTERED) and then partition by CountryID.

Can any expert confirm? or point me a direction?

Thanks,

John 

SQL Services issue

$
0
0

Hi Team,

When we restart SQL Server Services from Configuration manager, it's getting failing. This is SQL Server 2016 (AlwaysOn)

But when i reboot windows server then sql services comingup successfully.

2018-10-12 22:40:57.27 spid14s     Server is listening on [ 'any' <ipv6> 52065].
2018-10-12 22:40:57.27 spid14s     Error: 26023, Severity: 16, State: 1.
2018-10-12 22:40:57.27 spid14s     Server TCP provider failed to listen on [ 'any' <ipv4> 52065]. Tcp port is already in use.
2018-10-12 22:40:57.27 spid14s     Error: 17182, Severity: 16, State: 1.
2018-10-12 22:40:57.27 spid14s     TDSSNIClient initialization failed with error 0x2740, status code 0xa. Reason: Unable to initialize the TCP/IP listener. Only one usage of each socket address (protocol/network address/port) is normally permitted. 
2018-10-12 22:40:57.27 spid14s     Error: 17182, Severity: 16, State: 1.
2018-10-12 22:40:57.27 spid14s     TDSSNIClient initialization failed with error 0x2740, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. Only one usage of each socket address (protocol/network address/port) is normally permitted. 
2018-10-12 22:40:57.27 spid14s     Error: 17826, Severity: 18, State: 3.
2018-10-12 22:40:57.27 spid14s     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.
2018-10-12 22:40:57.27 spid14s     Error: 17120, Severity: 16, State: 1.
2018-10-12 22:40:57.27 spid14s     SQL Server could not spawn FRunCommunicationsManager thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
2018-10-12 22:40:57.28 spid8s      Database mirroring has been enabled on this instance of SQL Server.

Viewing all 15872 articles
Browse latest View live


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