Viewing 15 posts - 271 through 285 (of 920 total)
Take the quotes off the variable:
s.vcDisplaySchoolName = @vcDisplaySchoolName
July 5, 2012 at 2:37 pm
You might try something like below:
DECLARE @StaffCodeErr tinyint,
@ContactErr tinyint,
@AlternateErr tinyint,
@Name varchar(400)
set @Name = ' '
/* Check the StaffCode column in the Providers table */
SELECT@StaffCodeErr = COUNT(*)
FROMProviders, inserted
WHEREProviders.ProviderNumber = inserted.ProviderNumber AND...
July 3, 2012 at 11:30 am
Potential world enders:
Godzilla or any of his friends except Mothra
Population explosion
Nuclear winter
Zombies
The Andromeda strain (or Captain Tripps, the T-virus or any of a number of mutated viruses)
Any large space rock
Agressive...
July 2, 2012 at 2:15 pm
I think this construct:
IF (SELECT inserted.StaffCode
FROM inserted
WHERE inserted.StaffCode NOT IN
(SELECT inserted.StaffCode
FROMinserted, deleted
WHEREinserted.StaffCode = deleted.StaffCode)) > 0...
July 2, 2012 at 1:26 pm
Is there a trigger on the table? I'd guess that the trigger can't handle the multiple rows being updated, and it's the trigger that's giving you the message. The...
July 2, 2012 at 9:55 am
I always learn something new every time I try one of these.
Thanks for jumping in, Lynn.
Had a syntax error on the select, but this runs:
SELECT E.P_Service, tasks...
June 29, 2012 at 4:55 pm
This puts it all together with the like breaks (char(10)), but going through XML changes them to
Hmmmm... have to think on this a little more.
create table #txt1 (
P_Key int...
June 29, 2012 at 4:03 pm
How do you know what order to concatenate the texts? Or does it matter?
June 29, 2012 at 2:58 pm
Maybe this will help:
http://www.mytechmantra.com/LearnSQLServer/Troubleshoot_OLE_DB_Provider_Error_P1.html
June 28, 2012 at 5:32 pm
I'd script them all out from SSMS (in object explorer details mode) and move them that way. Not pretty, but fairly straightforward since you can get them all at...
June 28, 2012 at 4:55 pm
Are your backups going to a different drive than the one that's running out of space? Probably a silly question, but just wanted to make sure it wasn't your...
June 26, 2012 at 3:39 pm
You can do something like:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
drop proc [dbo].[Make_table]
GO
create proc [dbo].[Make_table] @tablename varchar(512)
as
declare @statement varchar(7500)
declare @table_name varchar(512)
set @table_name = @tablename
set @statement = ' (column1 varchar(25) not null,...
June 25, 2012 at 5:09 pm
I have to echo Sean's comments. If you are storing date or date and time, you should really use the data types created for those sorts of values. ...
June 25, 2012 at 4:23 pm
I think it's the 'select's inside the functions. You don't need them.
Does this do it:
update messages
set message_date = cast((datediff (year, (select DATEADD(year, 1, CONVERT(datetime,(dateadd(second, message_date /1000 + 8*60*60, '19700101')),...
June 25, 2012 at 2:52 pm
Yes, that would make sense, but if it's really the same concatenation, then I gotta wonder....
June 22, 2012 at 4:53 pm
Viewing 15 posts - 271 through 285 (of 920 total)