ÔõôÓÃsqlÓï¾ä½¨Á¢±íµÄʱºò°É×Ö¶Î˵Ã÷Ò²¼Ó½øÈ¥£¿
SQL code:
CREATE TABLE aa(
[id] int IDENTITY (1,1) NOT NULL,
[name] varchar(100) NULL,
[pass] varchar(100) NULL,
PRIMARY KEY (id)
)
GO
http://www.cnblogs.com/iinsnian/archive/2008/06/06/1214796.html
SQL code:
--Ϊ×Ö¶Îa1Ìí¼ÓÃèÊöÐÅÏ¢
EXECUTE sp_addextendedproperty N'MS_Description', 'ÐÕÃû', N'user', N'dbo', N'table', N'±í', N'column', N'a1'
sqlÓï¾ä²»ÄÜÔÚÌí¼Ó±íʱÌí¼ÓÃèÊö¡£
²»¹ý¿ÉÒÔ´´½¨±íÒÔºóÓÃϵͳ´æ´¢¹ý³ÌÌí¼ÓÃèÊö¡£
SQL code:
EXEC sp_addextendedproperty N'MS_Description',N'×Ö¶ÎÃèÊö',N'user',N'dbo',N'table',N'±íÃû³Æ',N'column',N'×Ö¶ÎÃû³Æ'
·¹ý£¬Ñ§Ï°¡£¡£¡£
ѧϰÁË£¡ ¶¥Ò»Ï£¡£¡
Ïà¹ØÎÊ´ð£º
Ö´ÐеÄ˳Ðò£º
1£©Îļþä¯ÀÀ¿ò£¨Ñ¡ÔñÎļþʹÓã©
Ñ¡ÔñºÃÎļþºó
µã»÷Ò»¸öµ¼Èë°´Å¥µÄʱºò £¬°ÑÉÏÃæÉÏ´«¿òÀïµÄcsvÎļþÒÔÒ»¸öIDΪÎļþÃû£¬ÉÏ´«µ½**/**Îļþ¼ÐÏÂ
2£©¶ÁÈ¡Õâ¸öÎļþ¼ÐϵÄcsvµÄÎļþ£¬×ª»»³Ésql
3 ......
ÒÑÖª´ÓB,±íÖÐÕÒ³öID, NAMEÁ½ÏîÓëC±íÏàͬµÄÊý¾Ý£¬ÔÙÒÀ¾ÝB±íÖо¹ý²éѯ³öÀ´µÄID,CODEÁ½ÏîÊý¾Ý²éѯÓëA±íID,CODEÁ½ÏîÏàͬµÄÊý¾ÝÖжÔÓ¦µÄEMAILÀ´£¬²¢ÁгöÈçÏÂD±íµÄÐÎʽ£¬²»ÖªÎÒÊÇ·ñ±íʾÇå³þ£¿Âé·³°ïÎÒÁÐһϹ«Ê½ºÃÂð£¿Íò· ......
£¨1£©string ConnString = "server=localhost;integrated security=sspi;database=pubs;";
£¨2£©string strConnection="user uid=sa;pwd=123456;Database=test;Server=test;Connect ......
ÒòΪƽʱÕâÖÖ²Ù×÷±È½Ï¶à£¬Ö±½ÓÔÚÊý¾Ý¿âÉÏÊÖ¶¯ÉèÖÃΣÏÕÐԽϴó£¬ËùÒÔÏëÓÃSQLÓï¾äʵÏÖ¡£
ÔÚÍøÉÏʵÔÚËѲ»µ½½á¹û£¬ÕâÀï¸ßÊֶ࣬ϣÍûÄܵõ½´ð°¸¡£
лл¡£
ÄãÏëÔõ麼設ÖÃ?
SQL code:
--´´½¨²âÊÔ±í
......