Click here to Skip to main content
15,913,919 members
Home / Discussions / Database
   

Database

 
GeneralRe: Multi select queries ???? Pin
Farhan Noor Qureshi22-Nov-06 5:25
Farhan Noor Qureshi22-Nov-06 5:25 
Questionodbc Pin
gayanmadu21-Nov-06 18:34
gayanmadu21-Nov-06 18:34 
AnswerRe: odbc Pin
Paul Conrad21-Nov-06 19:34
professionalPaul Conrad21-Nov-06 19:34 
Questiontransfering data Pin
Karma3125121-Nov-06 10:31
Karma3125121-Nov-06 10:31 
AnswerRe: transfering data Pin
Leah_Garrett21-Nov-06 18:11
Leah_Garrett21-Nov-06 18:11 
Questiondata integrity using triggers check date Pin
drequinox21-Nov-06 7:38
drequinox21-Nov-06 7:38 
AnswerRe: data integrity using triggers check date Pin
Chris Meech21-Nov-06 8:11
Chris Meech21-Nov-06 8:11 
AnswerRe: data integrity using triggers check date Pin
Eric Dahlvang21-Nov-06 10:13
Eric Dahlvang21-Nov-06 10:13 
CREATE TRIGGER tgrImporting ON [dbo].[ImportedData] 
FOR INSERT
AS

if (exists(select id from inserted where charindex('-',inserted.importedcol)>0))
begin
	print 'found hyphen'
end

if (exists(select id from inserted where importeddate = getdate()))
begin
	print 'found date'
end

if (exists(select id from inserted where importedcol in(select checkfield from checktable)))
begin
	print 'found values in other table'
end

You didn't really mention what you want to do if any of the a,b,c conditions are met...so I just put print statements in the example.

--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters

GeneralRe: data integrity using triggers check date Pin
drequinox21-Nov-06 11:11
drequinox21-Nov-06 11:11 
QuestionRe: data integrity using triggers check date Pin
drequinox21-Nov-06 11:12
drequinox21-Nov-06 11:12 
GeneralRe: data integrity using triggers check date Pin
Pete O'Hanlon21-Nov-06 22:57
mvePete O'Hanlon21-Nov-06 22:57 
QuestionHelp with SQL query!!! Pin
bazpaul21-Nov-06 4:51
bazpaul21-Nov-06 4:51 
AnswerRe: Help with SQL query!!! Pin
Farhan Noor Qureshi21-Nov-06 4:58
Farhan Noor Qureshi21-Nov-06 4:58 
GeneralRe: Help with SQL query!!! Pin
bazpaul21-Nov-06 5:00
bazpaul21-Nov-06 5:00 
AnswerRe: Help with SQL query!!! Pin
Eric Dahlvang21-Nov-06 9:53
Eric Dahlvang21-Nov-06 9:53 
QuestionStore Proc Problem Pin
tthellebuyck21-Nov-06 4:49
tthellebuyck21-Nov-06 4:49 
AnswerRe: Store Proc Problem Pin
Leah_Garrett21-Nov-06 17:51
Leah_Garrett21-Nov-06 17:51 
GeneralRe: Store Proc Problem Pin
tthellebuyck22-Nov-06 3:15
tthellebuyck22-Nov-06 3:15 
QuestionUnable to update the record. Pin
Arun Hegde21-Nov-06 3:58
Arun Hegde21-Nov-06 3:58 
AnswerRe: Unable to update the record. Pin
Colin Angus Mackay21-Nov-06 4:27
Colin Angus Mackay21-Nov-06 4:27 
QuestionHow to creat the registration form for Acces Pin
lopa1221-Nov-06 3:32
lopa1221-Nov-06 3:32 
AnswerRe: How to creat the registration form for Acces Pin
Paul Conrad21-Nov-06 19:39
professionalPaul Conrad21-Nov-06 19:39 
QuestionCreating a database Pin
Christer Claesson21-Nov-06 1:17
Christer Claesson21-Nov-06 1:17 
AnswerRe: Creating a database Pin
ChandraRam21-Nov-06 1:48
ChandraRam21-Nov-06 1:48 
AnswerRe: Can't connect to Mysql "godaddy" Pin
Paul Conrad21-Nov-06 19:41
professionalPaul Conrad21-Nov-06 19:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.