Viewing 15 posts - 1,831 through 1,845 (of 1,917 total)
Here is what i have tried so far.
CREATE TRIGGER [dbo].[TriggerTestforDelete]
ON [dbo].[TriggerTest]
FOR DELETE
AS
--DECLARE VARIABLES Having one to one Mapping...
April 8, 2010 at 3:46 am
You can get all the 4 deleted records. As said by Dave, query the "Deleted" table to get your deleted records..
Here is sample test code
IF OBJECT_ID('TEST') IS NOT NULL
DROP TABLE...
April 8, 2010 at 2:15 am
Will something like this help you?
UPDATE REQ
SET consumed = 1 , matched = 1
FROM REQUEST REQ
INNER JOIN
(
SELECT
ROW_NUMBER() OVER(PARTITION BY mobile_phone ORDER BY mobile_phone, parameters) ROW_NUM
,mobile_phone...
April 8, 2010 at 1:03 am
you can use something like
Exec Master.dbo.xp_fileexist YOUR_COLUMN_NAME
Go thro this article to know more about xp_FileExist
http://www.sqlservercentral.com/articles/Stored+Procedures/xpfileexist/183/
April 8, 2010 at 12:58 am
2). After a while (few seconds) that remote process will send back the result to my application via HTTP as well. Thus it is an asynchronous process
What and how will...
April 8, 2010 at 12:45 am
you have given how your desired result must be withour showing how your initial table looked like..please post some sample for the intial table and even clearer description of what...
April 8, 2010 at 12:18 am
Is the ID unique for each mobile_phone and parameter combined?
April 8, 2010 at 12:03 am
Here is one version of the code to delete duplicate values
-- Create the table
if object_id('Duplicates') is not null
drop table Duplicates
Create table Duplicates
(
c1 int
)
-- insert some sample records
declare @i int set...
April 7, 2010 at 11:00 pm
I did not understand your requirement fully, so assuming this is what u are asking, i have made some sample data and query for your requirement.
Assumptions :
You need Employees that...
April 7, 2010 at 12:28 am
Mate, post your table structures (CREATE TABLE statements), Some sample data (INSERT INTO script), Indexes and Constraints if any and your expected result based on the sample data. THis will...
April 6, 2010 at 11:40 pm
Hi there, this is the working version of the code.. please ignore the code present in the post above
BUT BEFORE U MOVE ONTO THE CODE, I WOULD SUGGEST U READ...
April 6, 2010 at 10:56 pm
Will this help you?
I am writing this code from my home where i have no access to SQL Server. once i reach office i will check the validity of that...
April 6, 2010 at 8:51 pm
yes, as vyas pointed out, use BCP.. very fast utility to bulk insert millions of rows..
April 6, 2010 at 7:37 am
David, that was not my requirement, the OP has asked for it 🙂 i tried my level best to produce a result without case and dynamic sql 🙂
April 6, 2010 at 7:31 am
Viewing 15 posts - 1,831 through 1,845 (of 1,917 total)