我在一个学区工作。每年我们都必须从学生管理系统中导出一份学生名单,并将其发送给处理我们在线考试的公司。

所以为了做这个输出,我们必须雇佣一个了解我们学生管理系统内部运作的人。他写了一个sql (Adaptive Sybase sql Anywhere)查询,将学生导出到我们需要的csv文件。这是在我开始为学区工作之前,所以有一段时间我以为这是一个真正的应用程序,直到轮到我自己做导出的时候。

每年他都会向我们收取500美元来更新这个查询以导出当年的学生。所以当我发现它只是一个查询(.bat文件和.sql文件)时,我的想法是“我可以自己更新”。我所要做的就是改变查询中的年份(例如。2009 - 2010)。

查询(。SQL文件)本身在顶部有这样的注释:

// This code was writtend by [the guy]
// and is the property of [his company]...Copyright 2005,2006,2008,2009
// This code MAY NOT BE USED without the expressed written consent of 
// [his company].

(是的,上面确实写着“writtend”。)

所以现在我老板担心我们侵犯了版权。那家伙会发现是我自己更新了查询因为我们今年还没有要求他更新并采取法律行动。

回到刚才的问题: 他真的能获得这个问题的版权吗? 如果是的话,我们自己修改是不是侵犯了版权? 在我看来,单个查询不是程序代码。它更像是一个命令行命令。但我不知道这在法律上是怎么考虑的。


当前回答

让开发人员在此人运行查询时打开SQL分析器(假设您使用的是SQL Server)。捕获查询并将其用作自己的查询。

仅仅因为您在查询中抛出了一个声明版权的注释(可能不会传递给SQL)并不意味着它就是版权。如果您拥有数据库和其中的数据,那么您就有权审查进入数据库的每个查询。记住,除了其他人不是律师之外,我们假设你也不是律师,你很容易在这个问题上装傻。我会让位置成为法律的9/10,抓住问题,如果这个人想起诉,告诉他让你开心。

这里的另一个关键元素是没有意图重新分发这个家伙的代码。你是在为你自己的内部使用制作一个衍生作品。

其他回答

我是一名DBA,使用过许多带有罐装SQL代码的第三方应用程序,我从未见过SQL语句附加这样的东西。如果你可以直接访问数据库并从中查询数据,那就重写代码,不要再给那个人一秒钟的时间,因为这样一个500美元的单进程似乎是一种敲敲敲敲。

But without seeing the code there's no telling how involved it is. I've written some SQL statements that go into hundreds of lines to get data, and they can take DAYS or even WEEKS to write and debug. If this guy invested that kind of time into the process and you're paying $500 per run, it may be worth it ... but if it's just a strait forward Select statement that's no more then a dozen or so lines long, that is not worth $500 and can be written by you or someone else with a basic understanding of SQL. Even if it looks similar to his, honestly sometimes there's only so many ways to write something. "The dog is blue"... how many ways can you say it? Not many :)

是的,我也不是律师,但当涉及到这样的事情时,我的道德准则是指导我的。

另一种选择(你可能执行也可能不执行,风险由你自己承担——咨询律师!):保持他的代码不变。编写一个包装器,读取他的SQL并在运行它之前执行s/2009/$this_year/。瞧,你什么都没改变……

把那家伙的名字贴出来,这样我们都知道他是个混蛋。不用说,这不是法律建议,但如果你与这个人签约,他所做的任何事情都可能是“受雇工作”,因此归你所有。我认为他甚至不太可能试图采取法律行动。

似乎没有人意识到版权与复制有关。如果OP既不是复制也不是分发,版权在这种情况下似乎并不适用。

即,未经许可,学院不得出版或作为自己的作品出售(可能)。在这种情况下你最好咨询一下你的律师。

在任何情况下,OP都同意运行运行特定文件中某些sql的程序。我假设OP没有绕过程序员设置的任何反篡改控制。

sql是程序的一部分(尽管是雇佣的工作),只是文件中的文本。现在,在没有得到程序员明确同意的情况下修改与程序相关的任何/所有文件可能会使任何保证失效,但事实就是这样。

就给你500块,没人会起诉你。你知道请律师要花多少钱吗?但如果您取消了原程序员的任何支持,也不要感到惊讶。警告一下。

话说回来,如果这家伙为了500美元只做了2分钟的改变,那就有点鲁莽了。但你确定他只是在做这个吗?500美元半天的工作,正常的咨询收费费率是不现实的。

any content can be copywrited, including SQL procs, which methods may be considered a trade-secret. SQL procs can be a component of an entire application which most all are copywrited, unless the are released to the public as freeware, open source or with a GPL. If you feel uneasy about infringing on the SQL proc you mentioned, all you have to do is slightly modify the SQL proc by using an alternative statement or add a dummy part to it which has no effect on the desired result. In the chemical products industry, for example: a cleaning product made by ECOLAB, whose mixture of active and inactive chemical ingridients is patented, has been imitated by several other competitors who sell basically the same product for much less. The way the got around infringing on ECOLAB's patent is to modify the content of one or more chemical ingridients by 1%. So, using this as an analogy, you can do the same to the copywrited SQL proc.