花蜻宽 发表于 2018-10-18 10:54:12

[翻译]通过WebService调用SQLXML(SQL Server 2005)

CREATE PROCEDURE .  @fromDate datetime,
  @toDate datetime
  AS
  BEGIN
  select    dbo.Story.id,
  description,
  notes,
  text,
  publicationdate,
  authorsnames,
  keywords
  from      dbo.Story
  inner join dbo.Status on dbo.Story.StatusId = dbo.Status.id
  where   publicationdate between @fromDate and @toDate
  and dbo.Status.status = 'live'
  order by publicationDate
  FOR         XML PATH('story'),
  ROOT('stories')
  END

页: [1]
查看完整版本: [翻译]通过WebService调用SQLXML(SQL Server 2005)