Archive for the ‘SQL 2008’ Category
The DTC option is a simple feature just turn it on and it works eh yeh sometimes. but in advanced environments you need often some tweaks and how to’s
The following errors are common on misconfiguration on the SQL Cluster / MSDTC source
MSDTC encountered an error (HR=0x80000171) Or if you are using linked SQL servers If the MSDTC is not working most of them solve the error with code, actually it is a misconfiguration of the MSDTC How to solve this error ?
OLE DB provider "SQLNCLI10" for linked server "SQL instance name" returned message "Cannot start more transactions on this session.".
Unable to start a nested transaction for OLE DB provider "SQLNCLI10" for linked server "SQL instance name". A nested transaction was required because the XACT_ABORT option was set to OFF.
Or error 7391
Well here is a little tip on how to solve this.
Typical MSDTC cluster resource , But in the resource kit there is a little tool that is named SUBINACL
SubInACL is a command-line tool that enables administrators to obtain security information about files, registry keys, and services, and transfer this information from user to user, from local or global group to group, and from domain to domain. For example, if a user has moved from one domain (DomainA) to another (DomainB), the administrator can replace DomainA\User with DomainB\User in the security information for the user’s files. This gives the user access to the same files from the new domain.
SubInACL enables administrators to do the following:
- Display security information associated with files, registry keys, or services. This information includes owner, group, permission access control list (ACL), discretionary ACL (DACL), and system ACL (SACL).
- Change the owner of an object.
- Replace the security information for one identifier (account, group, well-known security identifier (SID)) with that of another identifier.
- Migrate security information about objects. This is useful if you have reorganized a network’s domains and need to migrate the security information for files from one domain to another.
This update addresses the following issues:
- Fixed bug where subinacl.exe failed to process command line arguments
- Fixed bug where subinacl.exe failed to function correctly with cluster file shares
So now that we have the tool let us use this filling in the following command
subinacl /service msdtc /grand=”network services”=qsetil
Access denied ! , I am an Admin the CMD is a Admin why the syntax is correct .
Yes all above is ok except the MSDTC part it is a clusterd so you need to use the cluster part.

Ok and now with the Clustered DTC

Ok done now the error below is gone.
OLE DB provider "SQLNCLI10" for linked server "SQL instance name" returned message "Cannot start more transactions on this session.".
Unable to start a nested transaction for OLE DB provider "SQLNCLI10" for linked server "SQL instance name". A nested transaction was required because the XACT_ABORT option was set to OFF.
Msg 7395, Level 16, State 2, Line 3
But what about the XACT_ABORT option was set to OFF and the error 7391 ?
Yes easy to solve turn it on.
Below is a little example of how to test your transactions just change your servername [SQL instance name].
BEGIN TRAN
UPDATE [SQL instance name].test_DTC.dbo.Table1
SET Field1 = ‘MSDTC is a pain if it is not working but now it is working like a charm’
Where Field1 = ‘Second';
COMMIT TRAN
SET XACT_ABORT OFF
SET XACT_ABORT ON
Select * from [SQL instance name].test_DTC.dbo.Table1

