SQL Server2005 Analysis Servicesչʾ OLAP
ͨ¹ýEXCELµ¼ÈëSSASÏîÄ¿
£¨1£©±¾µØÅäÖÃHTTP
Ö÷Òª²½Ö裺
I£©Ð½¨Ä¿Â¼olap£¬¿½±´Îļþ½« %Installation folder%\OLAP\bin\isapi Ŀ¼µÄÄÚÈÝ£¬Ö÷ÒªÊÇmsmdpump.dllºÍmsmdpump.ini£»
II£©½¨Á¢ÐéÄâĿ¼olap, ÅäÖÃmsmdpump.dll£¬Ä¿Â¼°²È«ÐÔÑ¡ÔñÄäÃû·ÃÎʺÍwindows¼¯³É¡£
http://www.microsoft.com/china/technet/prodtechnol/sql/2005/httpasws.mspx
±¸×¢£ºÐ½¨Ó¦ÓóÌÐò¿âºÍweb·þÎñÀ©Õ¹²»ÊDZØÐë²½Öè
£¨2£©±¾»ú¿ÉÒÔ´ò¿ª£¬µ«ÊDz¿·ÖÔ¶³Ì·þÎñÆ÷ÎÞ·¨´ò¿ª£¬³öÏÖ“ÎÞ·¨Ìṩ½øÒ»²½´íÎ󔣬ÕâÊÇÓÉÓÚÔ¶³Ì¿Í»§¶Ë²»Ö§³Ösql2005·þÎñ£¬ÐèÒª°²×°msxml6.msiºÍSQLServer2005_ASOLEDB9.msi
ÏÂÔØÁ´½Ó£º
http://www.microsoft.com/downloads/details.aspx?FamilyID=993C0BCF-3BCF-4009-BE21-27E85E1857B1&displaylang=zh-cn
http://www.microsoft.com/downloads/details.aspx?FamilyID=50B97994-8453-4998-8226-FA42EC403D17&displaylang=zh-cn
Ïà¹ØÎĵµ£º
sql server 2000µ¼³ö±í½á¹¹
1.
SELECT
±íÃû=case when a.colorder=1 then d.name else '' end,
±í˵Ã÷=case when a.colorder=1 then isnull(f.value,'') else '' end,
×Ö¶ÎÐòºÅ=a.colorder,
×Ö¶ÎÃû=a.name,
±êʶ=case when COLUMNPROPERTY( a.id, ......
begin
for item in (select * from user_constraints a where a.constraint_type = 'R') loop
execute immediate 'alter table ' || item.table_name || ' disable constraint ' || item.constraint_name;
end loop;
end;
/ ......
Ò»Ö±ÒÔÀ´¶ÔÓÚSQLµÄ²éѯ¶¼Ã»ÔõôÔÚÒ⣬½ñÌìÓöµ½Ò»¸ö¹ØÓÚ×óÁ¬½Ó²éѯµÄÎÊÌâ¡£
Select uId ,uName,dpName
from users
left join dpart
on users.pid=1 where u.pid=dpart.pid
½á¹ûÊÇ°ÑusersËùÓнá¹û²éѯ³öÀ´£¬¶ø²»ÊÇpidΪ1µÄÓû§
ÔÀ´onºóÃæ±ØÐë·ÅÁ¬½ÓÌõ¼þ£¬ÆäËûµÄÌõ¼þ·ÅÔÚwhereÀïÃæ
¸ÐлÏÄ»¶Ìá³ö ......
select * into destTbl from srcTbl
insert into destTbl(fld1, fld2) select fld1, 5 from srcTbl
ÒÔÉÏÁ½¾ä¶¼Êǽ« srcTbl µÄÊý¾Ý²åÈëµ½ destTbl£¬µ«Á½¾äÓÖÓÐÇø±ðµÄ£º
µÚÒ»¾ä£¨select into from£©ÒªÇóÄ¿±ê±í£¨destTbl£©²»´æÔÚ£¬ÒòΪÔÚ²åÈëʱ»á×Ô¶¯´´½¨¡£
µÚ¶þ¾ä£¨insert into select from£©ÒªÇóÄ¿±ê±í£¨dest ......