功能每30天运行一次[关闭](Function to Run every 30 days [closed])
Web应用程序将在共享主机上,因此我将无法访问服务器的根目录。 我正在为此Web应用程序使用
Asp.net MVC5 (C#)
和SQL Server 2012
。 我想运行一个函数或任务,每30天运行一次,以便在特定日期之前删除SQL表的一些记录。 我想知道什么是共享主机的最佳解决方案。
- Windows任务计划程序
- Windows服务
- SQL作业
- 像Jeff Atwood这样的东西建议在本文中使用cookies
- Schedule Table(检查global.asax Application_Start中的执行日期并调用函数)
我正在寻找一个更好的共享主机解决方案。 请建议。 谢谢
Web application will be on shared hosting, so I won't have any access to the root of the server. I am using
Asp.net MVC5 (C#)
andSQL Server 2012
for this web app. I want to run a function or task to run every 30 days to delete some records for SQL table before a specific date. I want to know what is the best solution for the shared hosting.
- Windows Task Scheduler
- Windows Service
- SQL Jobs
- Somthing like Jeff Atwood proposed using cookies in this article
- Schedule Table (to check executed date in global.asax Application_Start and call a function)
I am looking for a solution which is better for shared hosting. Please suggest. Thanks
原文:https://stackoverflow.com/questions/31762255
最满意答案
它会导致Oracle安装程序有时会忘记安装在
machine.config
的数据库提供程序工厂。 要解决此问题,需要在app.config
或machine.condig
。<system.data> <DbProviderFactories> <add name="Oracle Data Provider for .NET" invariant="Oracle.DataAccess.Client" description="Oracle Data Provider for .NET" type="Oracle.DataAccess.Client.OracleClientFactory, Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342" /> </DbProviderFactories> </system.data>
我认为在EntLib4中工作的是EntLib4使用以前版本的Oracle客户端(我认为是10.2.0.1。Oracle编号很奇怪)。
It seams that the Oracle Installer will sometimes forget about the database provider factory which is installed in the
machine.config
. To fix this the following needs to be put in either theapp.config
or themachine.condig
.<system.data> <DbProviderFactories> <add name="Oracle Data Provider for .NET" invariant="Oracle.DataAccess.Client" description="Oracle Data Provider for .NET" type="Oracle.DataAccess.Client.OracleClientFactory, Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342" /> </DbProviderFactories> </system.data>
I think this working in EntLib4 is that EntLib4 uses the previous version of the Oracle client (10.2.0.1 I think. Oracle numbering is odd).
相关问答
更多-
如何在Fedora 3上将旧的GCC 3.4升级到GCC 4.1?(How can we upgrade old GCC 3.4 to GCC 4.1 on Fedora 3?)[2023-09-09]
如果您仍想坚持使用GCC 3.4,您可以使用提供相同原语的其他库。 例如atomic_ops ( atomic_ops @ github ) If you still want to stick with GCC 3.4 you could use other libraries that provides the same primitives. For example atomic_ops (atomic_ops @ github) -
这是你需要做的纠正它。 安装32位客户端与64位一端.. 64位版本在使用标准连接字符串方面不起作用..不确定Oracle如何在不修复它的情况下让这个bug持续这么长时间..并排安装是什么我们做了..它将安装到它自己的文件夹中所以你应该没有问题..当你使用.dll时只需将副本设置为local = true并删除旧的并重新添加新的.dll ..确保你使用导航到4.x文件夹而不是2.x文件夹。 this is what you will need to do to correct it . Install th ...
-
就企业库而言,最好的情况是用5.0程序集引用替换4.1程序集引用并更改配置(使用5.0引用而不是4.1引用)。 但是,您也可能遇到一些问题。 您应阅读Microsoft Enterprise Library 5.0迁移指南以获取完整说明。 Breaking Changes文档还可以帮助您确定是否可能会遇到迁移问题。 对于智能客户端软件工厂,方法显示相同:更改引用和配置以使用新的dll。 Web客户端软件工厂2010文档 下载有一个关于迁移到Visual Studio 2010的部分。 In terms of ...
-
我猜想我在一周后解决了这个问题。 想分享我的经验。 首先,这个错误消息与Spring框架有关。 基于我们在配置文件中指定的DBprovider(在我的情况下它是Oracle.DataAccess.Client ),Spring.Data DLL尝试解析数据库提供程序。 ( 更多关于Spring dbproviders的信息 ) 它使用资源文件(Spring.Data.Common.dbproviders.xml)来解决这个问题。 在dbproviders.xml文件中从以下行中抛出的错误。 (文件位置:Sp ...
-
问题是double在ExtJs中不是有效类型。 ExtJs 4是允许的,并且在字段定义中接受无效类型。 ExtJs 5没有。 这个消息对我来说似乎很清楚。 X.store.FieldStore既不是类名也不是别名。 可能没有加载具有类定义的文件。 你必须找出答案。 您应该在需要它的地方要求这个商店,例如在带有stores: ['X.store.MembersStore']的控制器中stores: ['X.store.MembersStore']或者require: ['X.store.MembersStor ...
-
OracleClient默认情况下按名称绑定。 ODP.NET按位置绑定。 您需要设置OracleCommand.Bindbyname。 OracleClient Binds by name by default. ODP.NET binds by position. You will need to set OracleCommand.Bindbyname.
-
我设法让它工作。 下载适用于您的项目的优秀版ODAC。 对于32位项目,您需要下载ODAC12 ..._ x32.zip(ODAC121021Xcopy_32bit.zip)。 对于64位项目,您需要下载ODAC12 ... _ x64.zip 根据您想要的版本(32位对64位)将其解压缩到空文件夹中。 通过在Windows搜索栏中搜索* .dll,在instantclient_12_1文件夹中找到所有dll。 你需要抓住: OCI.DLL OCIW32.DLL orannzsbb12.dll oraoci ...
-
使用Oracle.DataAccess.Client将EntLib 4.1升级到5(Upgrading EntLib 4.1 to 5 with Oracle.DataAccess.Client)[2022-01-31]
它会导致Oracle安装程序有时会忘记安装在machine.config的数据库提供程序工厂。 要解决此问题,需要在app.config或machine.condig 。我能够通过向FROM子句添加更多信息来解决这个问题: SELECT DISTINCT * FROM SCHEMA.TABLE@Database.domain.COM I was able to resolve this by adding more info to my FROM clause: SELECT DISTINCT * FROM SCHEMA.TABLE@Database.domain.COMxsd DataSet切换到Oracle.DataAccess.Client驱动程序(xsd DataSet switch to Oracle.DataAccess.Client driver)[2022-09-30]
目前还没有一种好的方法来做到这一点。 由于System.Data.OracleClient仍然可用,因此最好在进行任何升级之前继续使用过时的驱动程序和测试。 There isn't currently a good way to do this. Since the System.Data.OracleClient is still available, it is best to continue using the obsolete driver and test before doing any up ...相关文章
更多- How to Start a Business in 10 Days
- 【Hadoop】Build and Run HDFS
- 第30周一
- 第30周三
- 30天敏捷结果(15):让自己处于宁静状态
- 30天敏捷结果(15) - 保持一个最佳状态的大脑
- 30天轻松掌握JavaWeb视频教程
- 《基于PHP下的Ecshop商城系统二次开发系列实战教程》共30天/更新12天[压缩包]
- There is already an open DataReader associated with this Connection which must be closed first
- 30天敏捷结果(15):让自己处于宁静状态 From 周金根
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)