User Profile

Collapse

Profile Sidebar

Collapse
johnf40
johnf40
Last Activity: Oct 10 '07, 12:28 PM
Joined: Jun 28 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • johnf40
    replied to Incorrect syntax with Declare
    I have replaced all the instances of the variable with the actual definition, and the view runs and saves fine. I was hoping to be able to keep it simple by not having to type in the variable definition each time. I don't understand why it can run, but saving it returns an error.
    See more | Go to post

    Leave a comment:


  • johnf40
    started a topic Incorrect syntax with Declare

    Incorrect syntax with Declare

    Good morning
    I hope this will be a simple one, but I am trying to write a view to query my SQL server database, setting a variable using "declare". The code runs fine and returns a number of records, but when I try to save it, it comes up with "Incorrect syntax near the keyword DECLARE", and will not save. I am a bit of a novice when it comes to SQL, but I don't understand why it runs, but won't save. Here is my variable:...
    See more | Go to post
No activity results to display
Show More
Working...