วันจันทร์ที่ 26 พฤศจิกายน พ.ศ. 2561

SQL Server 2017 Cannot find one or more components. Please re install the application

เปิดใช้ SQL SERVER แล้วพบ Error Message box : Cannot find one or more components. Please re install the application

1.ถ้าติดตั้งโปรแกรม SQL SERVER อีกครั้งแล้วยังเปิดใช้โปรแกรมไม่ได้
If can not openning program after you re-install SQL SERVER.

2.ถ้าลบ instance name แล้วยังเปิดใช้งานโปรแกรมไม่ได้
If can not openning program after you remove instance name.

3.ถ้าลบ Following Folder ที่ Registry แล้วยังเปิดใช้งานโปรแกรมไม่ได้
If can not openning program after delete Following Folder of Registry.

ให้ดาวน์โหลด Visual Studio Shell 2015
( URL : http://www.visualstudioextensibility.com/downloads/vs-shells/ ) มา แล้วติดตั้งใหม่อีกครั้ง ซึ่งระยะเวลาในการติดตั้งขึ้นอยู่กับทรัพยากรเครื่องนั้นๆ
Download Visual Studio Shell 2015
( URL : http://www.visualstudioextensibility.com/downloads/vs-shells/ ) and Re-install again.

หากติดตั้งVisual Studio Shell 2015 ไม่ได้ให้ตรวจสอบ .Net Framework ของเครื่อง เอา .NetFramework 3.5 ออก ตามภาพด้านล่าง แล้วดับเบิ้ลคลิกเพื่อติดตั้งใหม่อีกรอบ
If can not re-install Visual Studio Shell 2015 make sure .Net Framework 3.5 was disable. Check see picture below.


SQL Server 2017 Remove Instance name

ลบ Instance Name ของ SQL Server 2017
ปล.ในเครื่องลบทั้ง sql server 2017 และ 2008 R2 ใช้วิธีการเดียวกันต่างกันที version ต่อท้าย และถ้าในเครื่องมี instance name มากกว่า 1 instance name ให้รันวิธีการนี้อีกรอบตามจำนวน instance name ที่ต้องการลบ ระยะเวลาที่ใช้ขึ้นอยู่กับทรัพยากรเครื่องนั้นๆ

1. ไปที่ control panel

2. เลือก Uninstall a program


3. choose microsoft sql server 2017 (64 bit)


4. Select Remove on message box


5. Show message and wating


6. Select instance name you want to remove and cilck Next button


7. Select Feature of Instance want to remove and cilck Next button


8. Waiting to preparing


9. Prepare success and click Remove button


10. Remove Processing 


11. Remove Successful !! 
If you have many instance name you must running process for choose your instance name again



วันจันทร์ที่ 9 กรกฎาคม พ.ศ. 2561

CredSSP encryption oracle remediation - error when connecting via Remote Desktop Connection

พบข้อความแสดง Error ตามภาพError Message!!
━━━━━━━━━━━━━━━━━━━━━━━━
~ วิธีแก้ ~
~ How to Fix ~
1. เปิด RUN พิมพ์ "gpedit.msc"
2. Tab ซ้าย Local computer Policy 
> Computer Configuration. > Administrative Templates. > Systems. > Credentials Delegation
 ที่ Tab กลางจะแสดงการตั้งค่าต่างๆ
Settings > ดับเบิ้ลคลิก Encryption Oracle Remediation

3. เลือก สถานะเป็น "Enabled" และ Protection Level เป็น "Vulnerable"


วันพุธที่ 14 มีนาคม พ.ศ. 2561

SQL Server : Delete multiple Stored Procedures in One Database

SELECT 'DROP PROCEDURE [' + SCHEMA_NAME(p.schema_id) + '].[' + p.NAME + ']'
FROM sys.procedures p  WHERE p.name like 'SSIS%'
ORDER BY p.name

SQL Server : Delete all tables in a SQL Server database

DECLARE @Sql NVARCHAR(500) DECLARE @Cursor CURSOR

SET @Cursor = CURSOR FAST_FORWARD FOR
SELECT DISTINCT sql = 'ALTER TABLE [' + tc2.TABLE_NAME + '] DROP [' + rc1.CONSTRAINT_NAME + ']'
FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS rc1
LEFT JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc2 ON tc2.CONSTRAINT_NAME =rc1.CONSTRAINT_NAME

OPEN @Cursor FETCH NEXT FROM @Cursor INTO @Sql

WHILE (@@FETCH_STATUS = 0)
BEGIN
Exec sp_executesql @Sql
FETCH NEXT FROM @Cursor INTO @Sql
END

CLOSE @Cursor DEALLOCATE @Cursor
GO

EXEC sp_MSforeachtable 'DROP TABLE ?'
GO

Windows 10: Windows Update error 0x8024401c

Windows Update Error Message : There were some problems installing updates, but we'll try again later. If you keep seeing this and want to search the web or contact support for information, this may help: (0x8024401c)

2. Download Fix Windows Update program.



 3. Save.


4. When you success download Click run program.
5. Select Next and follow the steps.


วันจันทร์ที่ 26 กุมภาพันธ์ พ.ศ. 2561

Forget user & password Apache Tomcat


   
 1. Go to folder apache tomcat  for example : C:\apache-tomcat-7.0.84\conf 

  
 2. Open file tomcat-users.xml by Notepad


3. Focus tag
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="both" roles="tomcat,role1"/>
<user username="role1" password="role1" roles="role1"/>
Uncomment all tag or add another user and user role 


4. Open command 
go to apache-tomcat-7.0.84\bin 
> shutdown 
 > Enter

5. Open command 
go to apache-tomcat-7.0.84\bin 
 > startup
 > Enter

6. Success.





วันพฤหัสบดีที่ 8 กุมภาพันธ์ พ.ศ. 2561

แก้ Error 500.19 บน IIS


วิธีแก้
1. ไปที่ Control Panel
2. ที่มุมขวาบน เลือก View  by : category
3. ที่หัวข้อ Programs เลือก Uninstall a program
4. ที่แถบซ้ายมือเลือก Turn windows feature on or off
5. ในลิสต์ของ Internet Information Services
     > World Wide Web Services
     > Application Deployment Features
     > เลือก .Net ที่เป็น version ล่าสุด ตามภาพด่านล้าง
     > OK
จากนั้นรอซักครู่ให้ feature โหลดเรียบร้อยแล้วรีเฟรสหน้าเว็บ



Set Enable .Net framework 3.5 on windows 10 (ติดตั้ง .Netframework 3.5 บนวินโดวน์ 10)

1. Download windows 8.1 file [ TH : ดาวน์โหลดไฟล์ ของ windows 8.1 ] 2. Mount File windows Copy file \sources\sxs from mount drive ...