Wrox Home  
Search P2P Archive for: Go

  Return to Index  

sql_language thread: Concatenate SP & Select Statement?


Message #1 by "Melinda Savoy" <msavoy@h...> on Fri, 6 Jul 2001 14:21:17
Is it possible to do a join on the results from a stored procedure to the 
results from a select statement?  In my ASP page I am connecting to a 
stored procedure via a linked server and then trying to join it backup to 
a select statement from a table on the local server.  Any help would be 
appreciated.  Thank you.  Here is a try at the code in my ASP page that I 
am using:

strSQLSpeclty =	"exec lookuptables...getlookuptablevalues 
@tablename=physnprofilespeclty; " & _
"SELECT clinicprogname, practcspecltycode, practcspecltyboardstatus, " & _
"practcsubspecltycode, practcsubspecltyboardstatus " & _
"FROM thrphysnprofile_view " & _
"WHERE enterprsphysnid = '" & strenterprsphysnid & "' " & _
"AND tableargmnt = practcspecltycode "
					 			
Set physnspeclty_rs = ODSDev_CGuser.Execute(strSQLSpeclty)

  Return to Index