Viewing 15 posts - 61 through 75 (of 1,124 total)
As per the conditions mentioned, the following solution should work.
ALTER TRIGGER [dbo].[Trg_Insert_Temp2]
ON [dbo].[Temp1]
FOR INSERT,UPDATE...
--Ramesh
February 5, 2010 at 7:20 am
Jeff Moden (2/4/2010)
I'm not sure that it will do exactly what you want and I believe it's been deprecated in 2k5, but take a look at sp_MakeWebTask in Books Online.
I...
--Ramesh
February 5, 2010 at 5:21 am
Can you post the queries which are failing on batch insert/update?
--Ramesh
February 5, 2010 at 5:06 am
Using SQL OLEDB:
Provider=SQLOLEDB;Integrated Security=SSPI;User ID=myUserID;Initial Catalog=myDataBase;Data Source=myServerAddress;Password=myPassword;
Using SQL Native Client:
Provider=SQLNCLI;Server=myServerAddress;Database=myDataBase;Uid=myUsername; Pwd=myPassword;
--Ramesh
February 5, 2010 at 4:57 am
I don't think so there is any equivalent function in SQL Server. But you can create you own function using the existing REPLACE function.
--Ramesh
February 5, 2010 at 4:46 am
Here is an article that explains how tally tables can be used solve many RBAR problems in a set based method.
http://www.sqlservercentral.com/articles/T-SQL/62867/%5B/url%5D
--Ramesh
February 5, 2010 at 4:37 am
You need to grant ALTER permissions on the table.
GRANT ALTER ON OBJECT::<<Table>> TO <<User>>
--Ramesh
February 5, 2010 at 4:22 am
Look for OVER() clause with PARTITION BY clause and aggregating with SUM function in BOOKS ONLINE. Something like this should do.
SELECT *, ( Units * 100 ) / SUM(...
--Ramesh
June 3, 2009 at 9:11 am
Yes, you can connect to any SQL 2005/2000 database engine (not sure about the earlier versions) from SSMS 2008 Express.
Follow this link for more details
http://msdn.microsoft.com/en-us/library/ms365247.aspx
--Ramesh
June 3, 2009 at 8:47 am
twillcomp (6/3/2009)
The insert process locks the 'second row' when it starts the insert and then the trigger fires.
The AFTER triggers fires only after the insert is completed but the...
--Ramesh
June 3, 2009 at 8:28 am
Just a stupid question, are you saying that the procedure is not executing (or raising some errors) or the ELSE part is not executing? I am asking you this...
--Ramesh
June 3, 2009 at 7:38 am
You need to set the "ConnectionString" property of the destination connection manager's "Expressions" collection using global variables or package configurations.
--Ramesh
June 2, 2009 at 5:49 am
Can you explain what should be the expected behavior of the IF block?
What you are trying to do within the trigger?
Aren't you using the main table instead of...
--Ramesh
June 2, 2009 at 5:42 am
You have to enclose the object names in [] when the object name contains special characters, keywords etc.
select * from [cic-nic-2].Arrow.dbo.circle
--Ramesh
June 2, 2009 at 5:35 am
Using SQL 2005's UNPIVOT method
SELECT*
FROM(
SELECT[Name], CONVERT( VARCHAR(100), AGE ) AS Age
FROMEmp
) E
UNPIVOT
(
RowValue FOR RowType IN( [Name], [Age] )
) UP
--Ramesh
June 2, 2009 at 5:31 am
Viewing 15 posts - 61 through 75 (of 1,124 total)