create view MC _MYMsgView as select * from ufdata_998_XXXX..MC _MYMsgView
建立视图 CREATE VIEW [dbo].[MC_MYMsgView] AS Select CONVERT(varchar(50),id) AS id,cFromName,cSubject,cBody,cBusStatus,cMsgType,SendDate,cReID from MC_MYMESSAGE union select cmsgid,'系统',cmsgtitle,cmsgcontent,'推送消息','文本',dsend,cReceiver from UFSystem..UA_Message where bHasRead='0'