0

I need to get information about amount of columns and types of these columns in certain table. I hear something about INFORMATION_SCHEMA.COLUMNS. But there are no my tables in it! What is wrong?

enter image description here

zer_ik
  • 410
  • 1
  • 4
  • 14

1 Answers1

1

You are using master database. Choose your database by USE

USE [YourDAtaBaseName]
SELECT * FROM INFORMATION_SCHEMA.Tables
TriV
  • 5,118
  • 2
  • 10
  • 18