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
 SQL Server Development (2000)
 Can't see other databases in EM

Author  Topic 

Chucker
Starting Member

6 Posts

Posted - 2003-01-07 : 11:40:25
I am using Enterprise manager to set up views in a SQL database.

I need to link to an Access database and to another SQL database.

How do go about setting this up?

nr
SQLTeam MVY

12543 Posts

Posted - 2003-01-07 : 11:49:36
You will need to create a linked server for the access database.

Why not crate the views using scripts in query analyser (if you really need views). It will probably be easier than EM and give you something to save in sourcesafe.

create view myview
as
select a.fld1, b.fld1
from mydb..mytbl a join mydb..mytbl2 b
and a.pk = b.pk
go


==========================================
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

Chucker
Starting Member

6 Posts

Posted - 2003-01-07 : 12:16:04
I see by reading in the forums that EM is limited.

As you can tell, I am new at SQL.

What I don't quite understand is how to save a query that I write in Query Analyzer to the database.

What I am doing is linking a GIS app to SQL. The GIS can only see tables or views created in the database. How can I get it to see unsupported EM operations like UNION?

Go to Top of Page

Chucker
Starting Member

6 Posts

Posted - 2003-01-07 : 12:25:39
I figured it out.

use DATABASE_NAME
create view MY_NEW_VIEW
as

SELECT ....

Go to Top of Page
   

- Advertisement -