Viewing 15 posts - 271 through 285 (of 287 total)
Berry had some good suggestions. Those "catch-alls" can be nasty. I just did a quick glance and didn't see a real reason why this is all dynamic. I'm sure there...
May 15, 2009 at 11:28 am
starunit (5/15/2009)
Glenn Dorling (5/14/2009)
I've only done very limited testing...
May 15, 2009 at 11:01 am
Yeah, random data can be problimatic. One quick and dirty thing you coudl do is create a temp table with the PK on the SSN using the IGNORE_DUP_KEY And just...
May 14, 2009 at 2:39 pm
I think Lynn covered it, but maybe this sample would help to demonstate:DECLARE @Foo TABLE(EmergencyContact VARCHAR(50), EmergencyRelation VARCHAR(50))
INSERT @Foo
SELECT 'Jean', 'Mother'
UNION ALL SELECT NULL, 'Father'
UNION ALL...
May 14, 2009 at 2:04 pm
If you are using SQL 2005 or later you could use a ranking function:INSERT INTO 3rdPartyDatabase.dbo.Table1 --(table w/UserID PK)
(fullname, title, phone, emailaddr, dept, location, fax, employee_id, UserID)
SELECT
upper(lname) + ',...
May 13, 2009 at 1:59 pm
To build on Johns example, here is a mroe simplified version:SELECT
ID,
Color,
Date
FROM
(
SELECT
...
May 12, 2009 at 4:03 pm
WebTechie38 (5/12/2009)
Then there are times people post things and you are not...
May 12, 2009 at 11:09 am
Your procedure should/will continue (unless you have changed the default settings)
SELECT 1/0
SELECT 1
May 11, 2009 at 5:33 pm
Sergiy (5/11/2009)
CHECKSUM is not good enough.Different records may have the same CHECKSUM.
I agree that the checksum function will produce the same number for different rows.
However, the chance of a...
May 11, 2009 at 5:13 pm
WayneS, has a nice description of how dates are stored internally. But, what do you want the INT to represent? Do you want a number like YYYYMMDD or the integer...
May 5, 2009 at 1:34 pm
You may need to change the INNER JOIN to a RIGHT OUTER JOIN between the two derived tables, as the WHERE clause on the Daily table is different than the...
May 4, 2009 at 4:11 pm
There is also the SCD (Slowly Chaning Dimension) control that you can use to achieve this. This control tends to perform poorly (like other solutions) if you need to compare...
May 4, 2009 at 2:04 pm
The indexing of a view asside, there are several other options that you might want to investigate:
1. Add a IsCurrent flag to your table.
2. Just create the view and...
May 4, 2009 at 1:33 pm
I think people get hung up on the performance issue because of that article. How often are you assigning a value to a variable? If you are doing some wacky...
May 4, 2009 at 12:13 pm
Atif Sheikh (4/29/2009)
try this
select *
from thangela.NpowerNorthern_v1 a
INNER JOIN EPPS.dbo.Customers b ON case when IsNumeric(b.MPANCORE) = 1 then b.MPANCORE...
April 29, 2009 at 2:20 pm
Viewing 15 posts - 271 through 285 (of 287 total)