| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> mssql >> zai SQL Server zhong tong guo .NET yuan cheng de zhi xing SQL wen jian
 

zai SQL Server zhong tong guo .NET yuan cheng de zhi xing SQL wen jian

2008-08-29 06:38:33 编辑來源:互联网 评论
 
本文为【在SQL Server中通过.NET远程的执行SQL文件】的拼音翻译版
  zai xiang mu kai fa guo cheng zhong , cao zuo shu ju ku de guo cheng zhong jing chang hui yu dao dui biao jie gou 、 cun chu guo cheng deng jin xing xiu gai , zhe shi yi ban de cao zuo dou shi tong guo zhi jie zai SQL Server zhong de qi ye guan li qi jin xing cao zuo , huo zhe cha xun fen xi qi li lai zhi xing xiang guan de yu ju , er wo men zai shi ji ying yong zhong wei le an quan , yi ban neng jin ke neng shao de jie chu shu ju ku fu wu qi , ru guo dui shu ju ku fang mian ru guo you zhe liang hao de bian cheng feng ge de shi hou , wo men yi ban dui hui dui suo geng gai de sheng cheng yi ge SQL wen jian , er tong guo .NET cheng xu lai jin xing shu ju biao ji cun chu guo cheng de geng xin jiu hui you geng fang bian de cao zuo xing le 。
  shou xian wo men xu yao ba SQL wen jian chuan dao dui ying de WEB mu lu zhong , zui hao shi ba zhe ge wen jian kao bei dao yi ge yuan cheng yong hu bu yi fang wen de shou bao hu de di fang 。
  wei ruan de SQL Server chan pin zu yi jing bian xie hao le zhe ge cao zuo ye mian , tong guo fang wen http://www.codeplex.com/sqlhost/Wiki/View.aspx?title=UploadAndExecute zhe ge ye mian , jiu ke yi kan dao RunSQL.aspx zhe ge lian jie , dian ji ta jiu ke yi xia zai le yi ge ming wei FileDownload.aspx de ye mian , zai dai ma zhong wo men ke yi kan dao yi jing ding yi de liang ge shen shu , dai ma ru xia :
  
  // Url of the T-SQL file you want to run
  string fileUrl = @"http://<>/<>.sql";
  // Connection string to the server you want to execute against
  string connectionString = @"<>";
  fileUrl dai biao shang chuan SQL wen jian de cun fang lu jing di zhi he ming cheng ,connectionString dai biao shu ju ku lian jie zi fu chuan , ran hou xu yao ba FileDownload.aspx shang chuan dao fu wu qi de WEB mu lu xia , xu yao zhi jie neng tong guo yu ming fang wen dao 。
  ran hou tong guo liu lan qi fang wen yuan cheng de FileDownload.aspx wang ye , zhe shi hou yuan cheng fu wu qi shang de ye mian hui fen xi .SQL wen jian , bing qie zhi xing qi zhong de suo you SQL yu ju 。 zhi xing cheng gong hou , hui ti shi “T-SQL file executed successfully”, fou ze hui ti shi ju ti de cuo wu xin xi 。
  wei le an quan , yun xing wan SQL jiao ben wen jian hou , ba FileDownload.aspx wang ye he SQL wen jian cong yuan cheng fu wu qi shang shan chu 。
  ru guo wo men xu yao bao liu zhe ge gong neng , er qie zai wei hu de shi hou ke neng hui jing chang cao zuo yi xie SQL yu ju zu , zhe shi hou , wo men ke yi dui FileDownload.aspx gai zao yi xia , zhe shi hou ke yi zuo yi xia ji ge gai jin :
  1) zeng jia quan xian bu fen gong neng , jin zhi fei fa yong hu fang wen ci ye mian , ru zhi yuan xu hou tai guan li yuan jin xing cao zuo ;
  2) ke yi tong guo hou tai chuan ben di de SQL wen jian , shang chuan dao fu wu qi zhi ding mu lu , ran hou ci ye mian tong guo dong tai du qu ci wen jian ;
  3) dui shu ju ku lian jie zi fu chuan ye cai yong du qu WEB.CONFIG xing shi , bian yu shu ju ku de tong yi guan li 。
  gan xing qu de du zhe ke yi an ci jin xing jin yi bu de kuo chong 。 zhe yang jiu tong guo .NET jian cheng le yi ge fei chang ling huo de shu ju ku cao zuo ye mian le , zhe yang wo men zai mei yi ci dui chan pin jin xing sheng ji huo zhe da bu ding shi hou , dui shu ju ku fang mian de cao zuo , wo men jiu ke yi jian li yi ge zheng ge de SQL wen jian jin xing wei hu le 。【原文】【汉音对照
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
zai xiang mu kai fa guo cheng zhong , cao zuo shu ju ku de guo cheng zhong jing chang hui yu dao dui biao jie gou 、 cun chu guo cheng deng jin xing xiu gai , zhe shi yi ban de cao zuo dou shi tong guo zhi jie zai SQL Server zhong de qi ye guan li qi jin xing cao zuo , huo zhe cha xun fen xi qi li lai zhi xing xiang guan de yu ju , er wo men zai shi ji ying yong zhong wei le an quan , yi ban neng jin ke neng shao de jie chu shu ju ku fu wu qi , ru guo dui shu ju ku fang mian ru guo you zhe liang hao de bian cheng feng ge de shi hou , wo men yi ban dui hui dui suo geng gai de sheng cheng yi ge SQL wen jian , er tong guo .NET cheng xu lai jin xing shu ju biao ji cun chu guo cheng de geng xin jiu hui you geng fang bian de cao zuo xing le 。 shou xian wo men xu yao ba SQL wen jian chuan dao dui ying de WEB mu lu zhong , zui hao shi ba zhe ge wen jian kao bei dao yi ge yuan cheng yong hu bu yi fang wen de shou bao hu de di fang 。 wei ruan de SQL Server chan pin zu yi jing bian xie hao le zhe ge cao zuo ye mian , tong guo fang wen http://www.codeplex.com/sqlhost/Wiki/View.aspx?title=UploadAndExecute zhe ge ye mian , jiu ke yi kan dao RunSQL.aspx zhe ge lian jie , dian ji ta jiu ke yi xia zai le yi ge ming wei FileDownload.aspx de ye mian , zai dai ma zhong wo men ke yi kan dao yi jing ding yi de liang ge shen shu , dai ma ru xia : // Url of the T-SQL file you want to run   string fileUrl = @"http://<>/<>.sql";   // Connection string to the server you want to execute against   string connectionString = @"<>"; fileUrl dai biao shang chuan SQL wen jian de cun fang lu jing di zhi he ming cheng ,connectionString dai biao shu ju ku lian jie zi fu chuan , ran hou xu yao ba FileDownload.aspx shang chuan dao fu wu qi de WEB mu lu xia , xu yao zhi jie neng tong guo yu ming fang wen dao 。 ran hou tong guo liu lan qi fang wen yuan cheng de FileDownload.aspx wang ye , zhe shi hou yuan cheng fu wu qi shang de ye mian hui fen xi .SQL wen jian , bing qie zhi xing qi zhong de suo you SQL yu ju 。 zhi xing cheng gong hou , hui ti shi “T-SQL file executed successfully”, fou ze hui ti shi ju ti de cuo wu xin xi 。 wei le an quan , yun xing wan SQL jiao ben wen jian hou , ba FileDownload.aspx wang ye he SQL wen jian cong yuan cheng fu wu qi shang shan chu 。 ru guo wo men xu yao bao liu zhe ge gong neng , er qie zai wei hu de shi hou ke neng hui jing chang cao zuo yi xie SQL yu ju zu , zhe shi hou , wo men ke yi dui FileDownload.aspx gai zao yi xia , zhe shi hou ke yi zuo yi xia ji ge gai jin : 1) zeng jia quan xian bu fen gong neng , jin zhi fei fa yong hu fang wen ci ye mian , ru zhi yuan xu hou tai guan li yuan jin xing cao zuo ; 2) ke yi tong guo hou tai chuan ben di de SQL wen jian , shang chuan dao fu wu qi zhi ding mu lu , ran hou ci ye mian tong guo dong tai du qu ci wen jian ; 3) dui shu ju ku lian jie zi fu chuan ye cai yong du qu WEB.CONFIG xing shi , bian yu shu ju ku de tong yi guan li 。 gan xing qu de du zhe ke yi an ci jin xing jin yi bu de kuo chong 。 zhe yang jiu tong guo .NET jian cheng le yi ge fei chang ling huo de shu ju ku cao zuo ye mian le , zhe yang wo men zai mei yi ci dui chan pin jin xing sheng ji huo zhe da bu ding shi hou , dui shu ju ku fang mian de cao zuo , wo men jiu ke yi jian li yi ge zheng ge de SQL wen jian jin xing wei hu le 。
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
温柔美女韩雪写真
杨幂全新写真
网易红人PLMM草梅队长
河智苑Compagna09春装
看 这就是我的学校
惠山古迹区
雪后看花仙
元宵烟火
 
>>返回首页<<
 为你推荐
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
©2005- 王朝网络 版权所有