我需要在 SQL Server 2008 中执行 SQL Server 2005 生成的数据库查询(主要是存储过程)。在执行此过程时我需要记住什么...?
当我执行上述过程时,脚本不会执行...
请帮我解决这个问题
尼莱什·佩塔尼
很抱歉在评论中包含代码...
这是我用来在没有任何 SET 命令的情况下执行的示例过程,但它仍然无法正常工作......
CREATE PROCEDURE [dvx_web_MICROSITES_LoadMicrosites]
AS
BEGIN
SELECT
microsite_id AS ID,
url as URL,
[name] as [Name],
catery_id as CateryID,
catery_code as CateryCode,
banner_key as Banner,
main_banner_key as MainBanner,
special_zone_id as SpecialZone,
homepage_url as MainLink,
active as Active,
custom_01 as Custom01,
custom_02 as Custom02,
custom_03 as Custom03,
custom_04 as Custom04,
custom_05 as Custom05
FROM
Microsites
WHERE
Active = 1
ORDER BY [Name] ASC
END