<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7703370381085463013</id><updated>2019-01-16T12:45:37.283+01:00</updated><category term="T-SQL"/><category term="SQL Server"/><category term="SQL Server 2008"/><category term="Scripts"/><category term="COLLATION"/><category term="Error"/><category term="Microsoft"/><category term="SQL SERVER 2005"/><category term="SQL Server 2012"/><category term="DNIe"/><category term="Facturación"/><category term="Facturae"/><category term="Migration"/><category term="SSMA"/><category term="factura electrónica"/><category term="seguridad"/><category term="Access"/><category term="Backup"/><category term="Bug"/><category term="Certification"/><category term="Compact"/><category term="Contained Database"/><category term="Database"/><category term="Installation"/><category term="Mirroring"/><category term="SQL Server 2008R2"/><category term="Windows"/><category term="efactura"/><category term=".NET Framework 3.5 in Windows 7"/><category term="100GB"/><category term="70-462"/><category term="Aggregate"/><category term="Allocation Pages"/><category term="Almacenamiento gratuito"/><category term="Benchmark"/><category term="CU7"/><category term="Chip"/><category term="Citas"/><category term="Cloud"/><category term="Cumulative Update"/><category term="Cursor"/><category term="Domain User"/><category term="Empty all data"/><category term="Error design mode ASPX"/><category term="Exam"/><category term="Excel"/><category term="Free space"/><category term="Gratis"/><category term="IDENTITY_INSERT"/><category term="INSTANCE"/><category term="IT"/><category term="Instalación"/><category term="Login"/><category term="Management Studio"/><category term="Map"/><category term="Microsoft SQL Server 2012"/><category term="Migración"/><category term="Mirror"/><category term="Modify tables in design mode"/><category term="Nueva dirección del blog"/><category term="OVER"/><category term="PIN DNIe"/><category term="Path"/><category term="Permission Tables"/><category term="ROW_NUMBER"/><category term="Recover"/><category term="Reduce Log file"/><category term="Remote backup"/><category term="Robin Sharma"/><category term="SQL Server 2008R2 SP2"/><category term="SSMS"/><category term="Security"/><category term="Service Broker"/><category term="Shared.com"/><category term="Sin categoría"/><category term="Subquery"/><category term="Subselect bug"/><category term="Sybase"/><category term="System Database"/><category term="Template Explorer"/><category term="Temporary Tables"/><category term="Trucos"/><category term="Truncate tables"/><category term="Updates"/><category term="VBA"/><category term="VBScript"/><category term="Visual Studio"/><category term="Windows Authenticacion"/><category term="XBRL"/><category term="aeat"/><category term="autónomos"/><category term="factua electronica"/><category term="factura"/><category term="http://nconsulting.zzl.org"/><category term="pymes"/><category term="runas"/><title type='text'>SQL SERVER  EXPERIENCE</title><subtitle type='html'>All that I know about SQL Server 2000, 2005, 2008 and 2012</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Nil CG</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-WWjGD-JTyaY/AAAAAAAAAAI/AAAAAAAAAXk/KIWHq4q_Am4/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>61</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-933981908247940915</id><published>2013-10-30T16:50:00.000+01:00</published><updated>2013-10-30T16:50:21.290+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Domain User"/><category scheme="http://www.blogger.com/atom/ns#" term="runas"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Authenticacion"/><title type='text'>SQL Server Windows Authentication with another DOMAIN\USER</title><summary type="text">Sometimes, there are people who needs to work with SQL Server and Windows authentication, but they are external employees and their notebooks are loggued into different domain.

Example:

SQL Server from Domain XXX
External Employee with PC from Domain YYY
External User Account of XXX Domain logged with YYY Domain.

Trying left shift + right button mouse and select execute SSMS like another user.</summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/933981908247940915/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2013/10/sql-server-windows-authentication-with.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/933981908247940915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/933981908247940915'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2013/10/sql-server-windows-authentication-with.html' title='SQL Server Windows Authentication with another DOMAIN\USER'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-659052859369984859</id><published>2013-07-25T11:41:00.000+02:00</published><updated>2013-07-25T11:41:30.623+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="100GB"/><category scheme="http://www.blogger.com/atom/ns#" term="Almacenamiento gratuito"/><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="Free space"/><category scheme="http://www.blogger.com/atom/ns#" term="Gratis"/><category scheme="http://www.blogger.com/atom/ns#" term="Shared.com"/><title type='text'>Shared.com ofrece 100GB gratis en la nube</title><summary type="text">Buena opción para obtener más almacenamiento de forma gratuita.

