Quantcast
Channel: Fórum SQL Server Database Engine
Viewing all 15680 articles
Browse latest View live

Filegroups on disks with different performance

$
0
0

Hi all

One of our db is growing fast and we need more space for it, our dba said that they can increase the space of our db (double it)  immediately but on a disk (partition/san I don't know exactly where) with slower performance of the one where the db is actually situated.

Our db consists of about 10 huge table (hundred millions records), about 30 tables with millions of records, and some lookups.

All tables has indexes.

Now my question is witch table / index place on the fast disk and witch on the slower one?

regards

-g


Gian Paolo Santopaolo - softwarelab.it -thedarksideof.net
Disclaimer: This post is provided "AS IS" with no warranties, and confer no rights.


QUESTION

$
0
0

HI TO ALL,

WHEN I M GOING TO EXECUTE THESE DMV'S (SYS.DM_EXEC_CONNECTIONS) CMD IN MY SQL SERVER 2008 R2 ENTERPRISE EDITION IT SHOWS THIS ERROR. Msg 2809, Level 18, State 1, Line 1
The request for procedure 'dm_exec_connections' failed because 'dm_exec_connections' is a view object.

WHAT CAN I DO PLS REP ME

HOW CAN I / WHAT IS THE PROCESS TO EXEC DMV'S IN SQL SERVER 2008 R2.

THANKS IN ADVANCE


MUNNURU K

SQL 2012 Memory Changes

$
0
0

Hi All

I have a few questions regarding the memory changes in SQL 2012

  • I usually use the following script to check my memory clerks on my SQL Servers below 2012

--1

SELECT TOP(20) [type], [name], SUM(single_pages_kb)/1024 AS [SPA Mem, Mb] FROM sys.dm_os_memory_clerks GROUP BY [type], [name] ORDER BY SUM(single_pages_kb) DESC;

--2

SELECT SUM(multi_pages_kb)/1024 AS [MPA Mem, Mb] FROM sys.dm_os_memory_clerks

--3

SELECT SUM(single_pages_kb)/1024 AS [SPA Mem, Mb] FROM sys.dm_os_memory_clerks

I'm assuming that because there is no longer a multi_page allocator, the second query is useless?

Do I need to change the single_pages_kb column to pages_kb?

Regarding memory clerks, prior to SQL 2012 the MEMORYCLERK_SQLBUFFERPOOL clerk always showed zero, this was because  single_pages_kb refers to the amount of single pages the clerk is pulling from the buffer pool, so the buffer pool won't be reading single pages from itself, hence the 0kb.  Has this changed in SQL 2012?

Any help would be appreciated

Thanks

WHAT IS DIFF B/W DBCC & DMV'S

$
0
0

HI TO ALL,

1. WHAT IS THE DIFF BETWEEN DBCC AND DMV'S EXPLAIN WITH DEFINITIONS?

2. WHAT IS MEAN BY SERVICE BROKER? WHAT IS THE USE OF THIS?

3. AT WHAT TIME(SITUATIONS) CAN WE USE CHECK POINTS?

4. PLS ANY ONE CAN SEND ME SQL DBA QUESTION & ANSWERS (2+) EXP IN SQL DBA IN THE REAL TIME SCENARIO?

THANKS IN ADVANCE


MUNNURU K

Is ReFS supported for SQL Server ?

$
0
0

Hi,

On MSDN is written "We recommend that you run SQL Server 2012 on computers with the NTFS file format. Installing SQL Server 2012 on a computer with FAT32 file system is supported but not recommended as it is less secure than the NTFS file system". Does it mean ReFS isn't officially supported or that the MSDN out-of-date ?

Thank you

Linked Server - The Semaphore Timeout Period Has Expired

$
0
0

Hi there,

I've got a bunch of stored procedures run SQL statements over a linked server connection and a couple of times a day I get the following error caught in my try/catch:

Error Number: 121
Error Severity: 16
Error State: 1
Error Procedure:
Error Line: 0
Error Message: TCP Provider: The semaphore timeout period has expired.

The error doesn't occur at any set time, and can occur in different SPs, so it doesn't look like it's a single SQL statement causing the issue.

Given the error this looks to be a network issue, but I'm not sure how I go about getting some more details / tracing over the linked server connection, or why my line number is always 0 (works on other errors).

Are there trace flags I can switch on that might provide me with more details?

SPs are running on a Web Edition 64-bit (10.50.2500) and the linked server is a Standard 64-bit (10.0.5500).

Thanks a lot,

Larry.

Scripted SQL Agent Job - Max number of Steps

$
0
0

Hi there

I have a scripted SQL agent Job that has 33 steps in it that was scripted out.  When Trying to recreate the job on another instance it is failing with the following error message:

Msg 14266, Level 16, State 1, Procedure sp_verify_jobstep, Line 46

The specified '@step_id' is invalid (valid values are: 1..25).

Now  I can comment out Steps 25-33 and the job will create quite happily.  Can anyone advise me what is going on and why this error is happening. 

All assistance appreciated and thanks in advance.

John

sqlcmd error

$
0
0

Hi,

I am trying to login through command in sql server database, but i am getting below error

C:\Users\sap_sql_pr>sqlcmd -d <DBNAME>
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Named Pipes Provider: C
ould not open a connection to SQL Server [2]. .
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Login timeout expired.
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : A network-related or in
stance-specific error has occurred while establishing a connection to SQL Server
. Server is not found or not accessible. Check if instance name is correct and i
f SQL Server is configured to allow remote connections. For more information see
 SQL Server Books Online..


perform tail log-backup

$
0
0

Hi,

I want to know how to perform tail log-backup when database has crashed and is not online. Since SSMS cannot be opened

how to take the tail log backup in that situation

Regards

SQL Server is terminating because of fatal exception c0000005

$
0
0

I believe this is related to old DTS packages running, but I'm not certain of the exact cause or the fix.  This is running on Windows 2003 Std SP2 x86 build 3790 GDR 080813-1204 and SQL Server 2005 Std SP4 build 9.00.5000.00 and is a VMWare 5 virtual machine.

"SQL Server is terminating because of fatal exception c0000005. This error may be caused by an unhandled Win32 or C++ exception, or by an access violation encountered during exception handling. Check the SQL error log for any related stack dumps or messages. This exception forces SQL Server to shutdown. To recover from this error, restart the server (unless SQLAgent is configured to auto restart)."

Consistency checks of the databases return no errors.

Dump file

2013-09-10 21:12:09.72 Server      Error: 17311, Severity: 16, State: 1.
2013-09-10 21:12:09.72 Server      SQL Server is terminating because of fatal exception c0000005. This error may be caused by an unhandled Win32 or C++ exception, or by an access violation encountered during exception handling. Check the SQL error log for any related stack dumps or messages. This exception forces SQL Server to shutdown. To recover from this error, restart the server (unless SQLAgent is configured to auto restart). 
2013-09-10 21:12:09.97 Server      Using 'dbghelp.dll' version '4.0.5'
2013-09-10 21:12:10.13 Server      **Dump thread - spid = 0, PSS = 0x00000000, EC = 0x00000000
2013-09-10 21:12:10.13 Server      ***Stack Dump being sent to d:\Program Files\Microsoft SQL Server\MSSQL\LOG\SQLDump0799.txt
2013-09-10 21:12:10.13 Server      * *******************************************************************************
2013-09-10 21:12:10.13 Server      *
2013-09-10 21:12:10.13 Server      * BEGIN STACK DUMP:
2013-09-10 21:12:10.13 Server      *   09/10/13 21:12:10 spid 0
2013-09-10 21:12:10.13 Server      *
2013-09-10 21:12:10.13 Server      * ex_handle_except encountered exception C0000005 - Server terminating
2013-09-10 21:12:10.13 Server      *
2013-09-10 21:12:10.13 Server      *
2013-09-10 21:12:10.13 Server      *  MODULE                          BASE      END       SIZE
2013-09-10 21:12:10.13 Server      * sqlservr                       01000000  02C26FFF  01c27000
2013-09-10 21:12:10.13 Server      * ntdll                          7C800000  7C8BFFFF  000c0000
2013-09-10 21:12:10.13 Server      * kernel32                       77E40000  77F41FFF  00102000
2013-09-10 21:12:10.13 Server      * MSVCR80                        78130000  781CAFFF  0009b000
2013-09-10 21:12:10.13 Server      * msvcrt                         77BA0000  77BF9FFF  0005a000
2013-09-10 21:12:10.13 Server      * MSVCP80                        7C420000  7C4A6FFF  00087000
2013-09-10 21:12:10.13 Server      * ADVAPI32                       77F50000  77FEAFFF  0009b000
2013-09-10 21:12:10.13 Server      * RPCRT4                         77C50000  77CEEFFF  0009f000
2013-09-10 21:12:10.13 Server      * Secur32                        76F50000  76F62FFF  00013000
2013-09-10 21:12:10.13 Server      * sqlos                          344D0000  344D4FFF  00005000
2013-09-10 21:12:10.13 Server      * USERENV                        76920000  769E1FFF  000c2000
2013-09-10 21:12:10.13 Server      * USER32                         77380000  77410FFF  00091000
2013-09-10 21:12:10.13 Server      * GDI32                          77C00000  77C48FFF  00049000
2013-09-10 21:12:10.13 Server      * WINMM                          76AA0000  76ACCFFF  0002d000
2013-09-10 21:12:10.13 Server      * opends60                       333E0000  333E6FFF  00007000
2013-09-10 21:12:10.13 Server      * NETAPI32                       71C40000  71C96FFF  00057000
2013-09-10 21:12:10.13 Server      * psapi                          76B70000  76B7AFFF  0000b000
2013-09-10 21:12:10.13 Server      * instapi                        48060000  48069FFF  0000a000
2013-09-10 21:12:10.13 Server      * sqlevn70                       4F610000  4F7B8FFF  001a9000
2013-09-10 21:12:10.13 Server      * rsaenh                         68000000  68034FFF  00035000
2013-09-10 21:12:10.13 Server      * AUTHZ                          76C40000  76C53FFF  00014000
2013-09-10 21:12:10.13 Server      * MSCOREE                        33DC0000  33E05FFF  00046000
2013-09-10 21:12:10.13 Server      * ole32                          77670000  777A8FFF  00139000
2013-09-10 21:12:10.13 Server      * msv1_0                         76C90000  76CB6FFF  00027000
2013-09-10 21:12:10.13 Server      * WS2_32                         71C00000  71C16FFF  00017000
2013-09-10 21:12:10.13 Server      * WS2HELP                        71BF0000  71BF7FFF  00008000
2013-09-10 21:12:10.13 Server      * iphlpapi                       76CF0000  76D09FFF  0001a000
2013-09-10 21:12:10.13 Server      * kerberos                       341F0000  34247FFF  00058000
2013-09-10 21:12:10.13 Server      * cryptdll                       34250000  3425BFFF  0000c000
2013-09-10 21:12:10.13 Server      * MSASN1                         34260000  34271FFF  00012000
2013-09-10 21:12:10.13 Server      * schannel                       34290000  342B6FFF  00027000
2013-09-10 21:12:10.13 Server      * CRYPT32                        342C0000  34352FFF  00093000
2013-09-10 21:12:10.13 Server      * COMRES                         77010000  770D5FFF  000c6000
2013-09-10 21:12:10.13 Server      * XOLEHLP                        343A0000  343A5FFF  00006000
2013-09-10 21:12:10.13 Server      * MSDTCPRX                       343B0000  34428FFF  00079000
2013-09-10 21:12:10.13 Server      * OLEAUT32                       77D00000  77D8AFFF  0008b000
2013-09-10 21:12:10.13 Server      * msvcp60                        34430000  34494FFF  00065000
2013-09-10 21:12:10.13 Server      * MTXCLU                         344A0000  344B8FFF  00019000
2013-09-10 21:12:10.13 Server      * VERSION                        77B90000  77B97FFF  00008000
2013-09-10 21:12:10.13 Server      * WSOCK32                        71BB0000  71BB8FFF  00009000
2013-09-10 21:12:10.13 Server      * CLUSAPI                        62440000  62451FFF  00012000
2013-09-10 21:12:10.13 Server      * RESUTILS                       62460000  62472FFF  00013000
2013-09-10 21:12:10.13 Server      * mswsock                        71B20000  71B60FFF  00041000
2013-09-10 21:12:10.13 Server      * DNSAPI                         76ED0000  76EF9FFF  0002a000
2013-09-10 21:12:10.13 Server      * winrnr                         76F70000  76F76FFF  00007000
2013-09-10 21:12:10.13 Server      * WLDAP32                        76F10000  76F3DFFF  0002e000
2013-09-10 21:12:10.13 Server      * rasadhlp                       76F80000  76F84FFF  00005000
2013-09-10 21:12:10.13 Server      * security                       628A0000  628A3FFF  00004000
2013-09-10 21:12:10.13 Server      * msfte                          62EE0000  63139FFF  0025a000
2013-09-10 21:12:10.13 Server      * dbghelp                        63160000  63274FFF  00115000
2013-09-10 21:12:10.13 Server      * WINTRUST                       76BB0000  76BDAFFF  0002b000
2013-09-10 21:12:10.13 Server      * imagehlp                       76C10000  76C37FFF  00028000
2013-09-10 21:12:10.13 Server      * dssenh                         68100000  68126FFF  00027000
2013-09-10 21:12:10.13 Server      * SHELL32                        7C8D0000  7D0CEFFF  007ff000
2013-09-10 21:12:10.13 Server      * SHLWAPI                        77DA0000  77DF1FFF  00052000
2013-09-10 21:12:10.13 Server      * comctl32                       77420000  77522FFF  00103000
2013-09-10 21:12:10.13 Server      * hnetcfg                        634E0000  63539FFF  0005a000
2013-09-10 21:12:10.13 Server      * wshtcpip                       71AE0000  71AE7FFF  00008000
2013-09-10 21:12:10.13 Server      * NTMARTA                        77E00000  77E20FFF  00021000
2013-09-10 21:12:10.13 Server      * SAMLIB                         7E020000  7E02EFFF  0000f000
2013-09-10 21:12:10.13 Server      * ntdsapi                        63600000  63613FFF  00014000
2013-09-10 21:12:10.13 Server      * xpsp2res                       63620000  638E4FFF  002c5000
2013-09-10 21:12:10.13 Server      * CLBCatQ                        777B0000  77832FFF  00083000
2013-09-10 21:12:10.13 Server      * sqlncli                        638F0000  63B17FFF  00228000
2013-09-10 21:12:10.13 Server      * COMCTL32                       77530000  775C6FFF  00097000
2013-09-10 21:12:10.13 Server      * comdlg32                       63B20000  63B68FFF  00049000
2013-09-10 21:12:10.13 Server      * SQLNCLIR                       63B70000  63BA2FFF  00033000
2013-09-10 21:12:10.13 Server      * msftepxy                       007A0000  007B4FFF  00015000
2013-09-10 21:12:10.13 Server      * xpsqlbot                       63FF0000  63FF5FFF  00006000
2013-09-10 21:12:10.13 Server      * xpstar90                       64010000  6405BFFF  0004c000
2013-09-10 21:12:10.13 Server      * SQLSCM90                       64070000  64078FFF  00009000
2013-09-10 21:12:10.13 Server      * ODBC32                         64090000  640CCFFF  0003d000
2013-09-10 21:12:10.13 Server      * BatchParser90                  640D0000  640EEFFF  0001f000
2013-09-10 21:12:10.13 Server      * ATL80                          7C630000  7C64AFFF  0001b000
2013-09-10 21:12:10.13 Server      * odbcint                        64240000  64256FFF  00017000
2013-09-10 21:12:10.13 Server      * xpstar90                       64260000  64285FFF  00026000
2013-09-10 21:12:10.13 Server      * xplog70                        64290000  6429BFFF  0000c000
2013-09-10 21:12:10.13 Server      * xplog70                        642B0000  642B2FFF  00003000
2013-09-10 21:12:10.13 Server      * odsole70                       63F80000  63F8EFFF  0000f000
2013-09-10 21:12:10.13 Server      * DTSPkg                         647E0000  6491DFFF  0013e000
2013-09-10 21:12:10.13 Server      * DTSPkg                         63FB0000  63FBCFFF  0000d000
2013-09-10 21:12:10.13 Server      * SXS                            64B30000  64BECFFF  000bd000
2013-09-10 21:12:10.13 Server      * sqloledb                       64BF0000  64C70FFF  00081000
2013-09-10 21:12:10.13 Server      * MSDART                         64C80000  64C99FFF  0001a000
2013-09-10 21:12:10.13 Server      * MSDATL3                        64CA0000  64CB4FFF  00015000
2013-09-10 21:12:10.13 Server      * oledb32                        64F40000  64FB8FFF  00079000
2013-09-10 21:12:10.13 Server      * OLEDB32R                       64FC0000  64FD0FFF  00011000
2013-09-10 21:12:10.13 Server      * DBNETLIB                       6D560000  6D57BFFF  0001c000
2013-09-10 21:12:10.13 Server      * DTSPump                        659C0000  65A2AFFF  0006b000
2013-09-10 21:12:10.13 Server      * DTSPump                        65A40000  65A4CFFF  0000d000
2013-09-10 21:12:10.13 Server      * SQLOLEDB                       651A0000  651AEFFF  0000f000
2013-09-10 21:12:10.13 Server      * AXSCPHST90                     65330000  6533BFFF  0000c000
2013-09-10 21:12:10.13 Server      * SqlResourceLoader              65350000  65355FFF  00006000
2013-09-10 21:12:10.13 Server      * AXSCPHST90                     65370000  65373FFF  00004000
2013-09-10 21:12:10.13 Server      * ScriptSn.20110719153331        65380000  65397FFF  00018000
2013-09-10 21:12:10.13 Server      * JScript                        76F90000  77000FFF  00071000
2013-09-10 21:12:10.13 Server      * VBScript                       653A0000  65401FFF  00062000
2013-09-10 21:12:10.13 Server      * scrrun                         65520000  65544FFF  00025000
2013-09-10 21:12:10.13 Server      * MFC42                          65550000  65670FFF  00121000
2013-09-10 21:12:10.13 Server      * WININET                        77210000  772BAFFF  000ab000
2013-09-10 21:12:10.13 Server      * DTSFFile                       65140000  6516AFFF  0002b000
2013-09-10 21:12:10.13 Server      * DTSFFile                       65180000  65183FFF  00004000
2013-09-10 21:12:10.13 Server      * comsvcs                        665A0000  666E4FFF  00145000
2013-09-10 21:12:10.13 Server      * msjetoledb40                   63C50000  63CA3FFF  00054000
2013-09-10 21:12:10.13 Server      * msjet40                        666F0000  6685FFFF  00170000
2013-09-10 21:12:10.13 Server      * mswstr10                       66420000  664B4FFF  00095000
2013-09-10 21:12:10.13 Server      * msjter40                       63D00000  63D0CFFF  0000d000
2013-09-10 21:12:10.13 Server      * MSJINT40                       63D10000  63D35FFF  00026000
2013-09-10 21:12:10.13 Server      * msjtes40                       66860000  66899FFF  0003a000
2013-09-10 21:12:10.13 Server      * VBAJET32                       66010000  6601AFFF  0000b000
2013-09-10 21:12:10.13 Server      * expsrv                         67F20000  67F81FFF  00062000
2013-09-10 21:12:10.13 Server      * dbghelp                        679A0000  67AB4FFF  00115000
2013-09-10 21:12:10.13 Server      *
2013-09-10 21:12:10.13 Server      *        Edi: 6465E8A8:  001A83A8  0000000C  00000000  6465E890  00000008  00000014  
2013-09-10 21:12:10.13 Server      *        Esi: 00000000:  
2013-09-10 21:12:10.13 Server      *        Eax: 6465E78C:  000042AC  00000000  00000000  77E4BEE7  00000000  0000000C  
2013-09-10 21:12:10.13 Server      *        Ebx: 0000003F:  
2013-09-10 21:12:10.13 Server      *        Ecx: 6465EDFC:  00000000  00010007  00000000  0080007E  001A83AC  6465E7BC  
2013-09-10 21:12:10.13 Server      *        Edx: 0000003D:  
2013-09-10 21:12:10.13 Server      *        Eip: 77E4BEE7:  10C2C95E  01093D00  840FC000  00000095  F29DE950  9090FFFF  
2013-09-10 21:12:10.13 Server      *        Ebp: 6465E7DC:  6465E820  021B35AC  000042AC  00000000  00000000  00000000  
2013-09-10 21:12:10.13 Server      *      SegCs: 7813001B:  00000000  00000000  00000000  00000000  00000000  00000000  
2013-09-10 21:12:10.13 Server      *     EFlags: 00000246:  
2013-09-10 21:12:10.13 Server      *        Esp: 6465E788:  00000000  000042AC  00000000  00000000  77E4BEE7  00000000  
2013-09-10 21:12:10.13 Server      *      SegSs: 78130023:  00000000  00000000  00000000  00000000  00000000  00000000  
2013-09-10 21:12:10.13 Server      * *******************************************************************************
2013-09-10 21:12:10.13 Server      * -------------------------------------------------------------------------------
2013-09-10 21:12:10.13 Server      * Short Stack Dump
2013-09-10 21:12:10.13 Server      77E4BEE7 Module(kernel32+0000BEE7)
2013-09-10 21:12:10.13 Server      021B35AC Module(sqlservr+011B35AC)
2013-09-10 21:12:10.13 Server      021B74C0 Module(sqlservr+011B74C0)
2013-09-10 21:12:10.13 Server      021B706D Module(sqlservr+011B706D)
2013-09-10 21:12:10.13 Server      02428329 Module(sqlservr+01428329)
2013-09-10 21:12:10.15 Server      77E761B7 Module(kernel32+000361B7)
2013-09-10 21:12:10.15 Server      6488781D Module(DTSPkg+000A781D)
2013-09-10 21:12:10.15 Server      64885DAE Module(DTSPkg+000A5DAE)
2013-09-10 21:12:10.15 Server      64885E41 Module(DTSPkg+000A5E41)
2013-09-10 21:12:10.15 Server      Stack Signature for the dump is 0x883D3695

Dump debug

Microsoft (R) Windows Debugger Version 6.11.0001.404 X86
Copyright (c) Microsoft Corporation. All rights reserved.


Loading Dump File [D:\Program Files\Microsoft SQL Server\MSSQL\LOG\SQLDump0799.mdmp]
User Mini Dump File: Only registers, stack and portions of memory are available

Comment: 'Stack Trace'
Comment: 'ex_handle_except encountered exception C0000005 - Server terminating'
Symbol search path is: srv*C:\WINDOWS\Symbols*http://msdl.microsoft.com/download/symbols
Executable search path is: 
Windows Server 2003 Version 3790 (Service Pack 2) MP (2 procs) Free x86 compatible
Product: Server, suite: TerminalServer SingleUserTS
Machine Name:
Debug session time: Tue Sep 10 21:12:16.000 2013 (GMT+1)
System Uptime: not available
Process Uptime: 1 days 3:31:48.000
................................................................
................................................
Loading unloaded module list
.....
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(9b4.1364): Unknown exception - code 000042ac (first/second chance not available)
eax=00000000 ebx=00000000 ecx=001d060c edx=001d0608 esi=00000808 edi=00000000
eip=7c8285ec esp=6465e124 ebp=6465e194 iopl=0         nv up ei ng nz ac pe cy
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000297
ntdll!KiFastSystemCallRet:
7c8285ec c3              ret
0:000> .ecxr
eax=6465e6ac ebx=00000440 ecx=02a468dc edx=02a468dc esi=00000000 edi=02801348
eip=77e4bee7 esp=6465e6a8 ebp=6465e6fc iopl=0         nv up ei pl zr na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246
kernel32!RaiseException+0x53:
77e4bee7 5e              pop     esi
0:000> kL 1000
ChildEBP RetAddr  
6465e6fc 0247821e kernel32!RaiseException+0x53
6465e748 021c0970 sqlservr!CDmpDump::Dump+0x95
6465e808 021b77a2 sqlservr!CImageHelper::DoMiniDump+0x3d2
6465f5c0 021b706d sqlservr!stackTrace+0x6c8
6465f5e0 02428329 sqlservr!stackTraceCallBack+0x40
6465f800 77e761b7 sqlservr!ex_handle_except+0xf8
6465fa58 6488781d kernel32!UnhandledExceptionFilter+0x12a
6465fa78 64885dae DTSPkg!_XcptFilter+0x6a
6465fa84 64888838 DTSPkg!_endthreadex+0x70
6465fa98 648840de DTSPkg!_EH4_CallFilterFunc+0x12
6465fac0 7c828752 DTSPkg!_except_handler4+0x8e
6465fae4 7c828723 ntdll!ExecuteHandler2+0x26
6465fb8c 7c82855e ntdll!ExecuteHandler+0x24
6465fb8c 6486db73 ntdll!KiUserExceptionDispatcher+0xe
6465fe8c 648681ec DTSPkg!CPackageLog::EndStep+0x5
6465ff64 6486474b DTSPkg!CStep::DoExecute+0x5f2
6465ff70 64839e6d DTSPkg!COleThread<CStep>::LaunchImpl+0x2b
6465ff78 64885d97 DTSPkg!COleThread<CPackage>::LaunchProc+0xd
6465ffb0 64885e41 DTSPkg!_endthreadex+0x59
6465ffb8 77e64829 DTSPkg!_endthreadex+0x103
6465ffec 00000000 kernel32!BaseThreadStart+0x34


TempDB Initial Size and Shrinked Size

$
0
0

Hi All,

I came across a Strange thing. I am not sure whether it is expected behavior or a bug. So just wanted to confirm the same.

I have set the TempBD log file initial size to 5GB that is 5120 MB and kept Autogrowth to 250MB

Now when I check for Disk Usage Reports I was getting as Transaction Log Space Usage: 5120 MB, but since no transaction was running it was showing 99% Unused.

Now when I go ahead and run below command it shrinked to 250 MB

USE [tempdb]
GO
DBCC SHRINKFILE (N'templog' , 0, TRUNCATEONLY)
GO

How can the log file be shrink to 250 MB when I have set the Initial Size to 5120 MB

Also the logfile Initial Size got reduced to 1 MB automatically

Thank you


Thanks & Regards,
Manjunath C Bhat,
http://manjunathcbhat.blogspot.com
http://manjunathcbhat.wordpress.com


Add user-defined module into Database Engine to pre-processing T-SQL queries

$
0
0

I want to give transparently access for applications to distributed data on 2 database servers.

I write a module to translate 1 sql query into another query. When users send sql queries to DB-Engine, then DB-Engine will firstly forward these queries to my defined-module before processing sql syntax.

How can I integrate my-defined module to DB-Engine of SQL Server?

SQL Server 2012 SP1 Can not connect to Report Server

$
0
0

Guys,

I am installing SQL Server 2012 SP1 to be used for SCCM 2012 Server , and for SCCM 2012 Report Service Point

After the SUCCESSFULL installation of SQL 2012, I am running into following issue

when I go to Reporting Sevice Configuration Wizard to configure the database I am running into issues:

1. can not change database, can not create new database, can not change user name, testing connection fails with below error messages:

"Could not connect to server: The type initializer for 'system.data.sqlclient.sqlconnection' threw and exception'

If I browse for the URL to access http://servername/reports

I get HTTP ERROR 500

the website is under maintance.

I can not also update the installation of sql nore I can uninstall it. doing so give me result

'the sql server has stopped working.

I have tried rebuilding my lab few times, but same issue


Shokey

We add to clustered index in order so why is table fragmented?

$
0
0

Here's an interesting (maybe) case!

During an ETL process we create and populate a fairly large table.

It has a non-unique clustered index, and we carefully sort the data and add it in sorted order.  That is, we do an SSIS fast load where the data comes from a select with an order by.

And yet when we're done, the table is horribly fragmented.

Why?

I can think of two possible answers, but wonder if anyone knows.

Thanks,

Josh

ps - my two guesses are either or both of (a) the fast load does not preserve order, and (b) the non-unique clustered index adds uniqueifiers out of order.

pps - the table is built with 100% fill factor.

A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - An internal error occurred.)

$
0
0

Today I could not log into my local SQL Server 2012 instance with the following error message

A connection was successfully established with the server, but then an error occurred during the pre-login handshake.

provider: SSL Provider, error: 0 - An internal error occurred. (Microsoft SQL Server, Error: -2146893792)

I found many similar questions here and on the forums, but nothing helped. Please notice that in my case it just says

0- An internal error occurred
  • There are no errors in Event Viewer;
  • I don't use Encrypted Connections;
  • In SQL Server Configuration Manager, Force Protocol Entryption is set to FalseTrust Server Certificate is set to Yes (Originally it was No, but in both cases it didn't work);
  • I CAN connect to SQL Server using UDL;
  • I tried to re-install SQL Server with all related components;
  • Tried to uninstall .NET 4.5;
  • In SQL Management Studio, in connection properties, Encrypt Connection is unchecked.

It worked fine yesterday, I have not installed any software since then.

Any ideas?

Thank you!


more blocking

$
0
0

hi team,

There are frequently blocks occurred  and  automatically released by sql engine but db and app's side no issue. but SAN having some problem.

how we can resolve this problem from as DBA.


Is the XactSequence number in the profiler globally unique?

$
0
0

Hi,

I need to know if the XactSequence number in the profiler can ever be the same for 2 separate transations. It is also used in the ALL_HEADERS section of TDS packets as a transaction identifier.

I cannot find anywhere that suggests if they are globally unique or not, and if my tests are correct i am seeing them repeat roughly every 15 minutes under very heavy traffic.

Thanks for your time.

update a database

$
0
0

Gurus,

I really want to have a clear notion of updating databases.

  1. what does "updating a database" really mean?
  2. What are the things we need to do to update a database?

A link might do

Thanks in advance,


ebro

How to skip a job step based on outcome of previous SQL Agent job step?

$
0
0

Is there a way to pass a bit out of a job step, and depending on the value, skip the next step, or skip out of the job all-together? I could force the job to fail if a certain condition is met but I'd rather have it complete successfully so I don't get an error in the log or job history.

Here's the context: I'm in the process of editing all the jobs to include a test for is-active-mirror-partner. In other words, if the job's target database is currently the mirror (sychronizing) we want the job to stop at step 1 without error before it really does anything. I have a lovely function to test for mirror, and for most job steps I just put the conditional "if mirror then return" at the top of the step. But the job steps that are calls to an SSIS package are making this more difficult. I could change the @subsystem property on those steps from SSIS (or DTS) to TSQL but then I'd have to run the SSIS package using xp_cmdshell and I think that's a security risk, hence the need for a better solution. Some people have recommended I create a stored procedure to call the SSIS package. This would enable me to change the subsystem to TSQL and add my if-mirror test before calling the proc which launches the SSIS package, but I am hoping for a more simple solution as described above.

I don't want to waste your time so please read this post in its entirety before responding. Sometimes people's answers are left of field because they don't read the whole problem and conditions.

version: Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64)   Enterprise Edition (64-bit) on Windows NT 6.1 <X64>

