4

Could anyone help me in checking whether table exists or not in sql azure?

1

1 Answer 1

8

Use this query -

SELECT
  *
FROM
  sys.tables t
JOIN
  sys.schemas s
    ON t.schema_id = s.schema_id
WHERE
  s.name = 'dbo' AND t.name = 'table1'

...specify your schema and table name.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.