View Single Post
ישן 07-08-08, 14:30   # 2
4ior
חבר וותיק
 
4ior's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
הודעות: 1,451

4ior לא מחובר  

לא משנה הסתדרתי..הפתרון:
קוד:
SELECT @Exist=NULL
SELECT @Exist=length from dbo.syscolumns 
WHERE id=object_id('User') and name='Comments'
if (@Exist < 1000)
BEGIN
	ALTER TABLE dbo.User
	ALTER COLUMN Comments nvarchar(1000)
	EXEC sp_RefreshAllViews
End
לכל אלו שלא מבינים..זה בsql server..לא mysql
  Reply With Quote