现在我有一个 SSIS 包,它每天早上运行并给我一份关于前一天失败或成功的包数.这些包的信息部分包含在 SQL Server 2005.
Right now I have an SSIS package that runs every morning and gives me a report on the number of packages that failed or succeeded from the day before. The information for these packages is contained partly within the sysjobs
table (a system table) within the msdb
database (a system database) in SQL Server 2005.
当尝试将包移动到 C# 可执行文件时(主要是为了通过发送的电子邮件获得更好的格式),我无法找到一种方法来创建允许我通过以下方式访问这些表的 dbml 文件LINQ.我试图寻找可以使这些表可见的任何属性,但我运气不佳.
When trying to move the package to a C# executable (mostly to gain better formatting over the email that gets sent out), I wasn't able to find a way to create a dbml file that allowed me to access these tables through LINQ. I tried to look for any properties that would make these tables visible, but I haven't had much luck.
这是否可以使用 LINQ to SQL?
如果您在服务器资源管理器中,可以通过以下方式使它们可见:
If you're in Server Explorer, you can make them visible this way:
这篇关于使用 LINQ to SQL 访问系统数据库/表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!