Viewing 15 posts - 49,621 through 49,635 (of 59,078 total)
Stephanie Giovannini (6/26/2008)
I have a table in...
June 26, 2008 at 8:28 pm
Matt Miller (6/26/2008)
A natural key that will end up with duplicates is no longer a...
June 26, 2008 at 8:25 pm
Also be aware that neither of those will handle the TEXT datatype. What you might want to look into is the undocumented sp_execresultset...
If you're using SQL Server 2005, lemme...
June 26, 2008 at 8:22 pm
The real problem is that you're using the same table for OLTP and Batch processing. Load the data into a separate table (staging table), process it, the transfer the...
June 26, 2008 at 8:17 pm
June 26, 2008 at 8:13 pm
Jeff Moden (6/26/2008)
Michael Earl (6/26/2008)
June 26, 2008 at 8:10 pm
Michael Earl (6/26/2008)
June 26, 2008 at 8:10 pm
GSquared (6/26/2008)
Something like:
select t1.Col1
from dbo.Table1 t1
left outer join...
June 26, 2008 at 8:05 pm
That's what the OP is trying to avoid, Gus... OP wants the temp table to size itself and it's columns like it would using a SELECT/INTO except the OP wants...
June 26, 2008 at 8:02 pm
schuppe (6/26/2008)
insert into testtable values(getdate(), dateadd(day, 5, getdate()));
with test (startdate, enddate) as
(select startdate, enddate from testtable
union all
select dateadd(day, 1, test.startdate), test.enddate...
June 26, 2008 at 7:56 pm
Michael Earl (6/26/2008)
June 26, 2008 at 7:52 pm
GSquared (6/26/2008)
June 26, 2008 at 7:46 pm
In that same vein...
DROP TABLE JBMTest
GO
--===== Create and populate a 1,000,000 row test table.
-- Column "RowNum" has a range of 1 to 1,000,000 unique numbers
...
June 26, 2008 at 7:40 pm
First, the warning about nulls is just that... a warning to let you know that some rows had nulls and they were ignored. You can suppress that message with...
June 26, 2008 at 7:37 pm
Heh... rowcount can be wrong in sysindexes unless you run the correct DBCC command to update them... that's a hint... look it up in Books Online.
June 26, 2008 at 7:31 pm
Viewing 15 posts - 49,621 through 49,635 (of 59,078 total)