Msg 208,Level 16,State 1,Line 3 [英] Msg 208, Level 16, State 1, Line 3
本文介绍了Msg 208,Level 16,State 1,Line 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
目前我正在使用SQL SERVER 2008 R2。
我想将数据从一个数据库表复制到另一个数据库表
在目标数据库中我还没有创建任何表。
我试图做的sql查询,
plz check,n让我知道...
Hi guys,
Currently i'm using SQL SERVER 2008 R2.
I was tyring to copy data from one database table to another database table
where in the destination database i haven't created any table.
my sql query i was trying to do,
plz check, n let me know...
USE Inv
INSERT INTO dbo.tbl_section
select * from dbo.nps.section
谢谢
ABDUL SUBHAN
THANKS
ABDUL SUBHAN
推荐答案
MSG 208基本上是说这个表不是数据库的一部分 - 如果你愿意的话,这是一个找不到表的错误。
有几种方法可以做到这一点,但我更喜欢CREATE TABLE AS: http://www.techonthenet.com/sql/tables/create_table2.php [ ^ ]
我可能会在这里失去理智 - 那在我的开发SQL 2008设置中根本不起作用...
所以:尝试SELECT INTO代替:
MSG 208 is basically saying that the table is not part of the database - it's a "table not found" error if you like.
There are a couple of ways to do this, but I prefer CREATE TABLE AS: http://www.techonthenet.com/sql/tables/create_table2.php[^]
[edit]It's possible I am losing my mind here - that doesn't work at all on my dev SQL 2008 setup...
So: try SELECT INTO instead:
SELECT * INTO NewTab FROM MyTable
[/ edit]
[/edit]
这篇关于Msg 208,Level 16,State 1,Line 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文