Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / May 2006

Tip: Looking for answers? Try searching our database.

Failed to create table sql cache dependancy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yuva - 09 May 2006 14:33 GMT
Hi
I have created a datatbase "testschema" and schema called "MySchema". I have
created a table "MySchema.table1" in the database. I am trying to create sql
cache dependancy on table using aspnet_regsql utitlity.

aspnet_regsql -S localhost -U UserA -P usr@123 -ed  -d testschema -et -t
MySchema.Table1

But it throw an error.

Enabling the table for SQL cache dependency.

An error has happened.  Details of the exception:
Cannot create trigger
'dbo.MySchema.Table1_AspNet_SqlCacheNotification_Trigger'
as its schema is different from the schema of the target table or view.

Failed during cache dependency registration.

Please make sure the database name and the table name are valid. Table names
mus
t conform to the format of regular identifiers in SQL.

The failing SQL command is:
dbo.AspNet_SqlCacheRegisterTableStoredProcedure

I have tried with out schema name and again it is failed. Pl. let me know
what's wrong creating dependancy on table?
Brock Allen - 10 May 2006 23:05 GMT
You need to first enable the database for cache dependency with:

aspnet_regsql -S ... -U ... -P ... -d testschema -ed

then enable the table:

aspnet_regsql -S ... -U ... -P ... -d testschema -t table1 -et

-Brock
http://staff.develop.com/ballen

> Hi
> I have created a datatbase "testschema" and schema called "MySchema".
[quoted text clipped - 24 lines]
> I have tried with out schema name and again it is failed. Pl. let me
> know what's wrong creating dependancy on table?
emer.kurbegovic@gmail.com - 27 May 2006 07:27 GMT
i have exactly the same problem. if i switch the schema name to "dbo"
it registers correctly. it does not seem to be working with any other
schema name but "dbo".

Here is the Error Message:
Cannot create trigger
'dbo.MySchema.Codes_AspNet_SqlCacheNotification_Trigger' as its schema
is different from the schema of the target table or view.
emer.kurbegovic@gmail.com - 27 May 2006 07:31 GMT
I do register the database first correctly and i can register any table
within the "dbo" schema.

what am i doing wrong?
emer.kurbegovic@gmail.com - 29 May 2006 04:12 GMT
can anyone help out here?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.