sqlserver¡¡µÄ¹æÔòruleÈçºÎÀí½â
sqlserver¡¡µÄ¹æÔòruleÈçºÎÀí½â£¬¡¡ÏÂÃæÊÇÒ»¸öʵÀý£¬Çë½áºÏ¸ÃÀý×Ó½âÊÍ£º
ΪĿ±êÊý¾Ý¿â¹ÜÀíϵͳÉè¼ÆÒµÎñ¹æÔò£º
4.2.1 ¹æÔò£º
Ø rule[Sex]
create rule [Sex] as @ in ('ÄÐ','Å®')
GO
Ø rule[TypeHaveChild]
create rule [TypeHaveChild] as @ in ('y','n')
GO
Ø rule[IsSpecial]
create rule [IsSpecial] as @ in ('y','n')
GO
Ø rule[OrderIsConfirm]
create rule [OrderIsConfirm] as @ in ('y','n')
GO
Ø rule[Actor]
create rule [Actor] as @ in('³¬¼¶¹ÜÀíÔ±','Óû§¹ÜÀíÔ±','ÂÛ̳¹ÜÀíÔ±','·þ×°
¹ÜÀíÔ±','¶©µ¥¹ÜÀíÔ±','¹«¸æ¹ÜÀíÔ±')
GO
Ø rule[OrderSendStatus]
create rule [OrderSendStatus
create rule [Sex] as @ in ('ÄÐ','Å®')
´´½¨Ò»¸ö¹æÔòSEXÖµÊÇÄлòÅ®
DZ¹æÔò
Microsoft SQL Server µÄδÀ´°æ±¾Öн«É¾³ý CREATE RULE¡£Çë±ÜÃâÔÚеĿª·¢¹¤×÷ÖÐʹÓà CREATE RULE£¬²¢¼Æ»®Ð޸ĵ±Ç°Ê¹ÓÃËüµÄÓ¦ÓóÌÐò¡£½¨ÒéÄú¸ÄÓüì²éÔ¼Êø¡£¼ì²éÔ¼ÊøÊÇʹÓà CREATE TABLE »ò ALTER TABLE µÄ CHECK ¹Ø¼ü×Ö´´½¨µÄ¡£
ѧϰ
Ïà¹ØÎÊ´ð£º
Êý¾Ý10WÌõÒÔÉÏ,wm6.5ƽ̨,ÄÚ´æÓÐÏÞ
C# code:
private void connserver()
{
Cursor.Current = Cursors.WaitCursor;
try
{
......
sqlserverÓÐûÓÐÏóoracleÄÇÑù¿ÉÒÔtest´æ´¢¹ý³Ì ,µ¥²½µ÷ÊÔ.²»Ó¦¸ÃûÓаÑ,ÎÒÔõôûÕÒµ½ÄØ? Òª²»È»ÉÔ΢³¤µãµÄ´æ´¢¹ý³ÌÔõôµ÷ÊÔÄØ?
ºÃÏóûÓÐ.
ûÓаÉ
ÓУ¬²éѯ·ÖÎöÆ÷ÖÐÓÒ¼ü´æ´¢¹ý³Ì£¬µ¥²½µ÷ÊÔ
°Ù¶ÈÉÏÈ¥ÕÒһϠ......
±ÈÈç ´«½øÀ´µÄ×Ö·û´®ÊÇ ¡®12/sep/2009 12£º52£º20¡¯ Ö±½ÓÓÃcast»á±¨´í¡£
¶øÇÒÖмäµÄÔ·ÝÒ²²»¹Ì¶¨ ¡£Ôõôת»»³ÉÈÕÆÚÐ͵ÄÄØ
ÓÃÒ»¸ö±í¼Ç¼1-12Ô·ݣ¡
Ö±½Óת»»ÊDz»ÐÐÁË ²ð·Ö ³öÔÂÀ´ÅжÏÁË
¡®12/sep/2009 12£º ......
xp(sp3)ϵͳ°²×°ÁËsqlserver2000£¬sp3£¬sp4²¹¶¡¶¼´òÁË¡£¶øÇÒ±¾»úÒ²ÄÜÁ¬½Ó·ÃÎÊ¡£
ÎÊÌâÊÇ£º
±¾»útelnet ip 1433 ×ÜÊÇÌáʾÁ¬½Óʧ°Ü£¬
¶øÇÒnetstat -naʱ£¬¿´²»µ½1433¶Ë¿Ú±»Õ¼ÓÃ
(¿Ï¶¨µÄÊÇ£º¶Ë¿ÚÊÇ1433£¬¿ªÆ ......
¸÷λ´óÏÀ£¬sqlserver Êý¾Ý¿âËÀËøºó£¬»á²»»á×Ô¶¯½âËøÄØ£¿¶à³¤Ê±¼äÄÜ×Ô¶¯½âËøÄØ£¿Ð»Ð»£¡
SQL code:
use master
go
create procedure sp_who_lock
as
begin
declare @spid int,@bl int,
@intTransactionCountO ......