Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create 2 views in one query batch file 1

Status
Not open for further replies.

MrBillSC

Programmer
Aug 6, 2001
592
US
I want to create view A then read view A and create view B.
When I try to do this within a single query batch file I get an error at my second "create view" statement that says "'CREATE VIEW' must be the first statement in a query batch."
Do I have to create these views with separate query batch files? Since view B is based on view A it would be nice to create them in the same query batch file.

I am using SQL Query Analyzer version SQL 8.00.194

MrBill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top