use of FileTable causing the slow down of file copy or creating files?

$
0
0

Hi!

I'm using SS2012

I have created a filetable. My program that creates some files runs slower when the share is a file table share instead of

a normal share without file table (both shares are on same server).

Anyone seen similar?

Any suggestions for solution?

Best Regards

Bjorn

CREATE DATABASE [MyFileStream]
ON  PRIMARY 
( NAME = N'MyFileStream', FILENAME = N'D:\SQLData_X\MyFileStream\MyFileStreamDB.mdf' , SIZE = 10240KB , MAXSIZE = UNLIMITED, FILEGROWTH = 0)
LOG ON 
( NAME = N'MyFileStream_log', FILENAME = N'E:\SQLLog_X\MyFileStream\MyFileStreamDB_log.ldf' , SIZE = 10240KB , MAXSIZE = 1GB , FILEGROWTH = 0)
GO

ALTER DATABASE MyFileStream
ADD FILEGROUP MyFileStream1 
  CONTAINS FILESTREAM
GO

ALTER DATABASE MyFileStream
ADD FILE  
  (NAME = 'MyFileStreamF1'
   , FILENAME = 'D:\SQLData_X\MyFileStream\MyFileStream'
   )
TO FILEGROUP MyFileStream1
GO

USE [master]
GO
ALTER DATABASE [MyFileStream] SET FILESTREAM( NON_TRANSACTED_ACCESS = FULL, DIRECTORY_NAME = N'MyFilestream_Directory' ) WITH NO_WAIT
GO



CREATE TABLE dbo.MyFile AS FileTable
WITH (
  FileTable_Directory = 'MyFilestream_Directory'
);


B. D. Jensen

Viewing all 15680 articles
Browse latest View live


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