Viewing 15 posts - 256 through 270 (of 748 total)
Scott Coleman (10/1/2013)
-- V1: Copy the entire remote table, keep only what...
October 1, 2013 at 2:40 pm
Jeff Moden (10/1/2013)
halifaxdal (10/1/2013)
This made the ldf to minimum from 99GB down to 1M
I...
October 1, 2013 at 2:32 pm
I have been able to resolve this issue:
1. Select enough amount of records into a new table
2. Truncate the original table as most of the records are redundant
3. Delete the...
October 1, 2013 at 1:29 pm
I did the following to empty ldf: 1. Put the recovery mode to simple; 2. dbcc shrinkdatabase('database_name')
This made the ldf to minimum from 99GB down to 1M
I then tried to...
October 1, 2013 at 12:35 pm
Sean Lange (9/12/2013)
This should work.
where doctype = 1
or doctype = case @dt when 1 then 2 end
That was simpler, isn't it? Thank you very much, I was thinking in...
September 12, 2013 at 9:05 am
Thank you, that's what I want
August 2, 2013 at 7:29 am
Look good but the code
ALTER TABLE SalesDates DROP CONSTRAINT DF__SalesDate__saled__4ED6BD4A
indicates the script knows the constraint's name in advance.
Since there are lots of fields for each table, I can't manually...
August 2, 2013 at 7:16 am
Thanks.
Then how do I loop each field and find if there is a constraint on it? and get the constraint's name if I have to put the name there when...
August 2, 2013 at 7:07 am
Steve Jones - SSC Editor (7/3/2013)
This isn't a stored proc, it's a view.http://msdn.microsoft.com/en-us/library/ms175081.aspx
It's probably security.
You are right, it's not sp, it's a view, my mistake.
July 3, 2013 at 9:41 am
select definition from sys.sql_modules where object_id = object_id('sp_procname')
is better than mine.
Thank you
June 28, 2013 at 9:54 am
I end up using this:
declare @result nvarchar(max)
set @result = ''
select @result = @result + text from syscomments
WHERE id = (SELECT id FROM sysobjects WHERE name = 'spname')
ORDER BY colid desc
select...
June 28, 2013 at 9:50 am
Thanks. EXEC sp_helptext returns row by row while I want only one row
June 28, 2013 at 9:46 am
That's easy, isn't it? Thank you.
June 28, 2013 at 7:03 am
roryp 96873 (4/9/2013)
http://msdn.microsoft.com/en-us/library/ms182418.aspxSmalldatetime has a max date of 2079-06-06. It looks like it is erroring out when you put in the 2222-02-22 as a date.
Thank you for the quick...
April 9, 2013 at 9:11 am
Viewing 15 posts - 256 through 270 (of 748 total)