Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.. TRUNCATE,DROP,DELETE and SELECT not working in sql server management studio 2012 in db_compiler database,please help me.

What I have tried:

Here is screen shotimage
"Invalid Object Name " error come.Name is 100% correct..
Posted
Updated 2-Apr-16 4:35am
v2
Comments
Afzaal Ahmad Zeeshan 2-Apr-16 10:27am    
What SQL statement are you using?

1 solution

First you have to select the database

SQL
use databaseName;  -- selects the db which u want to run the statement.
select * from tableName;


under your case:
SQL
use db_complier;   
  select * from Create_db;
 
Share this answer
 
v2
Comments
Hameed Khan 2-Apr-16 12:53pm    
Thankssss alot,Great it's working now

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900