首页
\
问答
\
在SQL Server 2008 Management Studio中调试存储过程(Debugging stored procedure in SQL Server 2008 Management Studio)
在SQL Server 2008 Management Studio中调试存储过程(Debugging stored procedure in SQL Server 2008 Management Studio)
我有一个存储过程,我想在SQL Server 2008管理工作室中进行调试。 我看到了很多关于这样做的教程,但是我看过的那些没有任何输入参数进入SP。 我的SP有几个,也有一个输出参数。
有人可以告诉我如何使用SQL 2008中的参数调试存储过程吗? 非常感谢。
I have a stored proc I'd like to debug in the SQL Server 2008 management studio. I see a number of tutorials about doing this, but the ones I've seen don't have any input parameters going into the SP. My SP has several, and an output parameter as well.
Could someone show me how to do debug a stored procedure with parameters in SQL 2008? Thanks very much.
原文:https://stackoverflow.com/questions/2496296
更新时间:2023-05-20 15:05
最满意答案
在你的Actvity中放入以下方法,并自动检查最近的应用程序对话框 。
public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); Log.e("Focus debug", "Focus changed !"); if (!hasFocus) { Log.e("Focus debug", "Lost focus !"); Intent closeDialog = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS); sendBroadcast(closeDialog); } }
注意:它仅适用于单个Activity。 不适用于您应用中的所有活动。
put below method in your Actvity and check recent app dialog close automatically.
public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); Log.e("Focus debug", "Focus changed !"); if (!hasFocus) { Log.e("Focus debug", "Lost focus !"); Intent closeDialog = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS); sendBroadcast(closeDialog); } }
Note: it only work for single Activity. not for all activity in your app.
相关问答
更多-
对于MFC对话框,看看ResizableLib 。 For MFC dialogs, have a look at ResizableLib.
-
您将在startActivity()之后立即从列表中删除该项目。 用户甚至没有看到这一点的对话。 您可以侦听ACTION_PACKAGE_REMOVED系统广播 ,确认它是用于请求的包,并从该列表中删除该包。 通过registerReceiver()从您的活动中完成此操作,您可以快速找到并且可以轻松访问您的UI代码来更新列表。 You are removing the item from the list immediately after startActivity(). The user has not ...
-
您需要一些服务机制来向活动组件发送信号。 最简单和最常见的方法是使用事件总线。 正确实现这一点完全取决于您,但您可以使用现有的事件总线库来帮助您。 您可以通过简单的谷歌搜索找到这些。 You need some mechanism for the service to send a signal to the activity component. The easiest and most common way to do that is using an event bus. The proper imp ...
-
按下BackKey上的对话框(Dialog on BackKey pressed)[2023-02-09]
您需要在对话框中设置OnKeyListener并检查是否按下了后退键。 以下是适合您需要的示例代码,您需要修改代码,如下所示: AlertDialog alertDialog = new AlertDialog.Builder(this,R.style.myBackgroundStyle).create(); alertDialog.setTitle("Exit Alert"); alertDialog.setMessage("Do you really want to ex ... -
在你的Actvity中放入以下方法,并自动检查最近的应用程序对话框 。 public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); Log.e("Focus debug", "Focus changed !"); if (!hasFocus) { Log.e("Focus debug", "Lost focus ...
-
不幸的是,答案很简单:不。 使用Android提供的打印框架的唯一方法是发送适当的意图,系统的打印假脱机程序应用程序将显示可供选择的打印预览和打印机列表,因此您无法将其更改为打印到默认打印机。 此外,android框架不直接发现或与打印机通信,而是在后台使用打印服务连接到打印机。 “打印服务必须请求android.permission.BIND_PRINT_SERVICE权限才能确保只有系统可以绑定到它”,因此您无法绑定到打印服务(假设已经安装在打印服务器上)来执行打印。 所以它看起来像你唯一的选择,如果你 ...
-
这个问题可能更适合superuser.com而不是stackoverflow。 无论如何,如果您正在寻找应用程序,您可以尝试Play商店中提供的Android Wear任务管理器 。 它可以列出手表上所有正在运行的进程,它可以帮助您轻松快速地停止任何任务。 您还可以查看此文档以获取有关节省电量和提高性能的提示。 您需要确保您的表盘仅在活动时执行计算; 在WatchFaceService.Engine使用回调。 Android Wear配套应用程序还使开发人员和用户能够查看可穿戴设备上不同进程消耗的电量(在“ ...
-
Android任务管理器源码(Android task manager source)[2021-10-26]
你必须看看Astrid任务管理器它是一个开源的Android应用程序,你可以在这个github存储库中获取源代码。 您也可以对这个项目感兴趣。 You have to take a look at Astrid Task Manager it's an open source android app you can fetch the source code in this github repository. You can also be interested in this project. -
如果你还记得,我已经建议你以前使用AsyncTask解决你的问题。 onPreExecute() - 显示proress对话框 doInBackground() - 在doInBackground()中调用您的DownloadFile()方法 关闭进度对话框。 通过这个例子并理解它并以你的方式实现它: 具有进度对话框的AsyncTask I got the solution by working on it and the following should be the solution for this: ...
-
通过Android上的文件管理器获取对文件系统的非法访问权限(Gaining illicit access to file system through file managers on Android)[2021-12-07]
我同时发现,在OI文件管理器的情况下,这已被报告和修复: http : //blog.k3170makan.com/2014/02/path-disclosure-vulnerability-in-io.html https:/ /github.com/openintents/filemanager/commit/78ffa735924292e541f3b7f20ead605f053f0df4 不幸的是,在F-Droid上发布的版本仍然很脆弱。 I found out in the mean time th ...