100GB Gratis de almacenamiento en Shared</summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/659052859369984859/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2013/07/sharedcom-ofrece-100gb-gratis-en-la-nube.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/659052859369984859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/659052859369984859'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2013/07/sharedcom-ofrece-100gb-gratis-en-la-nube.html' title='Shared.com ofrece 100GB gratis en la nube'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-6522710727323904480</id><published>2013-06-18T12:34:00.000+02:00</published><updated>2013-06-18T12:34:14.708+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CU7"/><category scheme="http://www.blogger.com/atom/ns#" term="Cumulative Update"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008R2 SP2"/><category scheme="http://www.blogger.com/atom/ns#" term="Updates"/><title type='text'>Cumulative update package 7 for SQL Server 2008 R2 SP2</title><summary type="text">There is an issue with the SQL Server Database engine components of original Cumulative Update 6 package (CU6). Microsoft release a fix to all servers with CU6 installed, in order to repair the error. (Index corruption ocurred).

There is a COD (Critical on-demand) for installed CU6

http://support.microsoft.com/kb/2830140/en-us

Microsoft removes CU6 link and creates a new Cumulative Update, CU7</summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/6522710727323904480/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2013/06/cumulative-update-package-7-for-sql.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/6522710727323904480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/6522710727323904480'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2013/06/cumulative-update-package-7-for-sql.html' title='Cumulative update package 7 for SQL Server 2008 R2 SP2'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-5092465292537648163</id><published>2013-06-14T10:15:00.001+02:00</published><updated>2013-06-14T10:15:41.479+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="70-462"/><category scheme="http://www.blogger.com/atom/ns#" term="Certification"/><category scheme="http://www.blogger.com/atom/ns#" term="Exam"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2012"/><title type='text'>Exam 70-462: Administering Microsoft SQL Server 2012 Databases</title><summary type="text">I want to share with us...
Successfully passed: Exam 70-462: Administering Microsoft SQL Server 2012 Databases



</summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/5092465292537648163/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2013/06/exam-70-462-administering-microsoft-sql.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/5092465292537648163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/5092465292537648163'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2013/06/exam-70-462-administering-microsoft-sql.html' title='Exam 70-462: Administering Microsoft SQL Server 2012 Databases'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-81pTWRanUPk/UbrQ8xfeB-I/AAAAAAAAEi4/WBgG2mLl7Uo/s72-c/CertificationCapture.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-1407995910857529940</id><published>2013-05-10T13:07:00.003+02:00</published><updated>2013-05-10T13:07:40.468+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Error"/><category scheme="http://www.blogger.com/atom/ns#" term="Mirror"/><category scheme="http://www.blogger.com/atom/ns#" term="Mirroring"/><category scheme="http://www.blogger.com/atom/ns#" term="Service Broker"/><category scheme="http://www.blogger.com/atom/ns#" term="T-SQL"/><title type='text'>The Service Broker Id for the remote copy of the database TEST does not match the ID on the principal server. (Microsoft SQL Server, Error: 1436)</title><summary type="text">

I’ll
explain the scenario:



It’s needed
to drop Queues and services that aren’t in use, I’ve a mirrored DB’s for each
country on different servers. DB’s are in FULL mode, with full backup at night
and Log backup hourly.

All queues
were dropped correctly, except in one server, it’s running for a long time, and
never ends.

I tried to
disable and enable Service broker. It didn’t work.

“The </summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/1407995910857529940/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2013/05/the-service-broker-id-for-remote-copy.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/1407995910857529940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/1407995910857529940'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2013/05/the-service-broker-id-for-remote-copy.html' title='The Service Broker Id for the remote copy of the database TEST does not match the ID on the principal server. (Microsoft SQL Server, Error: 1436)'/><author><name>Nil CG</name><uri>https://plus.google.com/116806974987536440963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-WWjGD-JTyaY/AAAAAAAAAAI/AAAAAAAAAXk/KIWHq4q_Am4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-ecjIZi7nQ3k/UYzUWa_gc7I/AAAAAAAAAYI/HsalA30eR18/s72-c/ServiceBrokerMirrorIDError.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-5616792204516155405</id><published>2013-04-24T09:06:00.001+02:00</published><updated>2013-05-02T09:09:26.025+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="T-SQL"/><title type='text'>sp_procoption : Automatic T-SQL Execution at Every Instance Startup</title><summary type="text">



sp_procoption sets stored procedure for autoexecution. It runs stored
procedures every time that SQL Server instance is started. (Applicable for SQL Server 2005 and above versions).



See the sintax:



sp_procoption [ @ProcName = ] &#39;procedure&#39; 

    , [ @OptionName = ] &#39;option&#39; 

    , [ @OptionValue = ] &#39;value&#39; 



[ @ProcName = ] &#39;procedure&#39;

Is the name of the procedure for which to set </summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/5616792204516155405/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2013/04/spprocoption-automatic-t-sql-execution.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/5616792204516155405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/5616792204516155405'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2013/04/spprocoption-automatic-t-sql-execution.html' title='sp_procoption : Automatic T-SQL Execution at Every Instance Startup'/><author><name>Nil CG</name><uri>https://plus.google.com/116806974987536440963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-WWjGD-JTyaY/AAAAAAAAAAI/AAAAAAAAAXk/KIWHq4q_Am4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-3941406693356430313</id><published>2013-03-27T17:19:00.000+01:00</published><updated>2013-03-27T17:19:13.722+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel"/><category scheme="http://www.blogger.com/atom/ns#" term="Trucos"/><title type='text'>Tamaño de fichero Excel excesivamente grande</title><summary type="text">
Quizás os haya sucedido que trabajando con cualquier fichero
Excel (versiones 2007 en adelante), que ocupa por ejemplo 5MB, sin darte cuenta,
ha pasado a ocupar 15MB.


¿Por qué?


No hemos añadido nada fuera de lo normal como para que se
triplique el tamaño (En mi caso contengo 50 hojas).


Bien, la explicación que da Microsoft al respecto es la
siguiente:


Microsoft Excel sólo
guarda la parte</summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/3941406693356430313/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2013/03/excel-grande.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/3941406693356430313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/3941406693356430313'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2013/03/excel-grande.html' title='Tamaño de fichero Excel excesivamente grande'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-EL1SUkqHeiM/UVMY5mlsuwI/AAAAAAAAEDM/crFNE1Dg61k/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-3818562503305703869</id><published>2013-01-03T19:30:00.000+01:00</published><updated>2013-01-04T13:27:59.555+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Benchmark"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008R2"/><title type='text'>SQL Server 2008 R2 Security Benchmark Released</title><summary type="text">

The Center for Internet Security (CIS) Security Benchmarks Division released “CIS Microsoft SQL Server 2008 R2 Database Engine Benchmark V1.0.0” on November 16, 2012. 

It can also be used for SQL Server 2008.























This is a consensus-based development of security best practices which have become the de facto security configuration standards.  If you are in charge of your SQL </summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/3818562503305703869/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2013/01/sql-server-2008-r2-security-benchmark.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/3818562503305703869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/3818562503305703869'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2013/01/sql-server-2008-r2-security-benchmark.html' title='SQL Server 2008 R2 Security Benchmark Released'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-5891864732671868650</id><published>2012-12-28T18:20:00.000+01:00</published><updated>2012-12-28T18:20:00.261+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="T-SQL"/><title type='text'>Skip function if NULL parameter input is passed</title><summary type="text">You can avoid executing a function when NULL values are passed as parameters. To achieve this you need to create function with RETURNS NULL ON NULL INPUT



In example, this function concatenates two strings, if two arguments are passed, otherwise NULL result are returned. 

USE db
GO

