Viewing 15 posts - 4,096 through 4,110 (of 6,486 total)
Jeff Moden (3/18/2008)
March 18, 2008 at 11:58 am
The WITH ENCRYPTION is a misnomer anyway - since you're giving the system an automated way to decrypt the data. The "door being opened" is so wide that the...
March 18, 2008 at 11:46 am
Well - if you want a "master" of all MRN's out of both tables, I'd assume you want any mrn's in either table, and not just the ones that exist...
March 18, 2008 at 11:18 am
yup....What they both said....
March 18, 2008 at 11:10 am
It's amazing how much clearer it gets when you actually format your query.
SELECT
person.[person_last_name],
person.[person_first_name],
person.[person_middle_initial],
ordr.fy,
ordr.ordr_effective_date,
ordr.ordr_termination_date,
Max(person_pay.service_or_component_code) AS MaxOfservice_or_component_code,
person_pay.state_territory_code,
at_reimbursement.at_start_date,
at_reimbursement.at_stop_date,
asn.accounting_station_number
FROM
[LIVE].[dbo].at_reimbursement as at_reimbursement
...
March 18, 2008 at 11:08 am
Even if they didn't have permission before attaching the file - once the sysadmin attaches the database, they can change the owner to be whoever they wish.
So - the only...
March 18, 2008 at 10:36 am
I'd have to agree. Just about the only thing preventing NOLOCK would be a schema-lock, or something changing your DDL. Do you have something routinely modifying your table...
March 18, 2008 at 10:26 am
You need a table with the values you want to show as the "base table". LEFT OUTER JOIN from it onto the existing query you have and use its...
March 18, 2008 at 10:17 am
Can't say I see why it's not working in SQL server. That being said - your WHERE clause is unnecessary, since it's your ON clause as well.
March 18, 2008 at 9:49 am
GilaMonster (3/18/2008)
Matt Miller (3/18/2008)
GilaMonster (3/17/2008)
Jeff Moden (3/17/2008)
There's a whole lot of minor differences but the big difference is, table variables do not and cannot be made to use statistics.
Yup. And...
March 18, 2008 at 9:45 am
SQL Noob (3/18/2008)
if you can avoid temp table and table variablesi personally prefer to make a view if i can and use that instead of the above
Unless you're talking indexed...
March 18, 2008 at 9:33 am
The EXISTS clause doesn't care about the column return - it just cares whether there is a record found or not. In the case you wrote - the NOT...
March 18, 2008 at 9:29 am
hmm... Covering indexes unfortunately can fall into the "law of diminishing returns". Meaning - you're going to end up hitting the size limit sooner or later. Also -...
March 18, 2008 at 9:13 am
GilaMonster (3/17/2008)
Jeff Moden (3/17/2008)
There's a whole lot of minor differences but the big difference is, table variables do not and cannot be made to use statistics.
Yup. And that, along with...
March 18, 2008 at 9:08 am
Adam Haines (3/18/2008)
SELECT TransactionID,
...
March 18, 2008 at 9:02 am
Viewing 15 posts - 4,096 through 4,110 (of 6,486 total)