- ต้องการสร้างประโยค insert เพื่อจะนำข้อมูลไปใส่ database server อื่น
- โดยสร้างจาก store procedure นี้
- แต่มีปัญหาเรื่อง charset ของ table นั้นทำให้ ไม่ได้ผลลัพธ์ที่ต้องการ
Error show:
sp_generate_inserts pagename
--INSERTs generated by 'sp_generate_inserts' stored procedure written by Vyas
--Build number: 22 --Problems/Suggestions? Contact Vyas @ vyaskn@hotmail.com --http://vyaskn.tripod.com
SET NOCOUNT ON
PRINT 'Inserting values into [pagename]'
Msg 457, Level 16, State 1, Line 1
Implicit conversion of varchar value to varchar cannot be performed because the collation of the value is unresolved due to a collation conflict.
PRINT 'Done'
SET NOCOUNT OFF
Solving by change collation
Befor
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifeFemdR7j4FuuR_5eOrh1cYHqA9fg1tHtV_aitbcdl3QVyu-rswwbyaKSQCjLzJxcdSH08Fzm0BwAU8V7Aobu8MK1LR6IpFxXPFGZjQYZ404tEOEcUwnJFSNde-K9Pg8tTBokDQ/s400/sshot-1.png)
After
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiywsNRxvMxVayoVf9QTOEkDqp2_ABkeJUV_wX79WePuBu09FzrkVt__MZa7yxzWbYeCyZZvZAMZ3yS6JWxyXFvje5sSbCf-KLGpcScr2zWpkgzQOoEJrIheryO3cMPw_mxISfHHg/s400/sshot-2.png)
Note
- ตอนแรกนึกมีปัญหากับ text type แต่ไม่ใช่
- แต่มีปัญหากับ type image แน่ๆ
No comments:
Post a Comment