sql profiler 2008 不接受命令行启动中的模板名称

发布于 2024-07-17 06:18:04 字数 595 浏览 4 评论 0原文

我正在尝试从命令行启动启动 sql profiler 2008。 我使用的语法:

C:\Program Files\Microsoft SQL Server\100\Tools\Binn>profiler90 /S server /D dbname /U sa /P 密码 /T "C:\Documents and Settings\template.tdf"

实际结果: 探查器打开,成功登录,但我仍然被迫选择一个模板。

预期结果: 是否需要使用任何其他命令行参数来强制探查器采用指定的模板。

编辑:

GBN:感谢您的建议。

我做了以下更改 profiler90 更改为 profiler 修改了模板路径为: C:\Documents and Settings\myuser\Application Data\Microsoft\SQL Profiler\10.0\Templates\Microsoft SQL Server\100templatename

上面指定的物理文件夹包含模板文件。

问题仍然存在

I am trying to launch sql profiler 2008 from the command line launch. the syntax I used :

C:\Program Files\Microsoft SQL Server\100\Tools\Binn>profiler90 /S server
/D dbname /U sa /P password /T "C:\Documents and Settings\template.tdf"

actual result:
profiler opens, successful login happens but still I am forced to select a template.

Expected result:
is there any other command line parameter I need to use to force profiler to take up a specified template.

Edit:

GBN: Thanks for the suggestions.

I did the following changes profiler90 changed to profiler modified the template path to : C:\Documents and Settings\myuser\Application Data\Microsoft\SQL Profiler\10.0\Templates\Microsoft SQL Server\100templatename

the physical folder specified above contains the template file.

still the problem persists

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

演出会有结束 2024-07-24 06:18:04

是的,它起作用了
正确的名称是 /t“模板名称”,而不是模板的物理文件名。
谢谢!

yes, it worked
the correct one is /t "template name" and not the physical file name of the template.
thanks!

停顿的约定 2024-07-24 06:18:04

GBN:感谢您的建议。

我做了以下更改 profiler90 更改为 profiler 修改了模板路径为: C:\Documents and Settings\myuser\Application Data\Microsoft\SQL Profiler\10.0\Templates\Microsoft SQL Server\100templatename

上面指定的物理文件夹包含模板文件。

问题仍然存在

GBN: Thanks for the suggestions.

I did the following changes profiler90 changed to profiler modified the template path to : C:\Documents and Settings\myuser\Application Data\Microsoft\SQL Profiler\10.0\Templates\Microsoft SQL Server\100templatename

the physical folder specified above contains the template file.

still the problem persists

泪意 2024-07-24 06:18:04

它是 SQL Server 2008 中的“分析器”,“profiler90"

两者的 /T 开关均表示

... 的
模板名称必须位于
系统模板目录或用户
模板目录。 如果有两个模板
两者都存在同名
目录,模板来自
将加载系统目录。 如果不
具有指定名称的模板
存在,标准模板将是
已加载。 请注意,模板的文件扩展名 (.tdf) 不应指定为 template_name 的一部分。

因此,由于路径和扩展名的原因,您的交换机看起来是错误的。

编辑:

您是否只尝试过名称?: .../T "templatename"...

It's "profiler" in SQL Server 2008, "profiler90" in SQL Server 2005

The /T switch for both says

... The
template name must be in either the
system template directory or the user
template directory. If two templates
with the same name exist in both
directories, the template from the
system directory will be loaded. If no
template with the specified name
exists, the standard template will be
loaded. Note that the file extension for the template (.tdf) should not be specified as part of the template_name.

So, it looks like your switch is wrong because of the path and the extension.

Edit:

Have you tried just the name?: .../T "templatename"...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文