<?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>Web Development and Programming Help. &#187; MsSQL</title>
	<atom:link href="http://www.memo8.com/toolkits/archives/tag/mssql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.memo8.com/toolkits</link>
	<description>Wep Programming-Mobile Programming-Windows Programming</description>
	<lastBuildDate>Wed, 01 Feb 2012 08:52:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>วิธีแก้ไข SQL Server 2008 Error : Saving changes is not permitted.</title>
		<link>http://www.memo8.com/toolkits/archives/479</link>
		<comments>http://www.memo8.com/toolkits/archives/479#comments</comments>
		<pubDate>Sat, 12 Jun 2010 14:42:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MsSQL]]></category>

		<guid isPermaLink="false">http://www.memo8.com/toolkits/?p=479</guid>
		<description><![CDATA[เพิ่งเปลี่ยนมาใช้ SQL Server 2008 พอจะแก้ไข Table แล้วก็เจอ Error
Saving changes is not permitted. The changes that you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created.
ซึ่งเกิดจากระบบป้องกันการแก้ไข Table ของ [...]]]></description>
			<content:encoded><![CDATA[<p>เพิ่งเปลี่ยนมาใช้ SQL Server 2008 พอจะแก้ไข Table แล้วก็เจอ Error</p>
<pre class="code">Saving changes is not permitted. The changes that you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created.</pre>
<p>ซึ่งเกิดจากระบบป้องกันการแก้ไข Table ของ SQL Server 2008 เอง เราสามารถปิด Option ตรงนี้ได้ครับ วิธีการดังนี้</p>
<ol>
<li>ดูที่  Tool bar ของ SQL Server 2008 ให้เลือก Tools &gt;&gt; Options</li>
<li>จะมีหน้าต่างขึ้นมา ให้ดูทางด้านซ้าย ให้เลือก Designers</li>
<li>มองหาคำว่า &#8220;Prevent <span>saving</span> <span>changes</span> that require table re-creation&#8221; แล้ว  uncheck และกดปุ่ม OK ครับ</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.memo8.com/toolkits/archives/479/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>วิธีแก้ไข ASP.NET Error : The SELECT permission was denied on the object &#8216;table_name&#8217;, database &#8216;table_name&#8217;, schema &#8216;dbo&#8217;.</title>
		<link>http://www.memo8.com/toolkits/archives/471</link>
		<comments>http://www.memo8.com/toolkits/archives/471#comments</comments>
		<pubDate>Thu, 10 Jun 2010 04:01:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[MsSQL]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://www.memo8.com/toolkits/?p=471</guid>
		<description><![CDATA[จาก Error ตามหัวข้อเกิดจากไม่ได้ Add Permission (เพิ่งเคยเจอเหมือนกัน อุอุ) สามารถแก้ไขได้ดังนี้

เปิดโปรแกรม SQL Server Management Studio
ดูที่ Object Explorer (ด้านซ้าย)
เลือกโฟลเดอร์ &#62;&#62; Security &#62;&#62; Logins
เลือก User ที่ใช้งานอยู่ คลิกขวาเลือกเมนูลัด &#8220;Properties&#8221;
เมื่อขึ้นหน้าต่าง ดูที่ Select a page (ด้านซ้าย)
เลือก Server Role ให้ Check &#8220;sysadmin&#8221; กดปุ่ม Ok

เป็นอีกหนึ่งวิธีที่แก้ไข้ได้ครับ เรียบร้อยโรงเรียนไทย
]]></description>
			<content:encoded><![CDATA[<p>จาก Error ตามหัวข้อเกิดจากไม่ได้ Add Permission (เพิ่งเคยเจอเหมือนกัน อุอุ) สามารถแก้ไขได้ดังนี้<span id="more-471"></span></p>
<ol>
<li>เปิดโปรแกรม SQL Server Management Studio</li>
<li>ดูที่ Object Explorer (ด้านซ้าย)</li>
<li>เลือกโฟลเดอร์ &gt;&gt; Security &gt;&gt; Logins</li>
<li>เลือก User ที่ใช้งานอยู่ คลิกขวาเลือกเมนูลัด &#8220;Properties&#8221;</li>
<li>เมื่อขึ้นหน้าต่าง ดูที่ Select a page (ด้านซ้าย)</li>
<li>เลือก Server Role ให้ Check &#8220;sysadmin&#8221;<strong> </strong>กดปุ่ม Ok</li>
</ol>
<p>เป็นอีกหนึ่งวิธีที่แก้ไข้ได้ครับ เรียบร้อยโรงเรียนไทย</p>
]]></content:encoded>
			<wfw:commentRss>http://www.memo8.com/toolkits/archives/471/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fatal error: Call to undefined function: mssql_connect()</title>
		<link>http://www.memo8.com/toolkits/archives/116</link>
		<comments>http://www.memo8.com/toolkits/archives/116#comments</comments>
		<pubDate>Sun, 30 Nov 2008 07:03:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MsSQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.memo8.com/toolkits/archives/116</guid>
		<description><![CDATA[พอดีเขียน PHP รัน โดย IIS ใช้ Windows XP เซ็ตอับลงได้ปกติ แต่พอถึงคราวต้องติดต่อ MS-SQL กลับเกิด Error
&#8220;Fatal error: Call to undefined function: mssql_connect()&#8221;
วิธีแก้ 2 ขั้นตอน (ถ้าไม่ได้ก็ สวดมนต์คับ)

 เอา comment ของ extension=php_mssql.dll ออกแล้ว (อยู่ใน php.ini)
ถ้ายังไม่ได้อีก ให้ copy ไฟล์ ntwdblib.dll (อยู่ใน zip ไฟล์ PHP หรือถ้าเราใช้ Appserd ก็อยู่ที่ C:\AppServ\php5) เอาไปไว้ใน C:\WINDOWS\system32 จากนั้น Restart IIS ถ้าไม่ได้ ก็ Restart Windows ซะเลย

สุดท้ายท้ายสุด ถ้าไม่ได้ตามไปดูที่ลิงค์นี้ ใช้ Extensions [...]]]></description>
			<content:encoded><![CDATA[<p>พอดีเขียน PHP รัน โดย IIS ใช้ Windows XP เซ็ตอับลงได้ปกติ แต่พอถึงคราวต้องติดต่อ MS-SQL กลับเกิด Error<span id="more-116"></span></p>
<p>&#8220;Fatal error: Call to undefined function: mssql_connect()&#8221;</p>
<p>วิธีแก้ 2 ขั้นตอน (ถ้าไม่ได้ก็ สวดมนต์คับ)</p>
<ol>
<li> เอา comment ของ extension=php_mssql.dll ออกแล้ว (อยู่ใน php.ini)</li>
<li>ถ้ายังไม่ได้อีก ให้ copy ไฟล์ ntwdblib.dll (อยู่ใน zip ไฟล์ PHP หรือถ้าเราใช้ Appserd ก็อยู่ที่ C:\AppServ\php5) เอาไปไว้ใน C:\WINDOWS\system32 จากนั้น Restart IIS ถ้าไม่ได้ ก็ Restart Windows ซะเลย</li>
</ol>
<p>สุดท้ายท้ายสุด ถ้าไม่ได้ตามไปดูที่ลิงค์นี้ <a href="http://www.memo8.com/toolkits/archives/47" target="_blank">ใช้ Extensions PHP5 บน Windows ไม่ได้ ทำไงดี.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.memo8.com/toolkits/archives/116/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Cannot insert explicit value for identity column in table &#8216;TB_NAME&#8217; when IDENTITY_INSERT is set to OFF.</title>
		<link>http://www.memo8.com/toolkits/archives/115</link>
		<comments>http://www.memo8.com/toolkits/archives/115#comments</comments>
		<pubDate>Sun, 30 Nov 2008 06:43:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MsSQL]]></category>

		<guid isPermaLink="false">http://www.memo8.com/toolkits/archives/115</guid>
		<description><![CDATA[พอดี สร้าง sql ให้ลูกค้าก็ผ่าน SQL Server 2005 Express นะแหล่ะคับ แต่กลับ Insert ข้อมูลไม่ได้ ขึ้น &#8220;Cannot insert explicit value for identity column&#8221; อ่าว งง เลยดิ ไปเจอ Command ให้แก้  identity ให้ Insert ได้ ก็เลยเอามาแป่ะไว้ก่อน
ไอ้ตอน สร้าง ไหงมันไม่เปิด ON ให้เราหว่า ผู้เชี่ยวชาญถ้ามาอ่านเจอฝากตอบด้วยจ้า&#8230; ^_^
SET IDENTITY_INSERT TB_NAME ON
ที่มา http://support.microsoft.com/kb/828945
]]></description>
			<content:encoded><![CDATA[<p>พอดี สร้าง sql ให้ลูกค้าก็ผ่าน SQL Server 2005 Express นะแหล่ะคับ แต่กลับ Insert ข้อมูลไม่ได้ ขึ้น &#8220;Cannot insert explicit value for identity column&#8221; <span id="more-115"></span>อ่าว งง เลยดิ ไปเจอ Command ให้แก้  identity ให้ Insert ได้ ก็เลยเอามาแป่ะไว้ก่อน</p>
<p>ไอ้ตอน สร้าง ไหงมันไม่เปิด ON ให้เราหว่า ผู้เชี่ยวชาญถ้ามาอ่านเจอฝากตอบด้วยจ้า&#8230; ^_^</p>
<pre class="code">SET IDENTITY_INSERT TB_NAME ON</pre>
<p>ที่มา <a href="http://support.microsoft.com/kb/828945" target="_bank">http://support.microsoft.com/kb/828945</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.memo8.com/toolkits/archives/115/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>แก้ปัญหา UTF-8 แสดงเป็น ???????? ใน MS-SQL</title>
		<link>http://www.memo8.com/toolkits/archives/114</link>
		<comments>http://www.memo8.com/toolkits/archives/114#comments</comments>
		<pubDate>Sat, 15 Nov 2008 14:32:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MsSQL]]></category>
		<category><![CDATA[UTF8]]></category>

		<guid isPermaLink="false">http://www.memo8.com/toolkits/archives/114</guid>
		<description><![CDATA[พอดี html ให้ charset เป็น utf-8 แต่แต่ตอนรันแล้ว Insert ข้อมูลที่เป็นภาษาไทยลงใน database เป็นตัวหนังสือดันกลายเป็น &#8216;????????&#8217; อ่อ ! ผมใช้ SQL Server 2005 Express ครับ
วิธีแก้ดังนี้
ให้ตั้งค่าตอนสร้าง Database
1.กำหนด Properties

2.เลือก เมนูOptions เปลี่ยน Collation ไปเป็น Thai_CI_AI 

หรือใช้คำสั่ง
ALTER DATABASE ชื่อฐานข้อมูล COLLATE Thai_CI_AI
ปล. ถ้ายังไม่ได้ให้ Restart เจ้า SQL Server 2005 Express สักครั้งนึง
]]></description>
			<content:encoded><![CDATA[<p>พอดี html ให้ charset เป็น utf-8 แต่แต่ตอนรันแล้ว Insert ข้อมูลที่เป็นภาษาไทยลงใน database เป็นตัวหนังสือดันกลายเป็น &#8216;????????&#8217; อ่อ ! ผมใช้ SQL Server 2005 Express ครับ<span id="more-114"></span><br />
<strong>วิธีแก้ดังนี้</strong><br />
ให้ตั้งค่าตอนสร้าง Database<br />
1.กำหนด Properties<br />
<img src="http://www.memo8.com/content/dev/ms-sql-collation/1.jpg" alt="1" /><br />
2.เลือก เมนูOptions เปลี่ยน Collation ไปเป็น <strong>Thai_CI_AI </strong><br />
<img src="http://www.memo8.com/content/dev/ms-sql-collation/2.jpg" alt="2" /></p>
<p><strong>หรือใช้คำสั่ง</strong></p>
<pre class="code">ALTER DATABASE ชื่อฐานข้อมูล COLLATE Thai_CI_AI</pre>
<p>ปล. ถ้ายังไม่ได้ให้ Restart เจ้า SQL Server 2005 Express สักครั้งนึง</p>
]]></content:encoded>
			<wfw:commentRss>http://www.memo8.com/toolkits/archives/114/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install SQL Server 2005 Express Edition</title>
		<link>http://www.memo8.com/toolkits/archives/109</link>
		<comments>http://www.memo8.com/toolkits/archives/109#comments</comments>
		<pubDate>Sun, 14 Sep 2008 17:53:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MsSQL]]></category>

		<guid isPermaLink="false">http://www.memo8.com/toolkits/archives/109</guid>
		<description><![CDATA[แค่รวมลิงค์ดาวน์โหลดแป่ะไว้กันลืมครับ ไม่ได้บอกขั้นตอนละเอียด


 ติดตั้ง Microsoft SQL Server 2005 Express Edition (ดาวน์โหลดที่นี่)
 ติดตั้ง Microsoft SQL Server Management Studio Express สำหรับจัดการ Database  (ดาวน์โหลดที่นี่)
ถ้าติดปัญหาแตกไฟล์แล้ว setup ไม่ได้ให้ update Windows Installer 3.1   (ดาวน์โหลดที่นี่)

]]></description>
			<content:encoded><![CDATA[<p>แค่รวมลิงค์ดาวน์โหลดแป่ะไว้กันลืมครับ ไม่ได้บอกขั้นตอนละเอียด<span id="more-109"></span></p>
<p style="text-align: center"><img src="http://www.memo8.com/content/dev/mssql-express-2005.jpg" alt="" /></p>
<ol>
<li> ติดตั้ง Microsoft SQL Server 2005 Express Edition <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=4c6ba9fd-319a-4887-bc75-3b02b5e48a40&amp;DisplayLang=en" target="_blank">(ดาวน์โหลดที่นี่)</a></li>
<li> ติดตั้ง Microsoft SQL Server Management Studio Express สำหรับจัดการ Database  <a href="http://www.microsoft.com/downloadS/details.aspx?familyid=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&amp;displaylang=en" target="_blank">(ดาวน์โหลดที่นี่)</a></li>
<li><span style="color: #ff0000;">ถ้าติดปัญหาแตกไฟล์แล้ว setup ไม่ได้</span>ให้ update Windows Installer 3.1   <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=889482FC-5F56-4A38-B838-DE776FD4138C&amp;displaylang=en" target="_blank">(ดาวน์โหลดที่นี่)</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.memo8.com/toolkits/archives/109/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

