Does VB6.0 ADO2.6 OLEDB work with SQL 2014? Can we upgrade our SQL 2012 to SQL 2014 without front code conversion? The majority legacy code is still in VB6.0 ADO2.6 OLEDB to connect to SQL Server. Converting these code will take years.
Thanks,
Lijun
Does VB6.0 ADO2.6 OLEDB work with SQL 2014? Can we upgrade our SQL 2012 to SQL 2014 without front code conversion? The majority legacy code is still in VB6.0 ADO2.6 OLEDB to connect to SQL Server. Converting these code will take years.
Thanks,
Lijun
Hi all,
I know that the DB Engine does lock escalation to save memory.
Is it possible to know somehow, when the DB Engine has made lock escalation? How much memory has been saved for each lock escalation?
Hi experts... Now cpu is stable at around 50% for the last 30 minutes or so... but I had for almost 3 hours cpu at 97%, how can I tell what was causing this in the past?
Please check the screenshot... thanks in advance experts!
Image may be NSFW.
Clik here to view.
I thought INSERTs used "X" mode (exclusive) locks. Does it also acquire "S mode (shared) locks?
Here's why I ask. I'm capturing extended events for lock_acquisition > 1 second and see lots of waits in the range of about 5 seconds (5000000 µS), always for the same INSERT on the same table, and the mode is always "S".
Chuck
Hi All,
Could you please help me providing any suggestions to fine tune below issue.
What should be the proper troubleshooting approach and any recommendations which you might suggest?
We see the top 2 waits as CXPACKET and PAGEIOLATCH_SH Waitypes
CXPACKET 80%
PAGEIOLATCH_SH 10%
On a side note, I also see some disk latency issues as well.
Environment:
SQL Server Version :
Microsoft SQL Server 2012 (SP1) - 11.0.3393.0 (X64)
Oct 25 2013 19:04:40
Copyright (c) Microsoft Corporation
Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
- Total physical cpu count =2
- Total logic cpu count = 24
- max degree of parallelism = 8
- cost threshold for parallelism = 5
Please find attached screenshots with numbers. I also see spids a getting self blocked with CXPACKET waittype. What does it mean? Any advise to get rid of CXPACKET waits? How do we go about troubleshooting such issues?
Image may be NSFW.
Clik here to view.
Thanks,
Sam
Ok, Can someone please explain this in a detail so every sql developer/dba will never have to guess :)
Lets say I am updating 10% of a table's data in a transaction. It is a situation which needs a data fix. I am trying to find how much transaction log will be generated? If the log size is 1 GB how much it will grow ? To be more precise, I am changing the value to '' (empty space) if it is null. (I know this is bad, the app development always wants data fix, instead of writing good code).
Begin tran
update MyTable set MyColumn = '' where Mycolumn is null --Lets says this updates 10% of the data in the table.
Commit tran
case 1: Update a table with 1 million rows
case2 : Update a table with 10 million rows
case 3: Update a table with 100 million rows
Ranga
Environment - SQL Server 2008 I have a problem of Overlapping Dates. I have below records ID EffectiveDate TerminationDate 1146 4/22/2015 9/12/2015 1146 10/25/2015 9/30/2016 1146 11/4/2015 9/30/2017 I want results like below: ID EffectiveDate TerminationDate 1146 4/22/2015 9/12/2015 1146 10/25/2015 9/30/2017
Hi All,
Seeking for your guidance on Tempdb
We have tried to optimize Tempdb is out env. Below are the ones we have taken care.
• enabled instant file initialization
• pre-sized the data files. All of them has same size each 90GB
• created multiple data files of same size and same auto growth settings
• auto growth specified in fixed sizes i.e. 500MB
• enabled trace flag -T1118
• Still we see I/O taking more 15 ms in SQL server Errorlog
• No of physical cpus= 2
• no of logical cpu count = 24
Not sure what is wrong. Can anybody share your thoughts on this?
From SQL Errorlog:
spid7s SQL Server has encountered 3146 occurrence(s) of I/O requests taking longer than 15 seconds to complete on file [T:\SQL\TEMP\tempdb_1.mdf] in database [tempdb] (2). The OS file handle is 0x0000000000001350.
The offset of the latest long I/O is: 0x0000033
spid7s SQL Server has encountered 3147 occurrence(s) of I/O requests taking longer than 15 seconds to complete on file [T:\SQL\TEMP\tempdb_2.mdf] in database [tempdb] (2). The OS file handle is 0x00000000000014A4.
The offset of the latest long I/O is: 0x0000033
Thanks in advance.
Here is deadlock report file, from which I can see two transactions are locked deadly on the same object(maybe a partition, because the field: eqptyp and sent_dte are not index in the table). And I am very confusing that why the two transactions can hold simultaneously the 'X' lock to the same object??
<deadlock>
<victim-list>
<victimProcess id="process1e9295468" />
</victim-list>
<process-list>
<process id="process1e9295468" taskpriority="0" logused="6768" waitresource="KEY: 8:72057631049121792 (a72254d22209)" waittime="2490" ownerId="45679760" transactionname="implicit_transaction"
lasttranstarted="2015-10-28T15:05:01.347" XDES="0x157ec2d10" lockMode="U" schedulerid="2" kpid="47336" status="suspended" spid="61" sbid="0" ecid="0" priority="0"
trancount="2" lastbatchstarted="2015-10-28T15:05:01.900" lastbatchcompleted="2015-10-28T15:05:01.900" lastattention="1900-01-01T00:00:00.900" clientapp="wm-000000" hostname="WMDCI2" hostpid="123"
loginname="sa" isolationlevel="read committed (2)" xactid="45679760" currentdb="8" lockTimeout="4294967295" clientoption1="671088672" clientoption2="119866">
<executionStack>
<frame procname="adhoc" line="1" stmtstart="268" stmtend="826" sqlhandle="0x0200000007af0e1231782794ede2a724c3909da648bc55380000000000000000000000000000000000000000">
unknown </frame>
</executionStack>
<inputbuf>
update tbl_name
set eqptyp = coalesce( @P0 , @P1 )
where devcod = @P2
and usr_id = @P3
and (eqptyp != @P4 or eqptyp is null)
and sent_dte is null
and wh_id = coalesce( @P5 , @P6 ) </inputbuf>
</process>
<process id="process1cf4df848" taskpriority="0" logused="12880" waitresource="KEY: 8:72057631049121792 (299c52e1132f)" waittime="2490" ownerId="45674997" transactionname="implicit_transaction"
lasttranstarted="2015-10-28T15:04:54.723" XDES="0x2421df750" lockMode="U" schedulerid="7" kpid="40800" status="suspended" spid="64" sbid="0" ecid="0" priority="0"
trancount="2" lastbatchstarted="2015-10-28T15:04:55.480" lastbatchcompleted="2015-10-28T15:04:55.480" lastattention="1900-01-01T00:00:00.480" clientapp="wm-000003" hostname="WMDCI2" hostpid="123"
loginname="sa" isolationlevel="read committed (2)" xactid="45674997" currentdb="8" lockTimeout="4294967295" clientoption1="671088672" clientoption2="119866">
<executionStack>
<frame procname="adhoc" line="1" stmtstart="268" stmtend="826" sqlhandle="0x0200000007af0e1231782794ede2a724c3909da648bc55380000000000000000000000000000000000000000">
unknown </frame>
</executionStack>
<inputbuf>
update tbl_name
set eqptyp = coalesce( @P0 , @P1 )
where devcod = @P2
and usr_id = @P3
and (eqptyp != @P4 or eqptyp is null)
and sent_dte is null
and wh_id = coalesce( @P5 , @P6 ) </inputbuf>
</process>
</process-list>
<resource-list>
<keylock hobtid="72057631049121792" dbid="8" objectname="wm.dbo.tbl_name" indexname="tbl_name_pk" id="lock1d0a2e900" mode="X" associatedObjectId="72057631049121792">
<owner-list>
<owner id="process1cf4df848" mode="X" />
</owner-list>
<waiter-list>
<waiter id="process1e9295468" mode="U" requestType="wait" />
</waiter-list>
</keylock>
<keylock hobtid="72057631049121792" dbid="8" objectname="wm.dbo.tbl_name" indexname="tbl_name_pk" id="lock24ab4ec00" mode="X" associatedObjectId="72057631049121792">
<owner-list>
<owner id="process1e9295468" mode="X" />
</owner-list>
<waiter-list>
<waiter id="process1cf4df848" mode="U" requestType="wait" />
</waiter-list>
</keylock>
</resource-list>
</deadlock>
We are having issues following a server crash. Cause of the crash is unknown, all that is listed in the event viewer is bug check.
All of our virtual access for the SQL Server Services we get the service did not start due to a logon failure. I have cleared out the password and tried again, and still same error. I can switch the service run under system, and everything starts up. When I switch back to using NT Service\MSSQLServer I get the same error.
When I look at the local security policy, the service account has the proper permissions.
SQL Server 2012 SP2 with CU6 (5613)
Any Ideas?
DJ
Anybody knows of a stragegy to compress a table gradually online with minimal available space.
I am stuck with very little log, data, tempdb space available and requirements to keep the table available and high available (full recovery mode with always on in synchronous commit).
What would be a potent strategy to avoid exploding the logs or putting the table offline.
Right now, I am thinking
But I think the initial rebuild(s) necessary to split the data on multiple filegroups will kill my hopes to have little log or tempdb space generated.
Is there a way to rebuild the table online gradually while partitioning it or will I end up having one big operation which can't be split no matter what I do until I am finally partitioned?
Alternative solutions are welcomed.
hi all,
HI All,
we are facing issue on SQL server 2014. kindly help me its urgent basis
HI All,
We are configure linked server between SQL server 2005 to SQL server 2008.
I execute select * from command for some table its working fine and some table its giving below error.
Kindly help me how to resolve this issue.
OLE DB provider "SQLNCLI" for linked server "servername" returned message "Invalid character value for cast specification".
OLE DB provider "SQLNCLI" for linked server "servername" returned message "Invalid character value for cast specification".
Msg 7330, Level 16, State 2, Line 1
Cannot fetch a row from OLE DB provider "SQLNCLI" for linked server "servername".
Hi all of you,
I run 2012k trial version 180 day and after set up Mail I get this message after viewing history and doing the usual test...
mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2015-12-09T19:08:02). Exception Message: Cannot send mails to mail server. (El servidor SMTP requiere una conexión segura o el cliente no se autenticó. La respuesta del servidor fue: 5.5.1 Authentication Required. Learn more at).
Thanks for any input or hint,
Hello I am using below script to see log file size but it shows wrong value (100GB), for same database dbcc sqlperf(logspace) shows log size as 5248.
Any idea what could be the reason.
More info: Its SQL 2012 SP2, Windows 2012 R2.
SELECT db.[name] AS [Database Name]
Image may be NSFW.
Clik here to view.
Hello,
I am logged with my user account Name1 to the server ... (No other account works)
I am trying to connect through SSMS to a database engine but it is still looking for my account Name1 even I am using
runas /netonly /user:domain\Name2 ssms.exe
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
How to use Name2 to access the database engine?
Thanks,
Dom
System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager
Hi all,
We recently upgraded one of our production servers from SQL 2012 to 2014. Now when the nightly full backup runs, the SQL instance allows connections, but everything is blocked until its completes; even queries on other databases that are not within the backup scope.
If we try to start a new Activity Monitor during the backup, it times out.
Image may be NSFW.
Clik here to view.
The command to freeze the server is:
backup database "<DB>" to VIRTUAL_DEVICE='<DEVICE>' with stats = 10, blocksize = 65536, maxtransfersize = 4194304, buffercount = 1
<DB> being the DB in scope of the backup
<DEVICE> being the backup location
While the backup is running, connection attempts are still accepted, but no queries will execute - either waiting until the backup completes or the query times out. This was not experienced while we were running SQL 2012.
Had anyone experienced this before or know of a work around?
Thanks,
Jay :)
If you shake a kettle, does it boil faster?
Somehow, when I stop my extended sessions, the .xel to which I log the events stays locked and cannot be erased.
Anybody has this issue or knows how unlock those files or at least identify the process locking them?