Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : sqlserver

OracleÖÐÓëSQLSERVER ISNULLº¯ÊýÏàͬ×÷Óõĺ¯Êý

NVL(Expr1,Expr2)Èç¹ûExpr1ΪNULL£¬·µ»ØExpr2µÄÖµ£¬·ñÔò·µ»ØExpr1µÄÖµ
NVL2(Expr1,Expr2,Expr3)Èç¹ûExpr1ΪNULL£¬·µ»ØExpr2µÄÖµ£¬·ñÔò·µ»ØExpr3µÄÖµ
NULLIF(Expr1,Expr2)Èç¹ûExpr1ºÍExpr2µÄÖµÏàµÈ£¬·µ»ØNULL£¬·ñÔò·µ»ØExpr1µÄÖµ ......

OracleÖÐÓëSQLSERVER ISNULLº¯ÊýÏàͬ×÷Óõĺ¯Êý

NVL(Expr1,Expr2)Èç¹ûExpr1ΪNULL£¬·µ»ØExpr2µÄÖµ£¬·ñÔò·µ»ØExpr1µÄÖµ
NVL2(Expr1,Expr2,Expr3)Èç¹ûExpr1ΪNULL£¬·µ»ØExpr2µÄÖµ£¬·ñÔò·µ»ØExpr3µÄÖµ
NULLIF(Expr1,Expr2)Èç¹ûExpr1ºÍExpr2µÄÖµÏàµÈ£¬·µ»ØNULL£¬·ñÔò·µ»ØExpr1µÄÖµ ......

C#¶ÁÈ¡sqlserver ¶¯»­flash swf Îļþµ½±¾µØÓ²ÅÌ

 using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.IO;
public partial class Default3 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        //°ÑͼƬ±£´æ³ÉÊý¾Ý¿â¶þ½øÖÆÐÎʽ
        Stream ImageStream;
        string Path = FileUpload1.PostedFile.FileName;// ÎļþÃû³Æ
        int Size = FileUpload1.PostedFile.ContentLength; // Îļþ´óС
        string Type = ......

C#¶ÁÈ¡sqlserver ¶¯»­flash swf Îļþµ½±¾µØÓ²ÅÌ

 using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.IO;
public partial class Default3 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        //°ÑͼƬ±£´æ³ÉÊý¾Ý¿â¶þ½øÖÆÐÎʽ
        Stream ImageStream;
        string Path = FileUpload1.PostedFile.FileName;// ÎļþÃû³Æ
        int Size = FileUpload1.PostedFile.ContentLength; // Îļþ´óС
        string Type = ......

.NetÔÚSqlServerÖеÄͼƬ´æÈ¡¼¼Êõ

