Re: CREATE VIEW error
- From: "Jeff Dillon" <jeffdillon@xxxxxxxxxxx>
- Date: Fri, 19 May 2006 13:00:23 -0700
Reduce the complexity until you find where it's breaking
"Edwin Knoppert" <info@xxxxxxxxxxxxxxxxxxx> wrote in message
news:e4l7d4$97b$1@xxxxxxxxxxxxxxxxxx
To answer the responses so far:
This is an access MDB used in ASP.NET v2.0
The website is hosted by a webhosting company, we only have access through
ftp.
Yes, we have the project locally, i'm testing this create view stuff
locally.
The idea is that i need to write me complex queries, to complex for me
unless i prepare multiple querydefs (views) using each other.
To avoid downloading the database for maintanance i wanted to insert new
queries remote.
I'm just taking existing querydef's from the access database which work(!)
and try to create them using Execute() stuff.
'Simple' queries do get inserted, the example i shown does not.. ???
I simply use an ASPX having a textbox being passed to the execute command.
Liek i said, it works until it's getting complicated according the error
message i get.
"Edwin Knoppert" <news@xxxxxxxxxxxxxx> schreef in bericht
news:446dbb14$0$2021$ba620dc5@xxxxxxxxxxxxxxxxxxxxxx
I have serious issue by inserting a query using (names are fake):
CREATE VIEW Query1 AS
SELECT Count(Table1.ID) AS CountOfID, Day([DatumAanmaak]) AS Dag,
Month([DatumAanmaak]) AS Maand, Year([DatumAanmaak]) AS Jaar
FROM Table1
GROUP BY Day([DatumAanmaak]), Month([DatumAanmaak]),
Year([DatumAanmaak]), Day([DatumAanmaak]), Month([DatumAanmaak]),
Year([DatumAanmaak])
HAVING (((Year([DatumAanmaak]))=Year(Date())))
ORDER BY Year([DatumAanmaak]) DESC , Month([DatumAanmaak]) DESC ,
Day([DatumAanmaak]) DESC;
"Only simple SELECT queries are allowed in VIEWS."
Can this be solved?
.
- Follow-Ups:
- Re: CREATE VIEW error
- From: Edwin Knoppert
- Re: CREATE VIEW error
- References:
- CREATE VIEW error
- From: Edwin Knoppert
- Re: CREATE VIEW error
- From: Edwin Knoppert
- CREATE VIEW error
- Prev by Date: Re: CREATE VIEW error
- Next by Date: Re: CREATE VIEW error
- Previous by thread: Re: CREATE VIEW error
- Next by thread: Re: CREATE VIEW error
- Index(es):
Relevant Pages
|
Loading