<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wladimir A. Jiménez B.</title>
	<atom:link href="http://www.kasbeel.cl/kas2010/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kasbeel.cl/kas2010</link>
	<description>Blog Personal y Tips de Informática</description>
	<lastBuildDate>Tue, 03 Aug 2010 18:40:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Restore Database in MS SQL</title>
		<link>http://www.kasbeel.cl/kas2010/2010/07/19/restore-database-mssql/</link>
		<comments>http://www.kasbeel.cl/kas2010/2010/07/19/restore-database-mssql/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 16:24:15 +0000</pubDate>
		<dc:creator>Wladimir A. Jiménez B.</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[BACKUP]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[Restore Backup]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[SQL Restore]]></category>

		<guid isPermaLink="false">http://www.kasbeel.cl/kas2010/?p=90</guid>
		<description><![CDATA[To restore a database backup with we can used the SQL command next: CREATE DATABASE [dbname]; -- Create a database (If it was created is not necessary) RESTORE DATABASE [dbname] FROM DISK = ‘PATH_OF_THE_BACKUP’ -- Path of the backup file WITH REPLACE, MOVE ‘dbname_Data’ TO ‘DEST_PATH/dbname_Data.MDF’, -- File Path database or where we put MOVE <a href='http://www.kasbeel.cl/kas2010/2010/07/19/restore-database-mssql/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>To restore a database backup with we can used the SQL command next:</p>
<pre class="brush:sql">
CREATE DATABASE [dbname]; -- Create a database (If it was created is not necessary)
RESTORE DATABASE [dbname]
FROM DISK = ‘PATH_OF_THE_BACKUP’ -- Path of the backup file
WITH REPLACE,
MOVE ‘dbname_Data’ TO ‘DEST_PATH/dbname_Data.MDF’, -- File Path database or where we put
MOVE ‘dbname_Log’ TO ‘DEST_PATH/dbname_Log.LDF’ -- Same as above but for the log
</pre>
<p>This can be done from SQL Query Analyzer or any applications that do allow us to execute sentiencias SQL on database.</p>
<p>NOTE: Sorry for my english, but i am learning. I accept corrections.<br />
(NOTE: was migrated of the old site)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kasbeel.cl/kas2010/2010/07/19/restore-database-mssql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>View the contents of a SQL Server backup</title>
		<link>http://www.kasbeel.cl/kas2010/2010/07/19/view-the-contents-of-a-sql-server-backup/</link>
		<comments>http://www.kasbeel.cl/kas2010/2010/07/19/view-the-contents-of-a-sql-server-backup/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 14:41:50 +0000</pubDate>
		<dc:creator>Wladimir A. Jiménez B.</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[Backup information]]></category>
		<category><![CDATA[FileListOnly]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[Restore Commando SQL]]></category>

		<guid isPermaLink="false">http://www.kasbeel.cl/kas2010/?p=74</guid>
		<description><![CDATA[On occasions it happens that the name of the database or backup do not correspond to the ID of database contained in backup, for example, our database is called SYS, but when it was created is called SYS-SA, therefore the initial names of the data and logs files were SYS_SA_Data and SYS_SA_Log. If we try <a href='http://www.kasbeel.cl/kas2010/2010/07/19/view-the-contents-of-a-sql-server-backup/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>On occasions it happens that the name of the database or backup do not correspond to the ID of database contained in backup, for example, our database is called SYS, but when it was created is called SYS-SA, therefore the initial names of the data and logs files were SYS_SA_Data and SYS_SA_Log.</p>
<p>If we try to restore we need know these names files, for this we can use the following SQL statment, that show this information and which also gives us the type, size and maximum size of the database.</p>
<pre class="brush:sql">
RESTORE FILELISTONLY
   FROM DISK = 'PATH_OF_THE_BACKUP' -- this is the backup file path
</pre>
<p>NOTE: Sorry for my english, but i am learning. I accept corrections.<br />
(NOTE: was migrated of the old site)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kasbeel.cl/kas2010/2010/07/19/view-the-contents-of-a-sql-server-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delete LOG SQL 2000</title>
		<link>http://www.kasbeel.cl/kas2010/2010/06/09/delete-log-sql-2000/</link>
		<comments>http://www.kasbeel.cl/kas2010/2010/06/09/delete-log-sql-2000/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 05:16:03 +0000</pubDate>
		<dc:creator>Wladimir A. Jiménez B.</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[BACKUP LOG]]></category>
		<category><![CDATA[Log Truncate]]></category>
		<category><![CDATA[The log file for database 'tempdb' is full]]></category>
		<category><![CDATA[TRUNCATE_ONLY]]></category>

		<guid isPermaLink="false">http://www.kasbeel.cl/kas2010/?p=33</guid>
		<description><![CDATA[If you see the next message &#8220;The log file for database &#8216;tempdb&#8217; is full.&#8221;, or if you only want empty the log of each database, you can do the next. Open the SQL Query Analyzer and run this: BACKUP LOG WITH TRUNCATE_ONLY GO NOTE: Sorry for my english, but i am learning. I accept corrections. <a href='http://www.kasbeel.cl/kas2010/2010/06/09/delete-log-sql-2000/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>If you see the next message <em>&#8220;The log file for database &#8216;tempdb&#8217; is full.&#8221;</em>, or if you only want empty the log of each database, you can do the next.</p>
<p>Open the SQL Query Analyzer<br />
and run this:</p>
<pre class="brush:sql">
BACKUP LOG <"database_name"> WITH TRUNCATE_ONLY
GO
</pre>
<p>NOTE: Sorry for my english, but i am learning. I accept corrections.<br />
(NOTE: was migrated of the old site)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kasbeel.cl/kas2010/2010/06/09/delete-log-sql-2000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change root password on Mysql</title>
		<link>http://www.kasbeel.cl/kas2010/2010/06/09/change-root-password-on-mysql/</link>
		<comments>http://www.kasbeel.cl/kas2010/2010/06/09/change-root-password-on-mysql/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 01:01:59 +0000</pubDate>
		<dc:creator>Wladimir A. Jiménez B.</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[forgot the password]]></category>
		<category><![CDATA[mysqladmin]]></category>
		<category><![CDATA[Root Access]]></category>

		<guid isPermaLink="false">http://www.kasbeel.cl/kas2010/?p=20</guid>
		<description><![CDATA[On many occasions, I forgot the password of the user Administrator (root) of me Mysql server, may be that Why was not the administrator?, but good if you get local access to the system, you can use the following instructions, to obtain the administrator access. Option 1: #the easiest is run mysqladmin using the following <a href='http://www.kasbeel.cl/kas2010/2010/06/09/change-root-password-on-mysql/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>On many occasions, I forgot the password of the user Administrator (root) of me Mysql server, may be that Why was not  the administrator?, but good if you get local access to the system, you can use the following instructions, to obtain the administrator access.</p>
<p>Option 1:</p>
<pre class="brush:bash">
#the easiest is run mysqladmin using the following instruction.
"Mysql Path" /mysqladmin -u root password "new password" #without quote
#where the common path on windows system is:
c:\mysqlbin or c:\Archivos de programa\mysql\bin
#on linux system is:
/usr/bin or /usr/local/bin or (sbin) in some case.
</pre>
<p>Option 2:</p>
<pre class="brush:bash">
#Other option is stop the mysql service using:
mysql stop
#after, open mysql on safe mode:
safe_mysql --skip-grant-table &#038;
#run the mysql client and update the user table on db mysql changing the user password.
</pre>
<pre class="brush:sql">
$ USE mysql;
$ UPDATE user SET password=PASSWORD('new password') WHERE user='root';
$ flush privileges;
</pre>
<p>get out using &#8220;exit&#8221; on the client and restart the mysql service.</p>
<p>the first options is most recommendable, but in occasions is better to have alternatives.</p>
<p>NOTE: Sorry for my english, but i am learning. I accept corrections.<br />
(NOTE: was migrated of the old site)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kasbeel.cl/kas2010/2010/06/09/change-root-password-on-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
