2011-12-12 31 views

回答

0

CurrentCEUserName從連接到Business Objects資源庫服務器時使用的憑據獲取當前用戶名。

如果您希望從使用Windows身份驗證進行連接的SQL Server獲取當前用戶,則必須將用戶名值從SQL Server返回到Crystal Report。

e.g

Select SUser_SName() as [CurrentUser], 
     Column1, 
     Column2, 
     etc.. 

From dbo.YourTable