A have read a lot and did not found how to do this.
I know I can execute a sp with exec (sp_whatever)
I just want something like that but with queries. I need to call or execute a query (*.sql) from another query code (*.sql). Something like this (guessing...!)
use pubs
select * from authors
go
call (library) --where 'library' is another query (library.sql)
Thank you for your help!!
'Love T-SQL'
I know I can execute a sp with exec (sp_whatever)
I just want something like that but with queries. I need to call or execute a query (*.sql) from another query code (*.sql). Something like this (guessing...!)
use pubs
select * from authors
go
call (library) --where 'library' is another query (library.sql)
Thank you for your help!!
'Love T-SQL'