Viewing 15 posts - 14,086 through 14,100 (of 15,381 total)
R.P.Rozema (9/4/2011)
Sean Lange (9/2/2011)
... but I still suggest you look into why you are using the nolock hint. It is ok and useful in some places but not always.
I would...
September 6, 2011 at 9:23 am
Jeff Moden (9/2/2011)
September 2, 2011 at 1:59 pm
You should use nvarchar(max) instead of ntext. text and ntext are deprecated and their usage is discouraged. To put in your carriage return just replace the ' ' with char(13)
September 2, 2011 at 1:45 pm
It can be difficult to ask questions in a way that other people can understand. At this point I think the only way to get you an answer is if...
September 2, 2011 at 1:06 pm
jbalbo (9/2/2011)
--DO NOT CHANGE BELOW THIS LINE--
--Replaces special characters in data to prevent error when reading into HTML Forms
UPDATE @TEMPTABLE SET...
September 2, 2011 at 12:49 pm
See if this quick little example will help.
select top 5 * from sysobjects
if @@ROWCOUNT > 0
select 'found some'
select top 5 * from sysobjects where 1 = 2
if @@ROWCOUNT = 0
select...
September 2, 2011 at 12:21 pm
The value of rowcount will hold the count of rows from the last statement, whatever that may be. Read about it in BOL http://msdn.microsoft.com/en-us/library/ms187316.aspx.
September 2, 2011 at 12:17 pm
jbalbo (9/2/2011)
??If there are many Insert into's in the SP
does the @@rowcount only evaluate on the the just prior Insert statement?
Thx
Joe
Take a look at your code...i added some comments...
September 2, 2011 at 10:37 am
I too was guessing the OP wanted to look at cross tabs but since that wasn't a single field i knew it was close but not quite. This is a...
September 2, 2011 at 10:30 am
Your code would be something like:
insert into
if @@rowcount = 0
insert into
Why do you have the nolock hint on all your tables? This looks like a financial application and you are...
September 2, 2011 at 10:20 am
That is correct. You would have to use dynamic sql for that. Make sure that your use statement AND the query(ies) you want to run are all in the same...
September 1, 2011 at 3:21 pm
david.holley (9/1/2011)
INSERT INTO
ProjectInformationChangeLog
(Action, Element, WindowsUserId, DateTimeStamp, SQLServerTable, ShowNumber)
SELECT ShowNumber,'Delete', 'General Information', SYSTEM_USER, SYSDATETIME(), OBJECT_NAME(@@PROCID) From deleted GROUP BY ShowNumber WHERE ProjectNumber In...
September 1, 2011 at 3:00 pm
You can mix all the logic together in a single trigger and check the existence of records or you can create triggers for each action. Here is an example of...
September 1, 2011 at 2:34 pm
Take a look at Gail's blog for a great explanation and in depth look at join vs IN.
http://sqlinthewild.co.za/index.php/2010/01/12/in-vs-inner-join/%5B/url%5D
September 1, 2011 at 2:11 pm
david.holley (9/1/2011)
September 1, 2011 at 2:10 pm
Viewing 15 posts - 14,086 through 14,100 (of 15,381 total)