Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Error :Invalid object name 'dbo.MK_DB'.

Author  Topic 

vimaldreams
Starting Member

17 Posts

Posted - 2010-11-10 : 09:57:55
When i try to execute this query in the SQLserver
it says the following error : I wonder wat could be the problem



INSERT [dbo].[MK_DB] ([ID], [Salutation], [Name], [Client_search], [Address_line1], [Address_line2], [Town], [Postcode], [Telephone_no], [Mobile_no], [Email_address], [Organisation], [Org_type], [Client_PartnerId], [Work_type], [MK_mailinglist]) VALUES (11101, 'Matt', 'MR M Horseman', 'Chillcott', 'Cirensecter House', '2 Apsley Road', 'Bristol', 'Bs8 2SP', '0117-2345678', '0787654327', 'Roger.Blacke@hotmail.com', 'Meade King', 'Partner', 'KWM', '78', 'Chrismas cards')

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-11-10 : 10:01:54
There's no table called [dbo].[MK_DB] in the current database

--
Gail Shaw
SQL Server MVP
Go to Top of Page

vimaldreams
Starting Member

17 Posts

Posted - 2010-11-10 : 10:08:16
No there is a table : Can you suggest me wat could be the other problems
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-11-10 : 10:11:03
may be you're running query in wrong db. or it may be that table is existing but in different schema not dbo

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-11-10 : 11:07:12
The error is saying that the table is not there or not accessible. Either you're in the wrong database, or connected to the wrong server or it's in a different schema or you've spelt it wrong.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2010-11-10 : 11:16:29
Another possibility is that the account that you are connecting with does not access to that table.

Be One with the Optimizer
TG
Go to Top of Page
   

- Advertisement -