Now that there is a beta of SQL 11 ( denali ) I want to see if I can break my Cluster with SQL 2008 on it during the upgrade. Yes I can.
<>>Extra
These are testing machines ( snapshot of production ) and the screenshot are showing you what can go wrong. It was hard to make a blog post about this there was so much to fix and to do and to explane how to solve things. At the end I deside to create a fresh cluster ;-(
<>>
I use a 2 node cluster windows 2008r2 with SQL 2008 on it 2 named sql instances.
Lesson 1 be prepared and no rush during de upgrade.
Lesson 2 Make sure your current SQL cluster is fine if not do not upgrade !
In my post http://robertsmit.wordpress.com/2009/06/18/clustering-sql-2008-on-windows-2008-r2-what-can-go-wrong/ and I guessed it would be fun to do this with SQL Denali.
Well It is fun but the things I want to fix and to make sure the I can fix it and write a blog about this was not easy.
Well this blog is holding a lot of screen shots to see what and how the installation can be done.
So my 2 node cluster that I used for the SQL 2008 what can go wrong is up and running and ready for the beta sql 11.
I downloaded the SQL denali beta mounted the ISO in my hyper-V and started the splash.
But first let me test this on a brand new cluster and see how things are going.
Except I use the Same IP for the SQL instance ( typo on perpes )
Ok I needed a reboot package after the reboot I’m ready to go

Fill in your key or leave it this way ( give your key later )


Give the file location and name the instance



I give the disk and the IP number ( make sure it is a free IP )
Put in the service account

Some new screens

Well All set and ready to go But during the install there was this error, What is it and why ?

Well It seams that I used a Ip adress that was not Free but why this error and why not installing and leave the resource off line. So what is the status of the install.
Well there is no cluster good that this was not the production SQL so lets remove it an reinstall


Can’t find the SQL , yes the setup did not install it but why ?

But on more error messages to go there is no clean fix and this is just for not putting in a right Ip adress. next step clean out the register and delete the files, and rerun the setup again.

After playing with denali and upgrading , deinstall , install, fresh install , Win2008R2 Sp1
If you are beta testing denali on a cluster do not use the setup for cluster node install but choose the prepare for cluster install and after that use the finish cluster install. this works fine and fast.
Both my test clusters are broken during the upgrade It is all my fault I did this and not all the errors are SQL denali problems. but the main problem is make sure you have a plan and if something goes wrong make sure you can fixit or do a rollback.
In my case the only thing I did was a taken IP address and running an instance that is clustered and running a non clustered instance on both nodes. seems not logical at all. But have you seen crappy sql clusters ? Or are all your Clusters in excellent shape ?
dumb questions do not exist, but have you ever worked on a helpdesk ?
http://www.rinkworks.com/stupid/cs_calls.shtml
Windows Live Tags: Wrong,Beta,Denali,Cluster,node,Lesson,Make,installation,Except,Same,instance,typo,Fill,Give,location,disk,account,Some,error,Free,resource,status,production,setup,messages,files,Both,problems,instances,seams,errors,blog,reboot
WordPress Tags: Wrong,Beta,Denali,Cluster,node,Lesson,Make,installation,Except,Same,instance,typo,Fill,Give,location,disk,account,Some,error,Free,resource,status,production,setup,messages,files,Both,problems,instances,seams,errors,blog,reboot
Now that there is a beta of SQL 11 ( denali ) I want to see if I can break my Cluster with SQL 2008 on it during the upgrade. Yes I can.
<>>Extra
These are testing machines ( snapshot of production ) and the screenshot are showing you what can go wrong. It was hard to make a blog post about this there was so much to fix and to do and to explane how to solve things. At the end I deside to create a fresh cluster ;-(
<>>
I use a 2 node cluster windows 2008r2 with SQL 2008 on it 2 named sql instances.
Lesson 1 be prepared and no rush during de upgrade.
Lesson 2 Make sure your current SQL cluster is fine if not do not upgrade !
In my post http://robertsmit.wordpress.com/2009/06/18/clustering-sql-2008-on-windows-2008-r2-what-can-go-wrong/ and I guessed it would be fun to do this with SQL Denali.
Well It is fun but the things I want to fix and to make sure the I can fix it and write a blog about this was not easy.
Well this blog is holding a lot of screen shots to see what and how the installation can be done.
So my 2 node cluster that I used for the SQL 2008 what can go wrong is up and running and ready for the beta sql 11.
I downloaded the SQL denali beta mounted the ISO in my hyper-V and started the splash.
But first let me test this on a brand new cluster and see how things are going.
Except I use the Same IP for the SQL instance ( typo on perpes )
Ok I needed a reboot package after the reboot I’m ready to go

Fill in your key or leave it this way ( give your key later )


Give the file location and name the instance



I give the disk and the IP number ( make sure it is a free IP )
Put in the service account

Some new screens

Well All set and ready to go But during the install there was this error, What is it and why ?

Well It seams that I used a Ip adress that was not Free but why this error and why not installing and leave the resource off line. So what is the status of the install.
Well there is no cluster good that this was not the production SQL so lets remove it an reinstall


Can’t find the SQL , yes the setup did not install it but why ?

But on more error messages to go there is no clean fix and this is just for not putting in a right Ip adress. next step clean out the register and delete the files, and rerun the setup again.

After playing with denali and upgrading , deinstall , install, fresh install , Win2008R2 Sp1
If you are beta testing denali on a cluster do not use the setup for cluster node install but choose the prepare for cluster install and after that use the finish cluster install. this works fine and fast.
Both my test clusters are broken during the upgrade It is all my fault I did this and not all the errors are SQL denali problems. but the main problem is make sure you have a plan and if something goes wrong make sure you can fixit or do a rollback.
In my case the only thing I did was a taken IP address and running an instance that is clustered and running a non clustered instance on both nodes. seems not logical at all. But have you seen crappy sql clusters ? Or are all your Clusters in excellent shape ?
dumb questions do not exist, but have you ever worked on a helpdesk ?
http://www.rinkworks.com/stupid/cs_calls.shtml
Windows Live Tags: Wrong,Beta,Denali,Cluster,node,Lesson,Make,installation,Except,Same,instance,typo,Fill,Give,location,disk,account,Some,error,Free,resource,status,production,setup,messages,files,Both,problems,instances,seams,errors,blog,reboot
WordPress Tags: Wrong,Beta,Denali,Cluster,node,Lesson,Make,installation,Except,Same,instance,typo,Fill,Give,location,disk,account,Some,error,Free,resource,status,production,setup,messages,files,Both,problems,instances,seams,errors,blog,reboot