ΪʲôMSSQLÖеÄGUIDÀàÐÍÓÐÁ½¸ö{xxxxxx}µÄ¡£²»·½±ã°¡¡£
µØÖ·´«ÖµµÄʱºòÕâÑùºÃ²»ºÃµÄ£¿
ĬÈÏÊä³öP¸ñʽ
-----------
ĬÈÏÊä³öÊÇB¸ñʽ...
ÉÏÃæ˵ÁË È¡³öÀ´¸ñʽ»¯Ò»ÏÂ
ѧϰÁË.
ÒýÓÃ
ĬÈÏÊä³öP¸ñʽ
-----------
ĬÈÏÊä³öÊÇB¸ñʽ...
µ«ÊÇÓÃC#È¡³öÀ´£¬Ò²ÓС°£û£ý¡±Õâ¸ö´óÀ¨ºÅ£¿
Ê ......
mssqlµÄ´æ´¢¹ý³ÌÀïÔõô»ñµÃÒ»ÌõSQLÓï¾äµÄÖ´ÐÐ״̬Êdzɹ¦»¹ÊÇʧ°Ü£¿ÎÒÏëÔÚÒ»ÕűíÖÐÔö¼Ó¼Ç¼£¬Ê×ÏÈÒª¼ì²éÊÇ·ñÒѾ´æÔÚÏàͬ¼Ç¼£¬Èç¹û´æÔھ͸üУ¬·ñÔò¾Í²åÈë¡£
ÎÒ¾ÍÏëÏÈÊÔÊÔ²åÈë²Ù×÷£¬Ê§°ÜÁ˾ÍÈ¥¸üУ¬»òÕßÏÈÈ¥¸üÐÂʧ°ÜÁ˾ÍÈ¥²åÈë¡£ÎÒ¸ÃÔõô֪µÀµÚÒ»ÌõÓï¾äÊÇ·ñÖ´Ðгɹ¦ÄØ£¿
Ò»¸ö´æ´¢¹ý³Ì´«Èë¶à¸ö²ÎÊý£¬Ôõô֪µÀij¸ö²ÎÊý ......
===================================
ÎÞ·¨Á¬½Óµ½ .¡£
===================================
ÔÚ½¨Á¢Óë·þÎñÆ÷µÄÁ¬½Óʱ³ö´í¡£ÔÚÁ¬½Óµ½ SQL Server 2005 ʱ£¬ÔÚĬÈϵÄÉèÖÃÏ SQL Server ²»ÔÊÐí½øÐÐÔ¶³ÌÁ¬½Ó¿ÉÄܻᵼÖ´Ëʧ°Ü¡£ (provider: ÃüÃû¹ÜµÀÌṩ³ÌÐò, error: 40 - ÎÞ·¨´ò¿ªµ½ SQL Server µÄÁ¬½Ó) ( ......
ÎÒÓÐÒ»Êý¾ÝÊÇ´ÓLMS_DBÊý¾Ý¿â»Ö¸´³ÉÁíÒ»Êý¾Ý¿âERP_DB£¬½á¹û·¢ÏÖERP_DBÊý¾Ý¿âµÄÂß¼ÎļþÃû³Æ»¹ÊÇLMS_DBÃû³Æ£¬ÇëÎÊÔõÑùÐÞ¸ÄMS SQLÊý¾Ý¿âµÄÂß¼ÎļþÃû³Æ?
Ö±½Ó±¸·Ý³öÀ´¸Ä¸öÃû×ÖÊÔÊÔ
ALTER DATABASE
ALTER DATABASE database
MODIFY FILE (NAME = logical_file_name, NEWNAME = new_logical_name...)
......
´úÂëÈçÏ£º
QSqlDatabase dbconn = QSqlDatabase::database( "sqltest ", false);
if(!dbconn.isValid()) {
dbconn &n ......
ÈçºÎ½«ÄÚÈÝΪ¡°2009-07-31 08:06:04.640¡±µÄʱ¼ä×Ö¶ÎÔÚ±£Áôʱ¼äÀàÐ͵ÄÇ°ÌáÏÂת»¯Îª¡°2009-07-31¡±µÄÈÕÆÚ¸ñʽ£¿
SQL code:
select convert(varchar(10),'2009-07-31 08:06:04.640',120)
/*
----------
2009-07-31
(1 個資ÁÏÁÐÊܵ½Ó°響)
*/
SQL code:
select convert(varchar(10),'2009-07-31 ......