How do you save a CREATE VIEW statement?

EDIT: This question was based on the incorrect premise that SQL VIEWS were cleared from a database when the user that created them disconnects from the server. Leaving this question in existence in case others have that assumption.

I'm trying to use views in my database, but I'm running up against an inability to save the code as a SQL Server object for repeated use.

I tried saving

CREATE VIEW

statements as procedures and user defined functions, but as many have answered on stack overflow,

CREATE PROCEDURE

and

CREATE FUNCTION

are incompatible with

CREATE VIEW

due to the only one in batch issue.

Obviously I don't want to retype my CREATE VIEW statements every time, and I'd prefer not to have to load them from text files. I must be missing something here.