Viewing 15 posts - 16 through 30 (of 35 total)
Please provide more information.
1. How do you want to update the table?
2. What is the logic in the loop?
3. Are you going to update one table or multiple tables?
July 6, 2012 at 2:04 pm
We have implemented by storing the application logged in user in the last modified user column for all the table which will be audited via a trigger to the audit...
July 5, 2012 at 11:53 am
If you have a transaction log backup then you can restore to the point of time when the DELETE statement was executed or upto log sequence number (LSN) to recover...
July 5, 2012 at 11:47 am
I think SSC should filter out these type of questions from publishing...
July 5, 2012 at 10:09 am
This is totally an incorrect answer. According to the http://msdn.microsoft.com/en-us/library/ms175049.aspx it shows the below 10 indexes:
1. Clustered
2. Nonclustered
3. Unique
4. Columnstore
5. Index with included columns
6. Index on computed columns
7. Filtered
8. Spatial...
July 5, 2012 at 2:05 am
Hi,
I don't know how it will affect your performance but definetely cursor is going to slow down the performance of your script above. In your case, how many records the...
June 26, 2012 at 11:35 pm
Hi,
What is the size of the tables you are deleting? If they are big delete the data in chunks.
Regards,
Ravi.
June 22, 2012 at 12:48 am
Hi,
SQL stores the current identity value generated in last_value column of sys.identity_columns table with this value SQL knows which value to be generated next based the increment_value column.
--Ravi.
June 21, 2012 at 12:01 pm
Hi Farooq,
You cannot use SELECT ... INTO with a table variable, you should only use INSERT INTO ... SELECT.
--Ravi.
June 21, 2012 at 11:43 am
Hi Mohan,
What is the size of the log file? If the log file is big try to take the backup of the log files (provided your recovery model is FULL...
June 21, 2012 at 11:25 am
Hi gpm.alwyn,
Along with table structure, please provide the query which you are using currently.
--Ravi.
June 21, 2012 at 11:21 am
Hi Prasad,
Please try this SELECT statement below:
select t.ID,t.name,t.value,(select sum(s.value) from T1 s where s.id<=t.id)
from T1 t
June 21, 2012 at 11:13 am
Performance wise, solution given by Cadavre is good and Dwain's query is also good if the CASE statement is avoided. The CASE statement is adding some weight to the query's...
June 19, 2012 at 6:58 am
Hope this should work. Please try this...
update VectorReplica.dbo.PARCELS set PARCEL_ID = b.new_pid from Ranieranneaxparcels AS A
inner join VectorReplica.dbo.PARCELS as B on
(B.[PARCEL_ID] = b.[NEW_PID])
-Ravi.
February 27, 2012 at 9:32 pm
And updated with latest service pack (SP2)
March 9, 2008 at 1:30 am
Viewing 15 posts - 16 through 30 (of 35 total)