Viewing 15 posts - 631 through 645 (of 2,647 total)
You mention that this is a .NET application? I would make sure at the application layer that it is doing everything possible to not insert data that it shouldn't. Are...
June 19, 2012 at 7:00 am
How or why do you think there is a problem? 6gb/8gb = 75%, not 97%.
June 19, 2012 at 6:54 am
Here is the proc:
USE test
GO
CREATE TABLE tab1 (id int,oldId int, InsertedOn datetime)
insert into tab1 values (99,NULL,getdate()-7)
insert into tab1 values (17,14,getdate()-9)
insert into tab1 values (14,12,getdate()-14)
insert into tab1 values (12,null,getdate()-15)
insert into tab1...
June 19, 2012 at 6:52 am
Let me see if I can explain this better for the OP. It is irrelevant the value of the ID in terms of max, min, >, <... He wants...
June 19, 2012 at 6:47 am
Going along with the previous response, if you cannot come up with a unique constraint (single or multiple columns) then it really doesn't matter if duplicates are moved or not...
June 19, 2012 at 6:41 am
First you need to add in your missing row that is in your results, but not in the sample data. Then use a recursive cte:
USE tempdb
GO
DECLARE @tab1 TABLE...
June 19, 2012 at 6:36 am
Andrew Watson-478275 (6/19/2012)
id , name...
June 19, 2012 at 4:58 am
Suresh B. (6/18/2012)
Ramana P (6/18/2012)
...I have replication in same server with different database,
Why are you replicating in same server with different database?
Have you checked the Replication Monitor? Have you...
June 19, 2012 at 4:55 am
The best way would be to use DATEDIFF or DATEADD functions.
So, if you want to change 2012-03-30 13:57:07.353 to 2012-05-30 13:57:07.353 you would do this:
UPDATE tableA
SET dateColumn = SELECT DATEADD(MONTH,2,dateColumn)
WHERE...
June 18, 2012 at 9:25 am
When you stop SQL Agent, you are not just stopping the 1, 2, or 3 jobs that you have running for replication... You are stopping ALL jobs. This...
June 18, 2012 at 8:57 am
Jeff Moden (6/18/2012)
SQLKnowItAll (6/18/2012)
June 18, 2012 at 7:38 am
Ok, I see now. Take a look at this thread and see if it helps. I personally have never had to do this.
June 18, 2012 at 7:31 am
Jeff Moden (6/16/2012)
SQLKnowItAll (6/16/2012)
You should not be doing this with an SQL query. You do it in the presentation layer.
Why? Not picking on you specifically. It's just that...
June 18, 2012 at 5:58 am
Again, I don't think I understand what you are trying to do. A job runs on a schedule, so how would it know what parameter is used unless it...
June 18, 2012 at 5:52 am
Although this can be done, it seems like what you want is actually a report that does the sum for you. You should not be doing this with an...
June 16, 2012 at 11:37 am
Viewing 15 posts - 631 through 645 (of 2,647 total)