Viewing 15 posts - 121 through 135 (of 536 total)
just on the table, you dont need to run it on the whole database
February 3, 2010 at 3:23 am
Example that proves the reindex theory
use beta
go
create table JM
(
colA int identity(1,1) primary key,
col2 varchar(20),
col3 int
)
go
declare @count smallint
set @count = 1
while @count < 1000
begin
insert into JM (col2, col3)
select 'Number ' +...
February 2, 2010 at 2:19 pm
if you rename the table and then rename it back does the space change?
February 2, 2010 at 1:50 pm
DNA_DBA (2/2/2010)
does the first step actually complete - is the exe still running if you look in task manager?
The above is the best thing to check first.
Another thing you can...
February 2, 2010 at 1:32 pm
I remember reading on here some months back about how sql still holds the space for the data with the old type AND the new data type hence why the...
February 2, 2010 at 1:23 pm
you could try and kill it but its likely it will take around 15 mins to rollback.
try doing the inserts in batches
February 2, 2010 at 12:02 pm
Mad-Dog (2/1/2010)
yes I'm trying to update an int column to put varchar character.
By definition you cant. No amount of convert/case/coalesce will ever get this work.
Mad-Dog (2/1/2010)
February 1, 2010 at 6:08 am
is the field your updating an int field? if so you wont be able to put 'No data' into it. Post the create table scripts for both your...
February 1, 2010 at 2:19 am
Mad-Dog (1/31/2010)
how to use the case in the update statment for a value that is NULL in the column?THX
update <tableA>
set <column> = case when B.<column> is null then 'No Data'...
January 31, 2010 at 7:53 am
use a case statement as well as the cast/convert.
case when <column> is null then 'No data' else cast(<column> as varchar(x)) End
January 31, 2010 at 4:58 am
ah ok, from your origional post it seemed like it was always model that was causing the issue. So now we know its not database specific is there anything...
January 26, 2010 at 5:58 am
I get the problem quite often (once a week) always in the morning (UK time). My links send me straight to the forums and this just times out, so...
January 26, 2010 at 4:16 am
why not as a temporary measure remove the model database from your litespeed backup job and give it its own job. that way at least if it fails its...
January 26, 2010 at 3:03 am
data changes or schema changes?
January 18, 2010 at 1:33 pm
Positive (12/28/2009)
Just as a FYI, I was wondering if there are any workarounds to not stop and start SQL Agent in case of password change. In other words, what...
December 29, 2009 at 2:11 am
Viewing 15 posts - 121 through 135 (of 536 total)