No announcements
Found 1932776 threads
-
0 Votes
Check if value exist before insert
I have a for loop that will insert records if a value does not exist in a table.Answered | 6 Replies | 16843 Views | Created by Brian205 - Tuesday, August 23, 2011 3:47 AM | Last reply by Reza Raad - Tuesday, August 23, 2011 11:31 AM -
0 Votes
Check for Duplicate Record Before Inserting a New record
But you do not even know the difference between row and records!Answered | 3 Replies | 1054 Views | Created by Shayaan - Tuesday, July 8, 2014 3:45 PM | Last reply by --CELKO-- - Tuesday, July 8, 2014 8:20 PM -
0 Votes
Already exist check before insertion in sql server
Hi I guess you can do like this commandText = "If Not Exists(Select 1 From User Whre UserName= 'Test') Insert into User Values ...Answered | 1 Replies | 1963 Views | Created by xtreamiest - Wednesday, August 10, 2011 3:39 PM | Last reply by Kris444 - Wednesday, August 10, 2011 3:55 PM -
0 Votes
Check for existance before inserting
Also, if you want new requests to be allowed: /* CREATE TABLE #connectTable (requestingUserID INT, targetUserID INT, requestedDateTime DATETIME, respondedDateTime ...Answered | 4 Replies | 877 Views | Created by Dave Parker - Tuesday, November 3, 2015 6:03 PM | Last reply by Patrick Hurst - Tuesday, November 3, 2015 8:09 PM -
4 Votes
Check If Data Already Exists Before Insert
In that case I would suggest you to create a stored procedure which checks if the data exists or not and then performs the insertion.Answered | 7 Replies | 7448 Views | Created by IndigoMontoya - Thursday, March 19, 2015 6:27 PM | Last reply by Syed Shakeer Hussain - Thursday, March 19, 2015 7:34 PM -
1 Votes
Check For Record, Insert if Non-existent
However, not all records start with 'EPA'.Answered | 9 Replies | 4672 Views | Created by Jay Mazz - Friday, June 5, 2009 3:28 PM | Last reply by Jonathan Kehayias - Friday, June 5, 2009 4:31 PM -
0 Votes
Check if Data is Already Exists Before Insert
RAISERROR ('Erro in Inserting RecordsAnswered | 3 Replies | 13550 Views | Created by Learn4Develop - Friday, December 31, 2010 8:03 AM | Last reply by eralper - Friday, December 31, 2010 8:33 AM -
0 Votes
Check for existing ID before inserting or updating
0 BEGIN FETCH NEXT FROM cur_admin INTO @Id,@Lname,@Fname,@Active WHILE @@Fetch_status = 0 BEGIN IF EXISTS (SELECT PersonID FROM Person WHERE PersonID = @Id) AND ...Answered | 10 Replies | 1301 Views | Created by vmrao - Friday, September 19, 2014 3:55 PM | Last reply by vmrao - Sunday, September 21, 2014 2:41 AM -
2 Votes
Check Before Insert
[Name] from #SrcTab as t1 where not exists ( SELECT * FROM #DesTab as t2 WHERE t2.Answered | 7 Replies | 1219 Views | Created by Priya Bange - Sunday, April 6, 2014 6:49 PM | Last reply by KEAARPEE - Monday, April 7, 2014 2:06 PM -
0 Votes
Check rows before insert
Just do the insert.Answered | 3 Replies | 630 Views | Created by simonxy - Wednesday, April 20, 2016 9:16 AM | Last reply by Russ Loski - Wednesday, April 20, 2016 9:57 AM -
0 Votes
How to insert row if not exist Before
you can make of exists create PROC [dbo].Answered | 2 Replies | 1528 Views | Created by Ahmed_Soft3 - Wednesday, May 1, 2013 5:06 PM | Last reply by Sarat (SS) - Wednesday, May 1, 2013 5:15 PM -
0 Votes
Check to see if a row exists in another table before insert
This approach allows you to analyze the contents of the tables before performing any INSERTs etc...Answered | 8 Replies | 8730 Views | Created by Cammyr - Sunday, March 4, 2007 8:08 PM | Last reply by Cammyr - Monday, March 5, 2007 9:32 AM -
0 Votes
update the record in case it existed and insert in case it is not existed.
What are you passing for ID columns when you want to insert row?Answered | 3 Replies | 981 Views | Created by nikoo56 - Tuesday, April 29, 2014 6:47 PM | Last reply by Naomi N - Wednesday, April 30, 2014 12:37 AM -
1 Votes
how will u check for duplicates before insert a value in a table ado.net c#
If connected, use an Stored procedure to check if the value exists.Answered | 7 Replies | 11250 Views | Created by sabari prog - Tuesday, January 18, 2011 6:21 AM | Last reply by Rahul Shenoy - Tuesday, January 18, 2011 10:23 AM -
0 Votes
Check and prevent insert of record.
v.vt's worked when i changed the start to if not exists(select top 1 * From if not exists(select 1 ...Answered | 8 Replies | 2978 Views | Created by ServerScavenger - Tuesday, January 31, 2012 11:36 PM | Last reply by ServerScavenger - Thursday, April 19, 2012 5:31 AM -
0 Votes
UNIQUE constraint vs checking before INSERT
If you choose to manage this at the application level - which is the alternative you propose - then EVERY application that attempts to insert rows must be designed to both ...Answered | 5 Replies | 2087 Views | Created by blastoSO - Thursday, February 20, 2014 12:30 AM | Last reply by Kalman Toth - Thursday, February 20, 2014 2:40 PM -
0 Votes
Checking to see if a record exists
You don't have to rectify that in your base tables in SQL - you can add matching-typed columns using a Derived Column or Data Conversion transform before the Lookup transform.Answered | 2 Replies | 3127 Views | Created by d-limiter - Wednesday, February 24, 2010 10:47 PM | Last reply by decent1230 - Thursday, February 25, 2010 12:30 AM -
0 Votes
Lookup or script task - check for record exists before doing dataflow
(check syntax) Declare @Found bit IF Exists (Select * FROM TABLE WHERE Column = the_loop_variable) SET ...Answered | 1 Replies | 1020 Views | Created by shiftbit - Monday, October 21, 2013 9:08 PM | Last reply by B3nt3n - Monday, October 21, 2013 10:13 PM -
1 Votes
Checking record existence on composite value
TRY: INSERT INTO app_insert_into SELECT AIF.* FROM app_insert_from AIF LEFT JOIN app_insert_into AIT ON AIF.ApplicantID=AIT.ApplicantID AND ...Answered | 6 Replies | 2978 Views | Created by Y a h y a - Wednesday, October 12, 2011 3:44 AM | Last reply by vinaypugalia - Wednesday, October 12, 2011 11:40 AM -
0 Votes
How to update a record if it exists or INSERT if it doesn't
Try below: create table #test (c2 int,c1 varchar(100)) Insert into #test Values (1,'099 11-12 Midwest Plumbers') create proc test_sp(@c2 int,@c1 ...Answered | 1 Replies | 1443 Views | Created by green2004 - Wednesday, November 6, 2013 2:53 PM | Last reply by SQLZealots - Wednesday, November 6, 2013 3:04 PM - Items 1 to 20 of 1932776 Next ›
No announcements