首页 \ 问答 \ 在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 ...
  • 您需要在对话框中设置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配套应用程序还使开发人员和用户能够查看可穿戴设备上不同进程消耗的电量(在“ ...
  • 你必须看看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: ...
  • 我同时发现,在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 ...

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)