Viewing 15 posts - 106 through 120 (of 170 total)
I wanted to say that you can not have trigger called only once for many insert statements.
I think u could have done this for the below statement-
insert into...
March 23, 2010 at 4:52 am
SQL Server 2008 upgrade advisor is the tool to identify upgrade issues.
It is recommneded to
-do this analysis.
-then resolve the issues
-test the application
-generate the upgraded script
-and...
March 23, 2010 at 4:38 am
in SQL Server its statement level trigger. For each statement trigger is fired. There is not any solution for the scenario you are thinking of
March 23, 2010 at 4:33 am
---Lines from books online--
A database can become suspect for several reasons. Possible causes include denial of access to a database resource by the operating system, and the unavailability or corruption...
March 23, 2010 at 3:45 am
Using SSIS in place of SP is not going to resolve the performance issue. SP is always fater.
This could be issue of indexing. make sure your select and update query...
March 23, 2010 at 3:21 am
Its better to have a table valued function returning table from the comma seperated list of values as a input parameter.
And then use select with this function to insert the...
March 23, 2010 at 3:17 am
there are three ways-
1. select distinct records and insert it into another dummy table, then truncate all records from original table and then copy records form dummy table to...
March 23, 2010 at 3:09 am
Select
EmpID
, EmpFirstname
, EmpLastName
From EMPLOYEE E inner join TRANSACTION T
On
E. EmpID = T. RegisteredBYEmpID
Where T. RegisteredBYEmpID= T. ApprovedByEmpID
I guess this should work. please try and let me...
March 23, 2010 at 3:01 am
GO can not be used in dynamic string statement.
Disable syntax is correct-
use something like - execute two statements differetnly
SET @string ='use '+'testdb'
exec (@string)
SET @string =' DISABLE TRIGGER TRIGGeR_NAME...
March 23, 2010 at 2:56 am
This is not working if first time you get some error say because-
Column is not correct for constraint or data type is not correct.
March 23, 2010 at 2:29 am
Why are you not using bulk insert or BCP ? Sending so many insert statements is going to take time. Also you can explore MERGE statement in SQL 2008 if...
March 23, 2010 at 12:35 am
Gr8 !!! can you please post the summary of your learnings about surogate keys.
March 23, 2010 at 12:34 am
Yes you can use case statement and generate dynamic SQL query.
March 23, 2010 at 12:33 am
http://www.sqlservercentral.com/Forums/Topic884492-146-1.aspx#bm884650
one more similar thread
March 20, 2010 at 12:34 pm
Please refer to the books online link for how many bytes each data types takes.
msdn.microsoft.com/en-us/library/ms187752.aspx
It will allow you to create table of more than 8060 byte row if you...
March 19, 2010 at 1:32 am
Viewing 15 posts - 106 through 120 (of 170 total)