Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 10th, 2005, 06:44 PM
GEM1204 GEM1204 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Texas
Posts: 169 GEM1204 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 9 h 36 m 57 sec
Reputation Power: 5
Access to Sql Server Question

have several access databases that are linked to the same backend Access database.* I am in the process of converting all these databbases to SQL server 2000.* I have converted the backend database which contains all the tables to SQL Server.* In an Access database you can link only the tables you want and you can create separate queries in each front end database.* I have a lot of quereis in each database and some have the same name but do different things.
When you have an Access project you get everything from the SQL database - tables, views ……….everything.* I have thought about creating a separate SQL database for each of my applications.* I would have a primary database that contained all the tables, etc and then a separate database that contained only views of the tables in my primary database.* That way I could copy a lot of my quereis directly to each respective SQL database.
Example:
Primary database Table Name:*Authors
Human resources database View Name: Authors with the sql "Select * from pubs.dbo.authors"
If I did it this way then I could copy most of my Access quereis directly to SQL server and have seperate queries and sp's for each application. I would also have my quereis seperated for each application. If I didn't use views then I would have to recreate all my queries which would be a pain because I have a lot of queries based on other queries and would to come up with another naming convention if I wanted to id queries for each application. I have though about just linking the tables and views to a regular Access database but I would prefer to use a project.

Is using views in this way a good idea or a bad idea?

Are there any major drawbacks

Reply With Quote
  #2  
Old August 20th, 2005, 10:52 AM
yogaboy yogaboy is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: Near London
Posts: 112 yogaboy User rank is Corporal (100 - 500 Reputation Level)yogaboy User rank is Corporal (100 - 500 Reputation Level)yogaboy User rank is Corporal (100 - 500 Reputation Level)yogaboy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 14 h 37 m 29 sec
Reputation Power: 5
That sounds over-complicated. Why not just have one database and have different views for each application that accesses the database. If it's just because you don't want to change your naming convention then I'd say you have a problem with the naming convention. Why not prefix the query with the name of the app?

Add to that, any queries you've done in Access can probably be written to be much more powerful in SQL Server, so you'll probably be better of re-writing most of your queries anyway.

You'd also be able to share any udfs you created too, rather than having to copy them from database to database.
</2 cents>

Reply With Quote
  #3  
Old August 22nd, 2005, 01:10 PM
Scorpions4ever Scorpions4ever is offline
Mad Rater
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 126 Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 31 m 44 sec
Reputation Power: 8
There were historically a couple of reasons to use views.
1. To hide a complex query join with a simpler interface. It is easier to say SELECT * FROM View than something like SELECT SUM(xxx), AVG(yy) FROM table1, table2..
2. From a security persective, you could hide particular columns of a table from a user.

Until SQL Server 2000, I gave Views a wide berth mostly. Why?? Performance reasons. If I had to select a small subset of data from a View (say data within a certain date range), SQL server would first build the entire View in memory and then tablescan the data for the required date range, instead of using the underlying table data to only select a smaller range of data first and then joining from that. On top of that, it never really used the underlying table indexes for anything. With SQL Server 2000, Microsoft fixed these problems and also allowed Indexed Views.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > Access to Sql Server Question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT