Viewing 15 posts - 2,386 through 2,400 (of 5,103 total)
How the hell do you show the contents of a system stored procedure? I know sp_helptext but there MUST be a better way than...
March 16, 2006 at 7:22 am
Besides of the above, the rules that were posted are pretty incomplete. Can you clarify a bit more the rules?
ORDER BY --> ?, TableSort , Level, LastChildDescription
March 14, 2006 at 3:04 pm
if the column where you defined the Foreign Key Constraint was defined as not required (meaning can accept nulls) then NULL is perfectly legal. If you want to prevent that,...
March 14, 2006 at 2:32 pm
Can you explain why inserting in a temp table does not works for you?
March 14, 2006 at 2:29 pm
I'd go a bit further:
select
ltrim(rtrim(t.last_name) )+ ', ' + ltrim(rtrim(t.first_name)) as name
from table t
and even further:
DO ALL TRIMING Client side before it gets into the DB!!
March 14, 2006 at 9:20 am
declare @group varchar(128)
set @group = 'mygroup'
select 'Grant '+ Case when xtype = 'U' then 'INSERT, UPDATE, DELETE'
else 'EXECUTE' end + ' ON ' + name + ' TO...
March 14, 2006 at 9:02 am
is the fast linked server the same as the one you setup in production?
is the load i production too heavy?
In my opinion you are performing the join locally. I would...
March 14, 2006 at 8:42 am
You will have to query sysusers for all the databases and use some unconventional features
:
declare @cmd varchar(300)
select @cmd = 'select ''?'' as...
March 14, 2006 at 8:08 am
Sorry but I can't reproduce your results.
Are you taking those values from a column or you just typed them in QA?
March 14, 2006 at 7:38 am
when you call an SP and it is not the first line in the batch you need to use exec
...
CREATE PROCEDURE sp_TriggerOrder
AS
exec...
March 14, 2006 at 7:33 am
Change this line:
...
set @cmd1 = N'select @retVal = db_logical_dbname from BackupFileData where dbname = ''' + @userdb + ''''
March 13, 2006 at 10:13 am
Actually updatetext does just that "exactly"
declare @startIndex int, @patlength int, @prtval varbinary(16)
set @patLength = 3 --len('fgh')
SELECT @prtval = TEXTPTR(case_Details) , @startIndex = PATINDEX('%fgh%', case_Details)
FROM yourtable
WHERE pk_id = 1234 -- Use...
March 13, 2006 at 9:37 am
try:
DBCC UPDATEUSAGE(0)
it will put them in synch
Cheers,
March 13, 2006 at 9:21 am
I can guess there is integer division involved.
Try:
...
convert(money,count(Answer)*1.0/count(QuestionID)) as PercentOfQuestions
...
Cheers,
March 13, 2006 at 9:04 am
Viewing 15 posts - 2,386 through 2,400 (of 5,103 total)