Viewing 15 posts - 24,031 through 24,045 (of 26,486 total)
Jeffrey Williams (10/27/2008)
Lynn Pettis (10/27/2008)
October 27, 2008 at 7:00 pm
Where is there a triangular join in this query? I am joining row i to row i + 1 using an outer join, then this derived table is then...
October 27, 2008 at 6:56 pm
Here is some code to start with:
create table #TempTable (
PersonalID int,
fk_IntakeMainID int,
FullName varchar(64)
);
insert into #TempTable
select 1,1,'Bob Smith' union...
October 27, 2008 at 3:24 pm
You may have to adjust the code I posted above to subtract 12 instead of 13. Give that code a test in a test environment. better yet, change...
October 27, 2008 at 2:51 pm
Here is the code I'd try:
delete from table
where
asofdate < dateadd(mm, -13, dateadd(mm, datediff(mm, 0, getdate()), 0))
😎
October 27, 2008 at 2:42 pm
When you are talking about keeping a rolling 13 months worth of data, are you talking about current month plus the last 12 previous months? For example, if you...
October 27, 2008 at 2:35 pm
Here is some test code I just wrote. See if this helps you figure out what you need to do.
create table #TestTable (
OrderNo varchar(13)
);
insert into...
October 27, 2008 at 2:32 pm
Jeff Moden (10/27/2008)
October 27, 2008 at 1:33 pm
Let's start with the individuals who started the site and what they wanted to deliver. Then let's look at the people that have come to the site. I...
October 27, 2008 at 1:10 pm
Since you were jumping from SQL Server 6.5 to SQL Server 2000, it is possible that some of the system tables from 6.5 were depreciated and then dropped from SQL...
October 27, 2008 at 12:39 pm
Shree (10/27/2008)
Select * From table
Where Case
When @NoSales = ‘No’ Then (...
October 27, 2008 at 10:41 am
You could also bring all the tables together into one table using a partitioned table. You would just have to add a new partition each month. This way,...
October 27, 2008 at 10:35 am
You can add an Execute SQL Task before your package completes that executes the following code:
update dbo.YourTable set
export = 1
where
export =...
October 27, 2008 at 10:27 am
Limiting the number of responses you can post to another users post limits the discuss that can occur with some questions/responses posted. You can learn a lot from these...
October 27, 2008 at 10:20 am
You say you are losing tables when you change compatability levels? Are you losing user tables or system tables?
😎
October 27, 2008 at 9:43 am
Viewing 15 posts - 24,031 through 24,045 (of 26,486 total)