Viewing 15 posts - 5,071 through 5,085 (of 15,381 total)
kangarolf (4/29/2014)
I have a rather complicated report using a stored procedure that uses the;
SELECT @vals = @vals + ' ' +
REPLACE( REPLACE(
then lots of case statements to pivot...
April 29, 2014 at 7:37 am
ArtoisBB (4/29/2014)
Would the below be a better solution?
CREATE TRIGGER [TriggerName]
ON [InsertDataIntoThisTable]
INSTEAD OF INSERT
AS
BEGIN
DECLARE @Count INT
SELECT @Count = COUNT(*) FROM inserted
END
IF
@Count > 0
UPDATE
[AuditTable]
SET LastUpdated = GETDATE()
WHERE ...
Many...
April 29, 2014 at 7:26 am
Hi and welcome to the forums. In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form...
April 28, 2014 at 3:25 pm
robin.pryor (4/28/2014)
SELECT a.BoxId, b.field1 as value1, c.field1 as value2, d.field1 as value3, e.field1 as value4
FROM boxes...
April 28, 2014 at 3:24 pm
Informer30 (4/28/2014)
thanks for reply, please let me know what further information is required...
I have a select statement that I need to run 15 times with a different where clause...
April 28, 2014 at 3:19 pm
dba.sql29 (4/28/2014)
Thanks for your help.
This trigger is not going to work for me. I am trying to capture user name, data and couple of other thing when something is...
April 28, 2014 at 3:13 pm
Duplicate post. direct replies here. http://www.sqlservercentral.com/Forums/Topic1565668-1633-1.aspx
April 28, 2014 at 12:10 pm
TheSQLGuru (4/28/2014)
Jeff Moden (4/28/2014)
The looping is going to cause a full table scan of a 100 Million row table for each and every loop. That's a shedload...
April 28, 2014 at 12:07 pm
Informer30 (4/28/2014)
I have an select statement which needs to be run 15 times with a slightly different where clause and outputted
to excel.
Rather than me running 15 select statements...
April 28, 2014 at 10:39 am
SQL is delicious (4/28/2014)
Sean Lange (4/28/2014)
SQL is delicious (4/28/2014)
polo.csit (4/28/2014)
my table have 100000000 records....
April 28, 2014 at 8:09 am
SQL is delicious (4/28/2014)
polo.csit (4/28/2014)
my table have 100000000 records. i update the data with...
April 28, 2014 at 8:03 am
To further add to Eirikur's comments, sql does not care which application is connected to it. You don't control permissions by where the connection was originated. You control permissions by...
April 28, 2014 at 7:13 am
Krishna1 (4/24/2014)
Dear SeanThank for reply. Is there another way I can achieve the same logic?
Regards
Krishna
There are several ways to achieve what you are trying to do. Some of it...
April 28, 2014 at 7:09 am
Eirikur Eiriksson (4/24/2014)
How about using the TABLOCK hint?😎
That seems to be dealing with the symptom rather than the cause. 😉
Hints should be used as a last resort. The concurrency issue...
April 24, 2014 at 3:33 pm
rash3554 (4/24/2014)
April 24, 2014 at 3:30 pm
Viewing 15 posts - 5,071 through 5,085 (of 15,381 total)