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
 General SQL Server Forums
 New to SQL Server Programming
 Create View to a particular database

Author  Topic 

Adam West
Constraint Violating Yak Guru

261 Posts

Posted - 2009-08-06 : 16:25:45
How do you specify that a view that you create will exist in a particular Database?

CREATE VIEW [dbo.Vw_Details]
AS

is there somewhere you can say which database it should reside in?

Adam West
Constraint Violating Yak Guru

261 Posts

Posted - 2009-08-06 : 16:41:10
Never mind, I forgot about that tab.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-08-06 : 17:26:34
You could just do CREATE VIEW DB1.dbo.Vm_Details...

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -