Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Reg:Extract View information in Sql server

Reg:Extract View information in Sql server

Scheduled Pinned Locked Moved Database
databasesql-serversysadmintutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 4005525
    wrote on last edited by
    #1

    Hi, I have a view. i want to get the columns in a view along with its database and servername. For example, Employee table resides in CSCEmp server's Emp database. I have a view in CSCDet server that will have a column "EmpName" of [CSCEmp's] Employee table. When i list view information, i want to display like view view'sserver Columnname column'sServer EMPView CSCDet EmpName CSCEmp Is there a way to do like this. Thanks.

    M 1 Reply Last reply
    0
    • U User 4005525

      Hi, I have a view. i want to get the columns in a view along with its database and servername. For example, Employee table resides in CSCEmp server's Emp database. I have a view in CSCDet server that will have a column "EmpName" of [CSCEmp's] Employee table. When i list view information, i want to display like view view'sserver Columnname column'sServer EMPView CSCDet EmpName CSCEmp Is there a way to do like this. Thanks.

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Look into the information schema views (under system views in management studio) or sysobjects in 2k. These will give you all the information about SQLs internal structures.

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups