Click here to Skip to main content
16,017,261 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I try to enable sqlCacheDependency for my table tblemployee..

Like this format: C:\Windows\Microsoft.NET\FrameWork\v2.0.50727>aspnet_regsql.exe -E -d Milton -et -t tblemployee

--------------------------------------
On that time I got error below.

Enabling the table for SQL cache dependency.

...............An error has happened. Details of the exception:
A network-related or instance-specific error occurred while establishing a conne
ction to SQL Server. The server was not found or was not accessible. Verify that
the instance name is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could not open a conne
ction to SQL Server)

Unable to connect to the SQL database for cache dependency registration.


Please help me.
Posted
Updated 5-Apr-10 2:09am
v4

Did you get any answers on MSDN?
See here.
 
Share this answer
 
to see option

aspnet_regsql /?

to Enable database school is db name

aspnet_regsql -S localhost -E -d School -ed

to Enable table Users Is tbl name

aspnet_regsql -S localhost -E -t Users -d School -et
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900