相关文章  
  • 教你如何IIS信息服务器排错指南
  • 加固Windows Server 2003 IIS 服务器(1)
  • 用SQL Server为Web浏览器提供图像(三)
  • 用SQL Server为Web浏览器提供图像(四)
  • WEB 系统中加密\解密URL传输参数
  • 使用Windows XP 及IIS 5.1配置Web服务器
  • 让Web站点适应Windows XP Service Pack 2
  • 完美实现个人建站梦想 全面了解IIS组建方法
  • 使用Delphi创建IIS虚拟目录的方法
  • 精心配置IIS打造安全Web服务器
  •   推荐  
      科普之友首页   专利     科普      动物      植物        天文   考古   前沿科技
     您现在的位置在:  首页 >>文献 >>培训

    创建Web部件显示Portal Server的搜索数据4

    E PROCEDURE sp_ReturnFileName
      AS
        DECLARE @dtRetrieveFile datetime,
        @stPrefix char(25),
        @stSuffix char(4),
        @stTemp char(2),
        @stYear char(2),
        @stMonth char(2),
        @stDay char(2)
      
        SET @dtRetrieveFile = DateAdd(d, -1, GetDate())
        -- may include UNC or local path in @stPrefix
        -- change declaration to the number
        -- of characters in @stPrefix
        SET @stPrefix = '\\server_name\share\ex'
        SET @stSuffix = '.log'
       
        -- Get two-digit year
        SET @stYear = Cast(Right(DatePart(yy,@dtRetrieveFile), 2) As char(2))
      
        -- Get two-digit month
        SET @stTemp = Cast(Datepart(mm,@dtRetrieveFile) As char(2))
        SELECT @stMonth =
        CASE Len(@stTemp)
         WHEN 1 THEN '0' + @stTemp

    页码:[1] [2] [3] [4] [5] [6] [7] [8] [9]4页、共9页

         

          设为首页       |       加入收藏       |       广告服务       |       友情链接       |       版权申明      

    Copyriht 2007 - 2008 ©  科普之友 All right reserved