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
  1. Home
  2. Database & SysAdmin
  3. Database
  4. sql view

sql view

Scheduled Pinned Locked Moved Database
helpdatabasesql-serversysadminquestion
4 Posts 4 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.
  • J Offline
    J Offline
    jainiraj
    wrote on last edited by
    #1

    hi .. I am creating view in sql server 2000 as- CREATE VIEW vwSam As (select admin.*, cust.FirstName+' '+cust.LastName as CustName from adminmsgrecieved as admin,custdetails as cust where admin.AdminId='111' and cust.CustId=admin.FromCustId ) From this i am getting an error invalid object adminmsgrecieved. But when i run select query only then it works fine. what problem may be??? and what should i do? plz help me.. Thanx in adv

    S _ A 3 Replies Last reply
    0
    • J jainiraj

      hi .. I am creating view in sql server 2000 as- CREATE VIEW vwSam As (select admin.*, cust.FirstName+' '+cust.LastName as CustName from adminmsgrecieved as admin,custdetails as cust where admin.AdminId='111' and cust.CustId=admin.FromCustId ) From this i am getting an error invalid object adminmsgrecieved. But when i run select query only then it works fine. what problem may be??? and what should i do? plz help me.. Thanx in adv

      S Offline
      S Offline
      smcnulty2000
      wrote on last edited by
      #2

      Try it without the parentheses.

      _____________________________ Those who study history are doomed to watch others repeat it. -Scott M.

      1 Reply Last reply
      0
      • J jainiraj

        hi .. I am creating view in sql server 2000 as- CREATE VIEW vwSam As (select admin.*, cust.FirstName+' '+cust.LastName as CustName from adminmsgrecieved as admin,custdetails as cust where admin.AdminId='111' and cust.CustId=admin.FromCustId ) From this i am getting an error invalid object adminmsgrecieved. But when i run select query only then it works fine. what problem may be??? and what should i do? plz help me.. Thanx in adv

        _ Offline
        _ Offline
        _Damian S_
        wrote on last edited by
        #3

        Have you made a typo? Received is usually spelled with ei after the c.

        Knowledge is knowing that the tomato is a fruit. Wisdom is not putting it in fruit salad!! Booger Mobile - Camp Quality esCarpade 2010

        1 Reply Last reply
        0
        • J jainiraj

          hi .. I am creating view in sql server 2000 as- CREATE VIEW vwSam As (select admin.*, cust.FirstName+' '+cust.LastName as CustName from adminmsgrecieved as admin,custdetails as cust where admin.AdminId='111' and cust.CustId=admin.FromCustId ) From this i am getting an error invalid object adminmsgrecieved. But when i run select query only then it works fine. what problem may be??? and what should i do? plz help me.. Thanx in adv

          A Offline
          A Offline
          A k ch
          wrote on last edited by
          #4

          Try with "dbo." or "dbname." here dbname is your data base name infront of all data base objects like tables and views hope it works

          Thanks & Regards, Anil Chelasani

          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