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

ʹÓÃc#´´½¨sql serverµÄ´æ´¢¹ý³Ì_c#Ó¦ÓÃ1

½éÉÜ
ͨ³££¬Ñз¢ÈËԱʹÓõÄÊÇT-SQLÀ´´´½¨SQL ServerµÄ´æ´¢¹ý³Ì¡¢º¯ÊýºÍ´¥·¢Æ÷¡£ ¶øÏÖÔÚµÄSQL Server 2005ÒÑÍêÈ«Ö§³Ö.NETͨÓÃÓïÑÔÔËÐÐʱ£¨CLR£©ÁË¡£ Õâ¾ÍÒâζ×Å£¬ÄúÄܹ»Ê¹ÓÃ.NETµÄÓïÑÔ£¬ÈçC#¡¢VB.NETÖ®ÀàµÄÀ´Ñз¢SQL ServerµÄ´æ´¢¹ý³Ì¡¢º¯ÊýºÍ´¥·¢Æ÷¡£ SQL Server ºÍ CLR µÄ¼¯³É¸øÎÒÃÇ´øÀ´ÁËn¶àºÃ´¦£¬Èçʵʱ±àÒë¡¢ÀàÐÍ°²È«¡¢ÔöÇ¿µÄ°²È«ÐÔÁ¬Í¬ÔöÇ¿µÄ±à³ÌÄ£Ð͵ȡ£ ±¾ÎÄÖУ¬ÎÒ½«Ïò´ó¼ÒÑÝʾÈçºÎʹÓÃC#´´½¨SQL ServerµÄ´æ´¢¹ý³Ì¡£ .
±³¾°
ÎÒÃÇÔÚʹÓÃSQL Server´æ´¢¹ý³Ìʱ£¬×î³£×öµÄ¹¤×÷¾ÍÊÇ´ÓÊý¾Ý¿âÖжÁÈ¡»ò±£´æÊý¾Ý¡£ Æä³£ÓÃÓ¦ÓÃÈçÏ£º
·Ö´ÐÐһЩ¼òµ¥µÄÂß¼­£¬Ã»ÓÐÈκηµ»ØÖµ¡£ ҲûÓÐÊä³ö²ÎÊý¡£
·Ö´ÐÐһЩÂß¼­£¬²¢Í¨¹ýÒ»¸ö»ò¸ü¶àµÄÊä³ö²ÎÊý·µ»Ø½á¹û¡£
·Ö´ÐÐһЩÂß¼­£¬²¢·µ»Ø´Ó±íÖжÁÈ¡µÄÒ»Ìõ»ò¶àÌõ¼Ç¼¡£
·Ö´ÐÐһЩÂß¼­£¬²¢·µ»ØÒ»Ðлò¶àÐмǼ¡£ ÕâЩ¼Ç¼²»ÊÇ´Ó±íÖжÁÈ¡µÄ£¬¶øÊÇÄú×Ô¶¨ÒåµÄһЩÊý¾ÝÐС£ ¸ù¾Ýר¼Ò¹Û²ì£¬ÕâÑùµÄÀíÂÛºÍÏÖÏó¶¼ÊÇÖµµÃ¸÷λվ³¤Éî˼µÄ£¬ËùÒÔÏ£Íû´ó¼Ò¶à×öÑо¿Ñ§Ï°£¬ÕùÈ¡×ܽá³ö¸ü¶à¸üºÃµÄ¾­Ñé!
ΪÁËÑÝʾÈçºÎÓÃC#Ñз¢³öÕ⼸ÖÖÓ¦ÓõÄSQL Server´æ´¢¹ý³Ì£¬ÎÒ½«Ò»¸öÒ»¸öµØ¾Ù³öʾÀý¡£ .
ÆôÓÃCLR¼¯³É
ÔÚÄú¿ªÊ¼ÓÃC#д´æ´¢¹ý³Ì֮ǰ£¬±ØÐëÒªÆôÓÃÄúµÄSQL ServerµÄCLR¼¯³ÉÌØÐÔ¡£ ĬÈÏÇé¿öËûÊDz»ÆôÓõġ£ ´ò¿ªÄúµÄSQL Server Management Studio²¢Ö´ÐÐÈçϽű¾¡£
sp_configure clr enabled, 1
GO
RECONFIGURE
GO
ÕâÀÎÒÃÇÖ´ÐÐÁËϵͳ´æ´¢¹ý³Ì“sp_configure”£¬ÎªÆäÌṩµÄÁ½¸ö²ÎÊý·Ö±ðΪ£º“clr enabled”ºÍ“1”¡£¼ÙÈçҪͣÓÃCLR¼¯³ÉµÄ»°Ò²ÊÇÖ´ÐÐÕâ¸ö´æ´¢¹ý³Ì£¬Ö»µ«Êǵڶþ¸ö²ÎÊýÒª±äΪ“0”¶øÒÑ¡£ÁíÍ⣬ΪÁËʹеÄÅäÖòúÉúЧ¹û£¬²»ÒªÍü¼Çµ÷ÓÓRECONFIGURE”¡£ ¡£
SQL Server씀ÏÖÔÚ´ò¿ªVisual Studio£¬²¢´ÓÎĵµ²Ëµ¥ÖÐÑ¡Ôñ“н¨ÏîÄ¿”¡£ Ôړн¨ÏîÄ¿”¶Ô»°¿òÖÐÑ¡Ôñ“Visual C#”ϵēDatabase”¡£ È»ºóÑ¡Ôñ“SQL ServerÏîÄ¿”Ä£°å¡£ .¡¡
ÆðºÃÏîÄ¿Ãû³Æºó¾Íµ¥»÷“È·¶¨”°´Å¥¡£ .
ºÜ¿ì£¬ÄúËù´´½¨µÄÏîÄ¿¾ÍÐèÒªÄúÑ¡ÔñÒ»¸öSQL ServerÊý¾Ý¿â¡£ ³É¹¦µÄÈËÉú£¬ÐèÒª×Ô¼ºÈ¥¾­Óª£¬±ðÔÙ˵ÁË£¬ÄªÔÙµÈÁË£¬ÏÖÔÚ¾ÍΪ×Ô¼ºµÄÈËÉú×öºÃ¹æ»®£¬ÎªÈËÉúµãÁÁÒ»ÕµÃ÷µÆ£¬Ó®ÔÚÈËÉúÆðÅܵãÉÏ¡£
°´ÕÕÌáʾһ²½Ò»²½µØ×ö¾ÍºÃÁË£¬¾ÍËãÄúÑ¡ÔñÁËÈ¡Ïû£¬Ò²Äܹ»ÔÚ“ÏîÄ¿”–“ÊôÐÔ”¶Ô»


Ïà¹ØÎĵµ£º

C#ÓëFlash½»»¥

C#ÓëFlash½»»¥ £¨×ª×ÔСÀÚÔÚÏߣ©
C#ÓëFlash½»»¥
Ç°¶ÎÈÕ×Ó¹«Ë¾ÒªÇó×öÒ»¸öC#ÓëFlash½»»¥µÄ¶«Î÷£¬ÓÃÀ´C#Óë¶ÌÐÅèͨѶ½«Êý¾Ý´«µ½FlashÉÏÏÔʾÓë²Ù×÷µÄÓ¦Óá£
µÚÒ»²½C#Ìí¼Ó×é¼þ
´ò¿ªVS2005-¹¤¾ß-Ñ¡Ôñ¹¤¾ßÏäÏî-COM×é¼þ-Ñ¡ÔñShockwave Flash Object-È·¶¨
Ìí¼ÓºÃ×é¼þÍù³¡¾°ÉÏÍÏ·Å£¬Èç¹ûÌáʾע²áÐèÇó×¢²á
c# ×¢²á¿Ø¼þ-ÔÚÔËÐÐÊä ......

C»·¾³½«±äÁ¿¶¨Òåµ½RAM¾ø¶ÔµØÖ·Ö®ÉÏ


//À´Ô´²»Ïê
1. ¾ø¶Ôºê£º
ÔÚ³ÌÐòÖУ¬ÓÓ££include<absacc.h>”¼´¿ÉʹÓÃÆäÖж¨ÒåµÄºêÀ´·ÃÎʾø¶ÔµØÖ·£¬°üÀ¨CBYTE¡¢XBYTE¡¢PWORD¡¢DBYTE¡¢CWORD¡¢XWORD¡¢PBYTE¡¢DWORD
¾ßÌåʹÓÿɿ´Ò»¿´absacc.h±ãÖª£¬ÀýÈ磺
rval=CBYTE[0x0002];Ö¸Ïò³ÌÐò´æÖüÆ÷µÄ0002hµØÖ·
rval=XWORD[0x0002];Ö¸ÏòÍâRAMµÄ0002hµØÖ·
2 ......

Ò»¸öC²¡¶¾ !

//Á¬½ÓÍ·Îļþ
#include <io.h>
#include <dir.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//¿½±´ÎļþÄ£¿é
int copyfile (char *infile, char *outfile)
{
    FILE *in,*out; //¶¨ÒåÎļþÖ¸Õë
    in = fopen(infile,"r"); //´ ......

³£ÓÃSQL²éѯÓï¾ä

DDL—Êý¾Ý¶¨ÒåÓïÑÔ(CREATE£¬ALTER£¬DROP£¬DECLARE)
¡¡¡¡DML—Êý¾Ý²Ù×ÝÓïÑÔ(SELECT£¬DELETE£¬UPDATE£¬INSERT)
¡¡¡¡DCL—Êý¾Ý¿ØÖÆÓïÑÔ(GRANT£¬REVOKE£¬COMMIT£¬ROLLBACK)
¡¡¡¡Ê×ÏÈ,¼òÒª½éÉÜ»ù´¡Óï¾ä£º
¡¡¡¡1¡¢ËµÃ÷£º´´½¨Êý¾Ý¿â
CREATE DATABASE database-name
¡¡¡¡2¡¢ËµÃ÷£ºÉ¾³ýÊý¾Ý¿â
drop database ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