SQL数据库比较 [英] SQL Database comparison

查看:118
本文介绍了SQL数据库比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下查询:

展开 | 选择 | Wrap | 行号

解决方案

快速调试问题 - 当你只运行select语句时,你得到任何结果吗?


和...


如果这是一个简单的记录检查存在,EXISTS()函数可能会更快...


快乐编码!!!


~~ CK

< br>

CK,


EXISTS是否可以在SQL 2000中运行?此外,我只运行了select语句,它确实找到了示例数据。


这是我将insert语句添加回查询时得到的错误:


服务器:Msg 208,Level 16 ,状态1,程序newcustomers,第4行

无效的对象名称''msbtotal.dbo.members''。


我检查了所有的SP在此服务器上,并且没有名为newcustomers的过程。任何人都可以提供任何建议,为什么我的服务器告诉我有一个不存在的程序。


谢谢


Doug

I have the following query:

Expand|Select|Wrap|Line Numbers

解决方案

A quick debugging question - do you get any results when you run just the select statement ?


And...

If it''s a simple check of record existence, an EXISTS() function might be faster...

Happy Coding!!!

~~ CK


CK,

Does EXISTS work in SQL 2000? Also, I have ran just the select statement and it does in fact locate the "sample data."

Here''s the error I get when I add the insert statement back into the query:

Server: Msg 208, Level 16, State 1, Procedure newcustomers, Line 4
Invalid object name ''msbtotal.dbo.members''.

I''ve checked all of the SP on this server and there is no procedure called "newcustomers." Can anyone offer any advice as to why my server is telling me that there''s a procedure that doesnt really exist.

Thanks

Doug


这篇关于SQL数据库比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