Viewing 15 posts - 5,671 through 5,685 (of 7,608 total)
arnipetursson (10/23/2014)
ScottPletcher (10/22/2014)
October 23, 2014 at 12:31 pm
And those same guys obviously did contract work for healthcare.gov! 😀
October 23, 2014 at 11:09 am
For temp tables, you must also consider:
INTO #new_temp_table
rather than just CREATE.
October 23, 2014 at 10:41 am
Those sound like Oracle qs, but this is a SQL Server forum.
You would likely get much better responses to your q by posting it in an appropriate Oracle forum.
October 23, 2014 at 10:28 am
jeff.born (10/22/2014)
October 22, 2014 at 3:49 pm
SELECT
[BusinessName], [Address], [Phone]
,MIN(Business_pk) AS Business_pk_min,
,MAX(Business_pk) AS Business_pk_max
FROM [dbo].[TestBusiness] bus
INTO [dbo].[DuplicateBusinesses]
GROUP BY
[BusinessName], [Address], [Phone]
HAVING COUNT(*) > 1
October 22, 2014 at 3:32 pm
You should be able to use the session_id to do the lookup. But since session_ids are reused, and sysjobactivity keeps history, if your proc is not currently running from...
October 22, 2014 at 3:18 pm
Frank The Tank (10/21/2014)
October 21, 2014 at 9:47 am
Phil Parkin (10/21/2014)
ScottPletcher (10/20/2014)
October 21, 2014 at 8:57 am
Increasing the size of a [n]varchar column isn't directly a problem.
But, if you think people will go back and increase the length of those columns in a significant...
October 20, 2014 at 4:26 pm
If the controlling column(s) are all from the same table, I suggest a computed column. That leaves the defining logic in only a single place, and allows the calc'd...
October 20, 2014 at 4:23 pm
CELKO (10/20/2014)
..SEQUENCEs can "lose" numbers as well: if the transaction rolls back, the acquired sequence number(s) cannot be put back in the pool. If, by law, you can't have...
October 20, 2014 at 10:17 am
I prefer EXISTS over NOT IN especially, since NULL values will prevent NOT IN from working. You might see if that also corrects the optimizer issue.
select *
from table_A...
October 17, 2014 at 5:04 pm
Yes, all modifications to recoverable resources for a single transaction must either all fail or all work, never some and not others. This is fundamental to how SQL Server...
October 17, 2014 at 5:00 pm
With that many rows, you'll probably want to consider other, more efficient methods of comparing tables.
For example, change tracking would allow you to determine the rows in each table that...
October 17, 2014 at 4:50 pm
Viewing 15 posts - 5,671 through 5,685 (of 7,608 total)