Viewing 15 posts - 14,311 through 14,325 (of 14,953 total)
I may be missing something.
The part after the name of the proc "CompareTables", in parentheses, is a spot to declare input and/or output parameters.
The first one, "@filefit nvarchar(100)", is...
April 7, 2008 at 12:23 pm
Since you can't change the trigger, the only thing I can I can think of is breaking up the update code into batches.
if (select Col1 from dbo.Table where id =...
April 7, 2008 at 12:17 pm
sp_executeSQL can have output parameters. Look that one in Books Online. It should do exactly what you need.
April 7, 2008 at 12:13 pm
I think what you're looking for is SQL Server Profiler. You might check that out and see if it will do what you need.
April 7, 2008 at 12:08 pm
David Hart (4/7/2008)
For my purposes, The DATEDIFF works well for me because I am...
April 7, 2008 at 12:05 pm
mtassin (4/3/2008)
Is there a way to use DATEDIFF and get an Index Seek? I'm a little sad that my...
April 7, 2008 at 12:03 pm
If I'm reading "Create Sequence" correctly, I think you'll find Identity does what you need.
Books Online has data on it at:
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/8429134f-c821-4033-a07c-f782a48d501c.htm
April 7, 2008 at 12:00 pm
Use whatever string you're looking for, of course. Doesn't have to be "hello", can be anything at all.
April 7, 2008 at 11:57 am
I can't find anything that says there would be a problem with that. I've never had a problem with that upgrade myself, but most of the upgrades I've done...
April 7, 2008 at 11:56 am
The way to do this is something on this order:
create trigger Updates on dbo.Table
after update
as
if update(Col1) or update(Col2) or update(Col3)
update dbo.Table
set Changed = 1
from inserted
inner join deleted
on inserted.id = deleted.id
where(inserted.col1...
April 7, 2008 at 11:51 am
I don't know the area, so can't help directly, but have you tried using Google/Yahoo/MSN search to find what you're looking for?
April 7, 2008 at 11:42 am
select ColName
from dbo.TableName
where ColName like '%hello%'
That will give you the rows that contain the string "hello". Keep in mind that this will find any string, not just whole words....
April 7, 2008 at 11:39 am
The two constraints at the bottom of the table creation script should do the job for you. Make sure those are run after the insert.
April 7, 2008 at 11:38 am
Which version of SQL 2000 are you using? And which version of 2005 are you upgrading to?
April 7, 2008 at 11:33 am
Are you looking for column names or the contents of the columns?
If column names, then sys.columns has all of those and you can select from that.
April 7, 2008 at 11:32 am
Viewing 15 posts - 14,311 through 14,325 (of 14,953 total)