CREATE FUNCTION dbo.ConcatenateSTR
(
      @string NVARCHAR(MAX),
      @string2 NVARCHAR(MAX)
)
RETURNS </summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/5891864732671868650/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/12/skip-function-if-null-parameter-input.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/5891864732671868650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/5891864732671868650'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/12/skip-function-if-null-parameter-input.html' title='Skip function if NULL parameter input is passed'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-2907747658313210010</id><published>2012-12-21T19:07:00.000+01:00</published><updated>2012-12-21T19:07:00.398+01:00</updated><title type='text'>Feliz Navidad y Próspero Año 2013</title><summary type="text">

</summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/2907747658313210010/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/12/feliz-navidad-y-prospero-ano-2013.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/2907747658313210010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/2907747658313210010'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/12/feliz-navidad-y-prospero-ano-2013.html' title='Feliz Navidad y Próspero Año 2013'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-2WrK1Jvs-cI/UNSXAiL_ULI/AAAAAAAAEBg/hcAi34ViZiA/s72-c/SQLFelicitacion.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-2412043949174115982</id><published>2012-12-18T16:44:00.000+01:00</published><updated>2012-12-19T16:45:16.019+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Connect to local SQL Server with Shared Memory Disabled</title><summary type="text">

If you&#39;ve this scenario, probably it can help you.

SQL Server
     has Shared Memory Protocol disabled


There is a
suggestion for improve better performance in Servers with Biztalk and SQL
Server.

Under certain
stress conditions (such as clients accessing SQL Server from the same
computer), the SQL Server Shared Memory protocol may lower BizTalk Server
performance.

You can
resolve this </summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/2412043949174115982/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/12/connect-to-local-sql-server-with-shared.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/2412043949174115982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/2412043949174115982'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/12/connect-to-local-sql-server-with-shared.html' title='Connect to local SQL Server with Shared Memory Disabled'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-2222874149760717589</id><published>2012-11-29T00:10:00.000+01:00</published><updated>2013-10-11T08:21:42.214+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Management Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SSMS"/><category scheme="http://www.blogger.com/atom/ns#" term="T-SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Template Explorer"/><title type='text'>SSMS Shared SQL Templates, synchronized with Dropbox account</title><summary type="text">Actually, I&#39;ve T-SQL scripts in my USB, but today I&#39;m thinking about the possibility to store it in Template Explorer of Management Studio, it&#39;s more fast to get scripts than in USB.

First of all, Scripts of Template Explorer are stored in %AppData%\Microsoft\Microsoft SQL Server\100\Tools\Shell\Templates\SQL

100 for SQL Server 2008 R2, the number depends on your SQL Server version.

It&#39;s not </summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/2222874149760717589/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/11/ssms-shared-sql-templates-synchronized.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/2222874149760717589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/2222874149760717589'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/11/ssms-shared-sql-templates-synchronized.html' title='SSMS Shared SQL Templates, synchronized with Dropbox account'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-9WXADKzaBP4/ULjHrsy8sQI/AAAAAAAAD7U/BlNtV56_E1k/s72-c/SharedTemplates.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-2433201227346565823</id><published>2012-11-28T07:40:00.000+01:00</published><updated>2012-11-28T15:23:42.533+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Error"/><category scheme="http://www.blogger.com/atom/ns#" term="Mirroring"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>The server network address “TCP://SQLServerName:5022″ cannot be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational. (Microsoft SQL Server, Error: 1418 )</title><summary type="text">The server network address “TCP://SQLServerName:5022″ cannot be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational. (Microsoft SQL Server, Error: 1418 ).

If this error occurs when you&#39;re trying to create a mirror, check this points:


Restore backup at secondary server has to be with NORESTORE option.
All log backup </summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/2433201227346565823/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/11/the-server-network-address.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/2433201227346565823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/2433201227346565823'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/11/the-server-network-address.html' title='The server network address “TCP://SQLServerName:5022″ cannot be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational. (Microsoft SQL Server, Error: 1418 )'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-6159708860304665327</id><published>2012-11-28T07:30:00.000+01:00</published><updated>2012-11-30T16:05:45.719+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Error"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Cannot create, add, or edit steps for an SQL Server Agent job in SQL Server Management Studio 2008 R2</title><summary type="text">If you get some error description like this, &quot;Creating an instance of the COM component with CLSID {AA40D1D6-CAEF-4A56-B9BB-D0D3DC976BA2} from the IClassFactory failed due to the following error: c001f011.&quot; 




Probably this link to Microsoft&#39;s Fix can help you: http://support.microsoft.com/kb/2315727 



</summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/6159708860304665327/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/11/cannot-create-add-or-edit-steps-for-sql.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/6159708860304665327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/6159708860304665327'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/11/cannot-create-add-or-edit-steps-for-sql.html' title='Cannot create, add, or edit steps for an SQL Server Agent job in SQL Server Management Studio 2008 R2'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-kZ9rD0ySqbs/ULYbi6bJEaI/AAAAAAAAD64/98YfNa9msFc/s72-c/errorSSMS.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-3922931728607732550</id><published>2012-11-21T07:41:00.000+01:00</published><updated>2012-11-21T15:42:45.233+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IDENTITY_INSERT"/><category scheme="http://www.blogger.com/atom/ns#" term="T-SQL"/><title type='text'>Errors inserting identity on table</title><summary type="text">Here we&#39;ve different errors that can occurs trying to insert some rows into table that has Identity field.

I want to insert all data from Table Banca_Movimientos_TEMP to table Banca_Movimientos3

Sentence 1:


insert into dbo.Banca_Movimientos3 
select * from dbo.Banca_Movimientos_TEMP


On executing this, I get the error:


Msg 8101, Level 16, State 1, Line 1
An explicit value for the identity </summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/3922931728607732550/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/11/errors-inserting-identity-on-table.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/3922931728607732550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/3922931728607732550'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/11/errors-inserting-identity-on-table.html' title='Errors inserting identity on table'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-1967096707027786834</id><published>2012-11-09T20:47:00.001+01:00</published><updated>2013-04-19T12:30:40.875+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Error"/><title type='text'>Error Restoring Database</title><summary type="text">

Today,



Trying to restore
a database from other server Backup, 





RESTORE DATABASE
DB

  FROM DISK
= &#39;X:\Backup\DB_1.dmp&#39;

  WITH 

   
MOVE &#39;DB&#39;         TO &#39;Y:\DATA\DB.mdf&#39;,

    MOVE
&#39;DB_log&#39;   TO &#39;Z:\LOG\DB_log.ldf&#39;,

    REPLACE,

    Recovery,  

    STATS = 10

go





I get this
message:



Msg 3634, Level
16, State 1, Line 1




The operating
system returned the error &#39;32(The </summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/1967096707027786834/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/11/error-restoring-database.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/1967096707027786834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/1967096707027786834'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/11/error-restoring-database.html' title='Error Restoring Database'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-1573150207550673490</id><published>2012-10-28T19:30:00.000+01:00</published><updated>2012-10-31T16:19:36.138+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Login"/><category scheme="http://www.blogger.com/atom/ns#" term="Map"/><category scheme="http://www.blogger.com/atom/ns#" term="Scripts"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Automatically Mapping a user to a login: sp_change_users_login </title><summary type="text">Sometimes we need to restore Databases in other servers, and logins probably doesn&#39;t exist on new server.
The restored Database contains Users and permissions but it aren&#39;t mapped with Logins.

Microsoft provides stored procedure to map user with login.
If login doesn&#39;t exist, Auto_Fix option will create it.

USE Database;
GO
EXEC sp_change_users_login &#39;Auto_Fix&#39;, &#39;USER&#39;, NULL, &#39;Password&#39;;
GO

</summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/1573150207550673490/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/10/automatically-mapping-user-to-login.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/1573150207550673490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/1573150207550673490'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/10/automatically-mapping-user-to-login.html' title='Automatically Mapping a user to a login: sp_change_users_login '/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-9064592418041702397</id><published>2012-10-28T19:00:00.000+01:00</published><updated>2012-10-29T15:55:36.735+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Backup"/><category scheme="http://www.blogger.com/atom/ns#" term="Installation"/><category scheme="http://www.blogger.com/atom/ns#" term="Path"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Changing default database backup folder for SQL Server</title><summary type="text">If you don&#39;t modify the default paths for Data, Logs and Backup&#39;s on SQL Server Installation, you can modify it then.

To Modify SQL Data or Log Directory, go to Server Properties, Database Settings, Database Default Locations (marked in red).






