Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

SQL Server 2005°²×°Ê§°ÜµÄ´¦Àí·½·¨

ÔÚ°²×°SQL Server 2005¿ª·¢°æʱ³öÏÖÎÊÌâ¡£°²×°»·¾³Îªwindows xp sp3£¬°²×°Óû§Ê¹Ó󬼶¹ÜÀíÔ±£¨Administrator£©¡£³öÏֵĴíÎóÊÇ
ÔÚ°²×°“Integration Services”²½Öèʱ³öÏÖ°²×°´íÎó£¬Ìáʾ“´íÎó: -2146233087”¡£
´íÎó¼Ç¼
±êÌâ:
Microsoft SQL Server 2005 °²×°³ÌÐò
ÎÞ·¨ÔÚ COM+ Ŀ¼Öа²×°ºÍÅäÖóÌÐò¼¯
C:“Program Files“Microsoft SQL
Server“90“DTS“Tasks“Microsoft.SqlServer.MSMQTask.dll¡£´íÎó: -2146233087
´í
ÎóÏûÏ¢: Unknown error 0x80131501
´íÎó˵Ã÷: ÒªÖ´ÐдËÈÎÎñ£¬Äú±ØÐë¾ßÓйÜÀíƾ¾Ý¡£ÇëÓëÄúµÄϵͳ¹ÜÀíÔ±ÁªÏµÒÔ»ñµÃ°ïÖú¡£
½â¾ö°ì·¨£º
Ò»£®MSDTCÔËÐÐÕÊ»§ÎÊÌâ
È·ÈÏMSDTC ·þÎñÕýÔÚÔËÐУ¬²¢ÇÒÆäÆô¶¯ÕÊ»§ÊÇNT AUTHORITY“Network
Service”¡£°´ÕÕÒÔϲ½ÖèÀ´¼ì²é£º
1. “¿ªÊ¼”-“ÔËÐД-services.msc
2.
ÔÚ·þÎñÁбíÖÐÕÒµ½Distributed Transaction Coordinator£¬Ë«»÷ÒÔÆäÊôÐÔ
3.
ÔÚÊôÐÔ´°¿ÚÇл»ÖÁµÇ¼ѡÏ£¬È·ÈÏÆäÆô¶¯ÕʺÅΪ”NT AUTHORITY“Network Service”
4.
Æô¶¯DTC·þÎñÔÙ³¢ÊÔ°²×°SQL Server 2005
½á¹û£ºÕâ¸ö²½ÖèÎÒÒѾ­³¢ÊÔ¹ý£¬²»ÊÇÕâ¸öÎÊÌâ¡£
¶þ£®·ÖÎöSQL
Server 2005°²×°ÈÕÖ¾
½«C:“Program Files“Microsoft SQL Server“90“Setup
Bootstrap“LOG“Ŀ¼ÏÂËùÓеÄÎļþ·¢Ë͸ø΢Èí¼¼ÊõÖ§³Ö¹¤³Ìʦ½øÐзÖÎö¡£
½á¹û£ºÕâ¸ö²½ÖèÎÒûÓÐ×ö¹ý£¬²»¹ý΢Èí¹¤³ÌʦºÃÏñҲûÓз¢
ÏÖÏßË÷¡£
Èý£®COPY°²×°³ÌÐòµ½Ó²ÅÌ°²×°³¢ÊÔ
½¨Á¢ D:“SQLServer2005 Îļþ¼Ð£¬
´´½¨ÒÔÏÂÁ½¸ö×ÓÎļþ¼Ð£ºServersºÍTools¡£ServiersÎļþ¼Ð¿½±´SQL Server2005µÄµÚÒ»ÕÅ°²×°ÅÌ£¬°üº¬ËùÓÐÒª°²×°Ö÷ SQL
Server 2005 ×é¼þ¡£ ToolsÎļþ¼Ð¿½±´SQL Server 2005µÄµÚ¶þÕÅÅÌ£¬°üº¬Îª SQL Server 2005
Áª»ú´ÔÊéºÍ¹¤¾ß×é¼þ¡£ÔËÐÐD:“SQLServer2005“Servers Îļþ¼ÐϵÄSetup.exe£¬Æô¶¯ SQL Server 2005
°²×°³ÌÐò¡£
½á¹û£ºÒÔÉÏ·½Ê½°²×°¹ý³ÌÖл¹ÊÇÅöµ½Í¬ÑùµÄÎÊÌâ¡£
ËÄ£®ÖØа²×° COM+Ó¦ÓóÌÐò
1.´Ó¿ØÖÆÃæ°åµÄ
“Ìí¼Ó»òɾ³ý³ÌÐò”ÖУ¬µ¥»÷“Ìí¼Ó/ɾ³ý Windows ×é¼þ”¡£
2£®ÔÚ“Windows
×é¼þÏòµ¼”ÖУ¬²»¶ÔÑ¡Ôñ×öÈκθü¸Ä£¬µ¥»÷“ÏÂÒ»²½”¡£Ò»Ö±µ¥»÷ÒÔÍê³ÉÏòµ¼£¬È»ºóÔÙ´ÎÔËÐÐ SQL Server 2005 °²×°³ÌÐò¡£
½á
¹û£ºÎÊÌâûÓнâ¾ö¡£
ͨ¹


Ïà¹ØÎĵµ£º

½â¾öSQL ServerÀïsp_helptextÊä³ö¸ñʽ´íÐÐÎÊÌâ

use Master 
go 
if object_id('SP_SQL') is not null 
  drop proc SP_SQL 
go 
create proc [dbo].[SP_SQL](@ObjectName sysname) 
as 
set nocount on ; 
declare @Print varchar(max) 
if exists(select 1 from syscomments  where ID=objec ......

SQL/PLUS



4£®Êý¾ÝÀàÐÍת»»º¯Êý
   ¡ñÒþʽת»»
     ¸³ÖµÊ±¿É½øÐеÄÒþʽת»»ÓÐ
       VARCHAR2»òCHAR —¡µNUMBER
       VARCHAR2»òCHAR —¡µDATE
       NUMBER —¡µVARCHAR ......

¡¾SQL SERVERÖÐһЩÌرðµØ·½µÄÌرð½â·¨2¡¿


/*----------------------------------------------------------------
-- Author  :feixianxxx(poofly)
-- Date    :2010-04-20 20:10:41
-- Version:
--      Microsoft SQL Server 2008 (SP1) -  ......

sql²éѯÁ·Ï°

Àý 34  ÕÒ³öÄêÁ䳬¹ýƽ¾ùÄêÁäµÄѧÉúÐÕÃû¡£
SELECT SNAME
from STUDENTS
WHERE AGE £¾
      (SELECT  AVG(AGE)
        from   STUDENTS)
Àý 35  ÕÒ³ö¸÷¿Î³ÌµÄƽ¾ù³É¼¨£¬°´¿Î³ÌºÅ·Ö×飬ÇÒֻѡÔñѧÉú³¬¹ý 3 ÈËµÄ¿Î³ÌµÄ³É ......

sql×¢Èë


ÅжÏÊý¾Ý¿âÀàÐÍ
(select count(*) fromsysobjects)>0  //sqlÊý¾Ý¿â
(select count(*) from msysobjects)>0 //accessÊý¾Ý¿â
µÃµ½SqlÓû§Ãû
 user>0
Conversion failed when converting the nvarchar value 'dbo' to data type int.
Öع¹SQLÓï¾ä
ÕûÊýÐÍ
(A) ID=49 ID=49 And [ ²éѯÌõ¼þ] £¬¼´Ê ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