Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 SQL views on replicated tables ?

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-05-05 : 08:43:13
Ken writes "Is there an easier way to refresh views in a database when you add a column to a replicated table or is refreshing the views not necessary? We currently have VB.Net programs that utilize may views / procs etc in our databases. When we add a field to replicated table (or a table in general that the view uses) it seems to break the VB.Net program every time. It was mentioned to me that all the corresponding views needed to be refreshed and manually at that. To me, this seems very time consuming since there can be up to 20 or so views being used depending on what replicated table had the added field. If you could give me an answer to this, that would be great. Thanks.

Ken"

nr
SQLTeam MVY

12543 Posts

Posted - 2006-05-05 : 09:27:18
try
dbcc freeproccache
dbcc dropcleanbuffers



==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2006-05-05 : 09:42:29
try sp_recompile after the change

we haven't encountered this on our reporting server and the replicated tables do get modified once in a while

but this is something worth checking

--------------------
keeping it simple...
Go to Top of Page
   

- Advertisement -