±¾ÎÄ×ܽáÈçºÎÔÚ.Net WinformºÍ.Net webform(asp.net)Öн«Í¼Æ¬´æÈësqlserverÖв¢¶ÁÈ¡ÏÔʾµÄ·½·¨
1£¬Ê¹ÓÃasp.net½«Í¼Æ¬ÉÏ´«²¢´æÈëSqlServerÖУ¬È»ºó´ÓSqlServerÖжÁÈ¡²¢ÏÔʾ³öÀ´
Ò»£¬ÉÏ´«²¢´æÈëSqlServer
Êý¾Ý¿â½á¹¹
create table test
{
id identity(1,1),
FImage image
}
Ïà¹ØµÄ´æ´¢¹ý³Ì
Create proc UpdateImage
(
@UpdateImage Image
)
As
Insert Into test(FImage) values(@UpdateImage)
GO
ÔÚUpPhoto.aspxÎļþÖÐÌí¼ÓÈçÏÂ:
<input id="UpPhoto" name="UpPhoto" runat="server" type="file">
<asp:Button id="btnAdd" name="btnAdd" runat="server" Text="ÉÏ´«"></asp:Button>
È»ºóÔÚºóÖôúÂëÎļþUpPhoto.aspx.csÌí¼ÓbtnAdd°´Å¥µÄµ¥»÷ʼþ´¦Àí´úÂë:
private void btnAdd_Click(object sender, System.EventArgs e)
{
//»ñµÃͼÏó²¢°ÑͼÏóת»»Îªbyte[]
HttpPostedFile upPhoto=UpPhoto.PostedFile;
int upPhotoLength=upPhoto.ContentLength;
byte[] PhotoArray=new Byte[upPhotoLength];
Stream PhotoStream=upPhoto.InputStream;
PhotoStream.Read(PhotoArray,0,upPhotoLength);
//Á¬½ÓÊý¾Ý¿â
SqlConnection conn=new Sql ......

sqlServer ÖÐ »ñÈ¡ºº×Ö×Ö´®µÄÆ´ÒôÉùĸ

 CREATE        function fGetPy(@str varchar(500)='')
returns varchar(500)
as
begin
    declare @strlen int,@return varchar(500),@ii int
    declare @c nchar(1),@chn nchar(1)
    select @strlen=len(@str),@return='',@ii=0
    set @ii=0
    while @ii<@strlen
    begin
        select @ii=@ii+1,@chn=substring(@str,@ii,1)
      if @chn>='ß¹'
        select @c = char(count(*)+63)  from (
              select top 27 * from (
                    select chn = 'ß¹'
                    union all selec ......

WindowsÏÂSQLServerµÄ¼¯ÈºÅäÖÃ

»ù±¾ÅäÖÃ
Ò»¡¢ÎļþϵͳҪÇó£º
1¡¢ÖÁÉÙÓжþ¸ö·ÖÇø£»
2¡¢ÏµÍ³·ÖÇø²»Ð¡ÓÚ10G£»
3¡¢·ÖÇø¸ñʽ±ØÐëÊÇNTFS¡£
¶þ¡¢²¹¶¡°²×°ÒªÇó£º
1¡¢ÏÈ°²×°Íê±ÏWINDOWS 2000 SP4+³å»÷²¨+Õðµ´²¨²¹¶¡£»
2¡¢½«WINDOWS 2000²¹¶¡Éý¼¶µ½×îкó²Å¿É°²×°cluster ºÍSQL Server£»
3¡¢SQL Server²¹¶¡ÐèÉý¼¶µ½Service Pack 3¡£
Èý¡¢ClusterÐÅÏ¢£º
1£®ClusterÃû³Æ£¬IPµØÖ·1¸ö£»
2£®½ÚµãAÃû³Æ£¬IPµØÖ·2¸ö£¨Ò»¸ö¹«Íø£¬Ò»¸ö˽Íø£©£»
3£®½ÚµãBÃû³Æ£¬IPµØÖ·2¸ö£¨Ò»¸ö¹«Íø£¬Ò»¸ö˽Íø£©£»
4£®SQL ServerÃû³Æ£¬IPµØÖ·1¸ö¡£
Server A
Intel PRO/1000¼¯³É£¨Ç§Õ×Íø¿¨£©×÷¶ÔÍâͨÐÅ£¬µØÖ·£º192.168.1.1
Intel PRO/100 ÓÃ×÷Á½Ì¨Ö÷»úÖ®¼äµÄÐÄÌøÏß IPµØÖ·£º10.10.10.1
Ö÷»úÃûΪ£º SQLC1
Server B
Intel PRO/1000¼¯³É£¨Ç§Õ×Íø¿¨£©×÷¶ÔÍâͨÐÅ£¬µØÖ·£º192.168.1. 2
Intel PRO/100ÓÃ×÷Á½Ì¨Ö÷»úÖ®¼äµÄÐÄÌøÏß IPµØÖ·£º10.10.10.2
Ö÷»úÃûΪ£º SQLC2
 
´æ´¢¿Õ¼ä£¨ÕâÀïÖ¸´ÅÅÌÕóÁУ©·ÖÅä20G¿Õ¼ä
¼¯ÈºÐÅÏ¢£º
IPµØÖ·£º192.168.1.3
NETBIOSÃû£º SQL1
SQL Server 2000ÐÅÏ¢£º
IPµØÖ·£º192.168.1.4
SQLÃû³Æ£ºSQLcluster
Cluster °²×°
°²×°Ç°×¼±¸£º
1¡¢ÔÚ°²×°cluster ·þÎñÇ°½«»úÆ÷¼ÓÈëµ½Óò£¨²»ÊDZØÐèµÄ£©£»
......

sqlserver »¹Ô­µ½Ê±¼äµã

½ñÌìÒ»²»Àä¾²¾Í°ÑsqlserverÊý¾Ý¿â³õʼ»¯ÁË£¬ÔÚÍøÉÏÕÒÁË°ëÌì·¢ÏÖÁ˼¸ÆªÌû×Ó£¬ÊÜÒæ·Çdz£¬¼Ç¼ÏÂ
DB2ÖпÉÒÔʹµÃÊý¾Ý¿â»Ø¸´µ½Ö¸¶¨µÄʱ¼äµã£¬SQL ServerÊý¾Ý¿âµÄRecovery ModelΪfull »òÕßBulk copyµÄʱºò£¬ÊÇ¿ÉÒÔ´ÓÈÕÖ¾À´»Ö¸´Êý¾Ý¿âµÄ¡£Êµ¼ÊÉÏÈÕÖ¾ÖмǼµÄÒ»ÌõÒ»ÌõµÄtransact sqlÓï¾ä£¬»Ö¸´Êý¾Ý¿âµÄʱºò»áredoÕâЩsqlÓï¾ä¡£        Ç°ÌáÌõ¼þ£ºmyBBSÊÇÊý¾Ý¿âtestÖеÄÒ»¸ö±í,Êý¾Ý¿âtestµÄRecovery ModelΪFull,Auto Close,Auto ShrinkÁ½¸öÑ¡ÏîδѡÖС£Êý¾Ý¿âtestµÄdata filesºÍlog files¾ùΪĬÈϵÄ×Ô¶¯Ôö³¤×´Ì¬¡£
 
A£º2004/10/13,16:00½øÐÐÊý¾Ý¿â±¸·Ý£¬backup database test to disk='d:\db\1600.bak' with init
B£º2004/10/14,13:00¶ÔÊý¾Ý¿â½øÐÐÁËupdate,deleteµÈ²Ù×÷£»
C£º2004/10/15,18:00ʹÓÃdelete mybbs where id>300ʱ£¬Óï¾äÎóд³Édelete mybbs,Òò¶øɾ³ýÁ˱ímybbsÖеÄËùÓÐÊý¾Ý¡£
ÏÖÔÚÔÚCµã,Cµã¶ÔÊý¾Ý¿â½øÐÐÁËÎó²Ù×÷£¬ÎÒÃÇÏ£ÍûÊý¾Ý¿âÄܹ»»Ö¸´µ½C֮ǰµÄ״̬£¬±ÈÈç»Ö¸´µ½10ÔÂ15ÈÕ17:59·ÖµÄ״̬¡£
Òª»Ö¸´Êý¾Ý¿âBµã£¬Ê¹ÓõÄÊÇAµã±¸·ÖµÄÊý¾Ý¿â1600.bak£»¶øʹÓõÄÈÕÖ¾±¸·ÖÊÇ×îеı¸·Ö1820.logs£»Òò¶ø½øÐÐÈçϲÙ×÷£º
--±¸·ÖÈÕÖ ......
×ܼǼÊý:341; ×ÜÒ³Êý:57; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [40] [41] [42] [43] 44 [45] [46] [47] [48] [49]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