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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Permission Error Maybe??

Status
Not open for further replies.

Elliott3

Programmer
Sep 5, 2002
347
CA
Hi,
I am not very familiar with the following code that is in an ASP site I am working on... when the folloing code is executed:
Code:
CREATE VIEW #Clinical_Trial_Listings AS SELECT DocTitle, Directory, vpath, filename, size, write, characterization, rank, CompanyType FROM SCOPE (' SHALLOW TRAVERSAL OF "/patient/studies" ')
It gives the this error
error '80070005'

The site has been moved from an NT OS to Windows 2003 Standard edition... it appears as though the error is to do with permissions but I have been unsuccessful finding out where exactly.
I have added the IUSR_[computer_name] and IWAM_[computer_name] as users under the root folder on the security tab and given full access.

Maybe I am looking in the wrong direction... can anyone point in the right direction? Could it be something to do with the above statement? It does work on the NT box and the code has not been changed.

CES
 
I recently took my OS from 2000 Server to 2003 Server. It broke several ODBC related things with my SQL Server. I found posts about the problem on the web, but no solutions. I reverted back to 2000 Server and everything is kewl.
-Karl

[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
 
Does anyone know what the '#' number sign before Clinical_trial_.... means?

CES
 
#sign is usually used to create a local temp table. I have never seen anyone use it in a view before.

Questions about posting. See faq183-874
 
Me too... this comes from books offline:

"You cannot create temporary views, and you cannot create views on temporary tables."

On the other hand, this isn't query over SQL data - SCOPE/TRAVERSAL are used for file content searches (Indexing Service).
 
Thats what it told me when I ran the query directly on the server...
'Views or functions are not allowed on temporary tables. Table names that begin with '#' denote temporary tables.'

I beleive the connection looks ok... has there been many changes to version 8 from I believe it was version 7?

Any ideas?

CES
 
Ok so I can run this simple create view:

Code:
CREATE VIEW viewName AS SELECT * FROM tblName

It will run ok directly on the server but not through my asp?? I still get the error 80070005... Could I have missed some permissions that need to be set somewhere?

CES
 
80070005 - smells like insufficient NTFS permissions on some DLL files (Server.CreateObject error?), not web folders.
 
It doesn't seem to fail on the create.. it fails on the execute... are u suggestion unregistered dlls? can you elaborate at all?

CES
 
Does it give any more clues if the statement:

Code:
SET PROPERTYNAME 'd1b5d3f0-c0b3-11cf-9a92-00a0c908dbf1' PROPID 'CompanyType' AS CompanyType

executes ok right before the statement of this discussion fails to execute??

CES
 
An SQL statement that is a pain!! I am working wiith someone elses uncommented code...

Thanks for the faq... unfortunately I have seen this before... However the object does get created... this is how it is created:

Server.CreateObject("ADODB.Command")

let me know if you have any more thoughts... im pretty confused here..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top