Click here to Skip to main content
15,913,773 members
Home / Discussions / Database
   

Database

 
Questionhow to get data from another server Pin
raghvendrapanda7-Apr-10 0:07
raghvendrapanda7-Apr-10 0:07 
AnswerRe: how to get data from another server Pin
Eddy Vluggen7-Apr-10 1:10
professionalEddy Vluggen7-Apr-10 1:10 
AnswerRe: how to get data from another server Pin
Bassam Saoud8-Apr-10 10:08
Bassam Saoud8-Apr-10 10:08 
QuestionSql Server 2005 Languages support?? Pin
Aman786Singh6-Apr-10 22:44
Aman786Singh6-Apr-10 22:44 
AnswerRe: Sql Server 2005 Languages support?? Pin
Mycroft Holmes6-Apr-10 23:15
professionalMycroft Holmes6-Apr-10 23:15 
AnswerRe: Sql Server 2005 Languages support?? Pin
Bernhard Hiller9-Apr-10 2:20
Bernhard Hiller9-Apr-10 2:20 
QuestionCustom Ribbon side effect - Access 2007 [modified] Pin
john john mackey6-Apr-10 13:19
john john mackey6-Apr-10 13:19 
QuestionUnusal Action in MS Access Database Pin
Dominick Marciano6-Apr-10 9:48
professionalDominick Marciano6-Apr-10 9:48 
AnswerRe: Unusal Action in MS Access Database Pin
David Mujica7-Apr-10 3:24
David Mujica7-Apr-10 3:24 
QuestionMessage Removed Pin
6-Apr-10 2:10
mrkeivan6-Apr-10 2:10 
AnswerRe: coding for a software which is gonna run on a server Pin
R. Giskard Reventlov6-Apr-10 2:53
R. Giskard Reventlov6-Apr-10 2:53 
AnswerRe: coding for a software which is gonna run on a server Pin
David Mujica6-Apr-10 3:05
David Mujica6-Apr-10 3:05 
GeneralRe: coding for a software which is gonna run on a server Pin
PIEBALDconsult6-Apr-10 11:07
mvePIEBALDconsult6-Apr-10 11:07 
QuestionSend E-mail at particular Interval Pin
sumit70345-Apr-10 23:29
sumit70345-Apr-10 23:29 
AnswerRe: Send E-mail at particular Interval Pin
Garth J Lancaster6-Apr-10 0:01
professionalGarth J Lancaster6-Apr-10 0:01 
GeneralRe: Send E-mail at particular Interval Pin
sumit70346-Apr-10 0:17
sumit70346-Apr-10 0:17 
GeneralRe: Send E-mail at particular Interval Pin
Garth J Lancaster6-Apr-10 0:35
professionalGarth J Lancaster6-Apr-10 0:35 
GeneralRe: Send E-mail at particular Interval Pin
sumit70346-Apr-10 1:00
sumit70346-Apr-10 1:00 
GeneralRe: Send E-mail at particular Interval Pin
Mycroft Holmes6-Apr-10 1:06
professionalMycroft Holmes6-Apr-10 1:06 
GeneralRe: Send E-mail at particular Interval Pin
sumit70346-Apr-10 1:31
sumit70346-Apr-10 1:31 
GeneralRe: Send E-mail at particular Interval Pin
Mycroft Holmes6-Apr-10 2:11
professionalMycroft Holmes6-Apr-10 2:11 
QuestionNeed last bit of help with a view being built Pin
Michael J. Eber5-Apr-10 13:40
Michael J. Eber5-Apr-10 13:40 
I have to construct a view to feed a 3rd party application.

On the application database they have a boolean field CanAccess which is a blanket item for access to any location.
On the master database where I'm building my view, the contact has a LocationAccess table containing access rights for each explicite location.

What I need in my view is a way of returning something like Count(select * from LocationAccess) > 0 for each contact I'm running through. Here is what I've got so far. If anyone can suggest how I add this last item I'd greatly appreciate it!
(BTW - yes the orderby is required and thus the TOP 100% is also required)

SELECT     TOP (100) PERCENT dbo.CustomerMaster.BSACustomerKey, dbo.ContactMaster.ContactName, dbo.ContactMaster.BusinessPhone, dbo.ContactMaster.MobilePhone, 
                      dbo.ContactMaster.Email, dbo.ContactMaster.FirstName, dbo.ContactMaster.LastName, dbo.ContactMaster.EmergencyMaintenance, 
                      dbo.ContactMaster.NormalMaintenance, dbo.ContactMaster.NetworkAbuse, dbo.ContactMaster.IssuedSwipeCard, dbo.ContactMaster.CardNumber, 
                      dbo.AddressList.CustomerAddressLine1, dbo.AddressList.CustomerAddressLine2, dbo.AddressList.CustomerAddressLine3, dbo.AddressList.CustomerPostBox, 
                      dbo.CityEnumerator.City, dbo.StateEnumerator.State, dbo.AddressList.CustomerCounty, dbo.AddressList.CustomerCountry, dbo.AddressList.CustomerZipcode, 
                      dbo.ContactMaster.BmcCustKey, CASE WHEN dbo.ContactMaster.Role = 1 THEN 1 ELSE 0 END AS IsAdministrator, 
                      CASE WHEN dbo.ContactMaster.Role = 6 THEN 1 ELSE 0 END AS IsDecisionMaker, 
                      CASE WHEN dbo.ContactMaster.Role = 5 THEN 1 ELSE 0 END AS IsAccountingAP
FROM         dbo.ContactMaster INNER JOIN
                      dbo.CustomerMaster ON dbo.ContactMaster.CompanyID = dbo.CustomerMaster.CustomerIdentity LEFT OUTER JOIN
                      dbo.AddressList ON dbo.ContactMaster.ContactAddress = dbo.AddressList.AddressIdentity LEFT OUTER JOIN
                      dbo.CityEnumerator ON dbo.AddressList.CustomerCity = dbo.CityEnumerator.CityIdentity LEFT OUTER JOIN
                      dbo.StateEnumerator ON dbo.AddressList.CustomerStateorProvince = dbo.StateEnumerator.StateIdentity
WHERE     (dbo.CustomerMaster.CustomerStatus = 1) AND (dbo.ContactMaster.Status = 1)
ORDER BY dbo.CustomerMaster.BSACustomerKey

AnswerRe: Need last bit of help with a view being built Pin
Mycroft Holmes5-Apr-10 16:18
professionalMycroft Holmes5-Apr-10 16:18 
GeneralRe: Need last bit of help with a view being built Pin
Michael J. Eber5-Apr-10 19:43
Michael J. Eber5-Apr-10 19:43 
GeneralRe: Need last bit of help with a view being built Pin
Mycroft Holmes5-Apr-10 19:53
professionalMycroft Holmes5-Apr-10 19:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.