Viewing 15 posts - 14,686 through 14,700 (of 15,381 total)
PK theoretically sorts the table by name, then interest ranking.
This is not true. There is 1 and ONLY 1 way to order results from sql server and that is by...
May 16, 2011 at 11:30 am
<-- When typing there is a box over on the left. You can click any of those and it will insert the tag into the text box over here where...
May 16, 2011 at 10:29 am
Probably because of some oddball characters. You should put it in the code tag
USE [msdb]
GO
XXXXX msdb.dbo.sp_add_alert @name=N’Severity 016',
@message_id=0,
@severity=16,
@enabled=1,
@delay_between_responses=60,
@include_event_description_in=1,
@job_id=N’00000000-0000-0000-0000-000000000000'
GO
XXXXX msdb.dbo.sp_add_notification @alert_name=N’Severity 016', @operator_name=N’SQL Server Administrator’, @notification_method = 7
GO
Results:
1> USE [msdb]
2> GO
Changed...
May 16, 2011 at 10:22 am
duplicate post. Please provide all responses here
May 16, 2011 at 10:01 am
Certainly making your fields nvarchar will allow for that if it ever happens. It doesn't hurt anything, it just takes twice the storage which is really not a big deal...
May 16, 2011 at 10:00 am
Steve Jones - SSC Editor (5/16/2011)
Ultimately there is no difference to SQL Server if it's varchar(36) or varchar(1000) other than what the upper limit...
May 16, 2011 at 9:35 am
So you are trying to change the name of the parameter that is sent back from a sproc? I can't for the life of me come up with a scenario...
May 16, 2011 at 8:59 am
Are you trying to set the presentation value to 'Results'? I don't quite get what you are going for here.
May 16, 2011 at 8:37 am
ahh gotcha it is doing int division. Since you original values do not have a decimal place they will be interpreted as an int. You need to force it use...
May 16, 2011 at 8:35 am
You certainly don't need to use nvarchar for an email address. Your current 36 is WAY too small. On the other hand you will find some people out there that...
May 16, 2011 at 8:31 am
Not sure I understand how dividing by 100 is rounding. All that does is move the decimal place two places to the left.
May 16, 2011 at 8:23 am
Here is some code that should let you get what you need.
create table #test
(
HasContract bit,
ExpirationDate date,
ExpirationNotificationDate date
)
insert #test select 1, '12/31/2011', null
update #test set ExpirationNotificationDate = DATEADD(d, -6, DATEADD(m, -1,...
May 16, 2011 at 8:19 am
I am assuming you are not using msdb? Add msdb to your proc call and that should fix it.
May 13, 2011 at 12:21 pm
Dugi (5/13/2011)
Sean Lange (5/13/2011)
Something like this?
Update users
Set deleted = '1'
from users u
join UserStatus us on u.username = us.username
where us.status = 'inactive'
Ooops sorry for the same post, I didn't...
May 13, 2011 at 11:01 am
Viewing 15 posts - 14,686 through 14,700 (of 15,381 total)