Viewing 15 posts - 76 through 90 (of 164 total)
Hi Richard,
I Agree that INSERTED and DELETED tables have blob fields within INSTEAD OF triggers. Thank you for correcting the mistake. However, I disagree with what you say with UPDATETEXT/WRITETEXT. If you...
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
November 30, 2005 at 11:45 pm
SprocKing says: "I implemented audit triggers on tables with both text and image columns in them. The problem is that you can't refer to binary columns in the inserted and...
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
November 29, 2005 at 8:48 pm
You can use stored procedure if all your Create/Update/delete operations happen through stored procedures only.
Definitly it will improve the performance. I have implemented certain operations (not auditing) through triggers...
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
November 29, 2005 at 8:46 am
Author says:
What the INSTEAD OF trigger does is override the normal insert,delete or update statement and leave that responsibility to your Trigger. You will be responsible for inserting, deleting...
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
November 29, 2005 at 4:50 am
I am replying after a looooooooooooong time ![]()
On the first method the author is using a not so optimized query. He is using different methods...
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
November 1, 2005 at 10:25 pm
In addition to the above pure TSQL methods, you can try another option using any of the .net language.
SQL Server 2005 comes with another new feature called user defined aggregates. ...
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
October 18, 2005 at 11:59 pm
I have think of two solutions:
Solution 1:
Declare @VehicleNo varchar(10), @Damages Varchar(50)
Create table #Damages (VehicleNo Varchar(10) , Damages Varchar(50))
Select @VehicleNo =''
Select @VehicleNo = Min(VehicleNo) from TBL_Damage Where VehicleNo >@VehicleNo
While @VehicleNo is...
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
October 18, 2005 at 11:26 pm
On item 2,
Transaction is there to maintain atomicity. That means either 100% of the code is executed without error or none.
If you have only one direct insertion to...
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
August 10, 2005 at 2:07 am
This is the formula: Union = Union All + Distinct ![]()
When you use UNION it will display only the distinct records.
Please use UNION ALL if...
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
August 8, 2005 at 6:22 am
Is your stored procedure run as a transaction?
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
July 19, 2005 at 6:19 am
You need to ask find afew points:
How Big is your table?
Do you have a clustered index onthe table?
Is there any other services running (and consuming more memory) on the same...
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
July 19, 2005 at 6:10 am
There is a primary difference between ROWID of oracle and Identity of SQL Server. You ROWID is implicitly available in Oracle. In SQL Server You need to add that column.
I...
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
July 7, 2005 at 12:32 am
Therre are a few things you can check on.
Maximum memory allocated to SQL Server (on EM, check on properties)
Updating the tables with triggers will definitly will more work to...
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
July 6, 2005 at 8:43 pm
I agree on principle. If you are including the logic into the replication sprocs, besically you are manually merging it. However, you dont have to make the replication as "merge...
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
July 6, 2005 at 8:29 pm
I dont see a need for that.
Cheers,
Prithiviraj Kulasingham
http://preethiviraj.blogspot.com/
July 6, 2005 at 5:42 am
Viewing 15 posts - 76 through 90 (of 164 total)