home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.ms-sqlserver      Notorious Rube Goldberg contraption      19,505 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 18,004 of 19,505   
   tshad to All   
   Can't get table function to work   
   22 Nov 10 14:50:51   
   
   From: tfs@dslextreme.com   
      
   I have a table function that works fine except when used as  a JOIN.   
      
   If I have a function that I am passing a parameter from a value I had gotten   
   from my query:   
      
   SELECT   
                   t1.nID   
   FROM table1 t1   
   JOIN dbo.udf_somefunction(t1.nID)   
      
   I get an error:   
      
   The multi-part identifier "t1.nID" could not be bound.   
      
   This works fine if I change the select as:   
      
   SELECT   
                   t1.nID   
   FROM table1 t1   
   JOIN dbo.udf_somefunction(10)   
      
   How can I get this to work??   
      
   Thanks,   
      
   Tom   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca