wademi
asked on
How to continue a long query on a new line in c#.net
I have a long query like this:
"select requests.id,requests.dispo sition,req uests.staf f_ID,(cont acts.First _Name+' ' +contacts.Last_Name) as Contact,contacts.Office_te lephone,re quests.pro ject_title ,requests. create_dat e,text_fil e.text_fie ld from requests,contacts,text_fil e where requests.create_date >= (SELECT CAST(CONVERT(CHAR(11),GETD ATE(),113) AS datetime)) and requests.Primary_contact_I D = Contacts.ID and requests.Project_Descripti on_Id = text_file.id order by requests.id desc";
How do i write this query onmultiple lines in C#.net?
Is there some special character that you can put after the end of each line so that its recognized as a continuation of the query on the previous line?
Currently I have this query on one long line and I have to scroll all the way across to edit something at the end of the line
"select requests.id,requests.dispo
How do i write this query onmultiple lines in C#.net?
Is there some special character that you can put after the end of each line so that its recognized as a continuation of the query on the previous line?
Currently I have this query on one long line and I have to scroll all the way across to edit something at the end of the line
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
* exec procedure
* select * from view_name
* select * from dbo.function_name() alias