But, where can we change SQL Backup directory?



In Windows Registry.





HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft
SQL Server\MSSQL.2\</summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/9064592418041702397/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/10/changing-default-database-backup-folder.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/9064592418041702397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/9064592418041702397'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/10/changing-default-database-backup-folder.html' title='Changing default database backup folder for SQL Server'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-kWVJ6Gs7rHA/UI6XWK6EeaI/AAAAAAAADxA/UP2TpKammZY/s72-c/InstallationDirectory.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-815066526831483410</id><published>2012-10-28T18:00:00.000+01:00</published><updated>2012-10-29T15:16:11.818+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Error"/><category scheme="http://www.blogger.com/atom/ns#" term="Installation"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008R2"/><title type='text'>Installation Error: The MOF compiler could not connect with the WMI server.</title><summary type="text">





The MOF compiler could not connect with the WMI
server.

This
is either because of a semantic error such as an incompatibility with the
existing WMI repository or an actual error such as the failure of the WMI
server to start.



If
this error ocurred when you install SQL Server 2008 R2, try to do this one:





Open console command (Run-&gt;CMD with administrator privileges).
 net stop </summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/815066526831483410/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/10/installation-error-mof-compiler-could.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/815066526831483410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/815066526831483410'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/10/installation-error-mof-compiler-could.html' title='Installation Error: The MOF compiler could not connect with the WMI server.'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-NhcDxWsYWDc/UI6Pd1s8A3I/AAAAAAAADww/fDlhe1jlLUk/s72-c/2008R2MOFError.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-891004118546030325</id><published>2012-10-08T23:42:00.000+02:00</published><updated>2012-10-09T14:43:51.486+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="T-SQL"/><title type='text'>Restore STATS</title><summary type="text">

The syntax
RESTORE…WITH STATS = X option allows you to see where is the restore process
currently. The default display is 10%, but some value can be specified.



RESTORE
DATABASE ‘Adventureworks’ FROM DISK = ‘C:\Adventureworks.bak’ WITH STATS = 5

GO



It refresh
the restore status percentage from steps by 5%.
</summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/891004118546030325/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/10/restore-stats.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/891004118546030325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/891004118546030325'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/10/restore-stats.html' title='Restore STATS'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-7944238471169723378</id><published>2012-10-08T08:03:00.000+02:00</published><updated>2012-11-02T09:49:34.409+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="T-SQL"/><title type='text'>FullTextCatalog, RESTORE DATABASE is terminating abnormally</title><summary type="text">

If you
execute this sentence to restore database with FullTextCatalog,



RESTORE DATABASE YourDB

  FROM DISK = &#39;X:\ Backup\ DatabaseBackup.bak

  WITH 

    MOVE &#39;YourDB_data&#39;   TO &#39;Z:\DATA\YourDB.mdf&#39;,

    MOVE &#39;YourDB _log&#39;   TO &#39;Z:\DATA\YourDB_log.ldf&#39;,

    REPLACE,

    Recovery,  

    STATS = 10

go





If you will have an error like this:



Msg 9953, Level 16, State 1, Line 1

The </summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/7944238471169723378/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/10/fulltextcatalog-restore-database-is.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/7944238471169723378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/7944238471169723378'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/10/fulltextcatalog-restore-database-is.html' title='FullTextCatalog, RESTORE DATABASE is terminating abnormally'/><author><name>Nil CG</name><uri>https://plus.google.com/103765654113437460156</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-HovSxZ98G6o/AAAAAAAAAAI/AAAAAAAAFqg/sygIL6gOwig/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-fKH2UOm9c18/UHLrDV1FZaI/AAAAAAAADtQ/CjxU3F8anr4/s72-c/RestoreFullTextSentence.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-6952681594605236722</id><published>2012-08-21T09:38:00.001+02:00</published><updated>2012-08-21T09:38:43.634+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Allocation Pages"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Allocation Pages</title><summary type="text">

Allocation pages are special
pages in the data files that track and mange extent allocations. There are 3
types.



Global Allocation Map (GAM): Tracks which extents have been allocated. There is 1
GAM page for every 4 GB of data file. It is always page 2 in the data
file and then repeats every 511,232 pages.



Shared Global Allocation Map (SGAM): Tracks which
extents are being used as mixed (</summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/6952681594605236722/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/08/allocation-pages.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/6952681594605236722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/6952681594605236722'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/08/allocation-pages.html' title='Allocation Pages'/><author><name>Nil CG</name><uri>https://plus.google.com/116806974987536440963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-WWjGD-JTyaY/AAAAAAAAAAI/AAAAAAAAAXk/KIWHq4q_Am4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-3434213384739003006</id><published>2012-04-27T14:05:00.000+02:00</published><updated>2012-04-27T14:05:00.532+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Backup"/><category scheme="http://www.blogger.com/atom/ns#" term="Remote backup"/><category scheme="http://www.blogger.com/atom/ns#" term="Scripts"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="T-SQL"/><title type='text'>Restore database from UNC</title><summary type="text">This T-SQL, allows you to add a Backup device, from remote directory (Don&#39;t forgett to give permissions to source backup folder).First of all, add de remote backup as Deviceuse master exec sp_addumpdevice &#39;disk&#39;,&#39;RemoteBackupDevice&#39;,&#39;\\yourRemotePath\backup.bak&#39; goThen restore de database from the Device created.restore database yourdatabasename from [RemoteBackupDevice] with file=1, move </summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/3434213384739003006/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/04/restore-database-from-unc.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/3434213384739003006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/3434213384739003006'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/04/restore-database-from-unc.html' title='Restore database from UNC'/><author><name>Nil CG</name><uri>https://plus.google.com/116806974987536440963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-WWjGD-JTyaY/AAAAAAAAAAI/AAAAAAAAAXk/KIWHq4q_Am4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-3866807537383933739</id><published>2012-04-24T13:41:00.000+02:00</published><updated>2012-04-27T13:00:06.769+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Migration"/><category scheme="http://www.blogger.com/atom/ns#" term="SSMA"/><title type='text'>SSMA Declare variable when Sp doesn&#39;t have migrated code</title><summary type="text">When for some reason, a SP code can&#39;t be migrated, and beteewn BEGIN and END it doesn&#39;t appear something, SSMA createadeclaration variable to prevent SP creation error.For example: Create procedure stp_Test_Migration_Code (@nombre varchar(50) OUTPUT) ASBEGINselect @nombre = db_name (tempdb_id(@@spid))ENDGO This SP has to be migrated to SQL Server, but SSMA and SQL Server doesn&#39;t have tempdb_id(</summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/3866807537383933739/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/04/ssma-declare-variable-when-sp-doesn.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/3866807537383933739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/3866807537383933739'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/04/ssma-declare-variable-when-sp-doesn.html' title='SSMA Declare variable when Sp doesn&amp;#39;t have migrated code'/><author><name>Nil CG</name><uri>https://plus.google.com/116806974987536440963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-WWjGD-JTyaY/AAAAAAAAAAI/AAAAAAAAAXk/KIWHq4q_Am4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703370381085463013.post-7072614975476574289</id><published>2012-04-19T19:42:00.000+02:00</published><updated>2012-04-27T13:00:06.811+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Contained Database"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2012"/><title type='text'>Create User for Contained Database</title><summary type="text">Following with conained Databases in SQL Server 2012 (Enabling contained databases), we must create a User for login in.The first step is to create the SQL user User with Password (userName: containedUser)Make sure to set a membership role, for example db_owner.Now, try to connect to Contained database, choose SQL Authentication and complete your Login and Password.The most important!, don&#39;t </summary><link rel='replies' type='application/atom+xml' href='http://sql.nconsulting.net/feeds/7072614975476574289/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://sql.nconsulting.net/2012/04/create-user-for-contained-database.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/7072614975476574289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703370381085463013/posts/default/7072614975476574289'/><link rel='alternate' type='text/html' href='http://sql.nconsulting.net/2012/04/create-user-for-contained-database.html' title='Create User for Contained Database'/><author><name>Nil CG</name><uri>https://plus.google.com/116806974987536440963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-WWjGD-JTyaY/AAAAAAAAAAI/AAAAAAAAAXk/KIWHq4q_Am4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>