Viewing 15 posts - 1,711 through 1,725 (of 2,469 total)
But nowhere is there any check for
"if the user id already exists in the database".....
isn't the requirement that the procedure return -1 if the userid exists and if not...then...
July 20, 2005 at 3:04 pm
oh good - always nice to get feedback!
as for "speedy response" - I must tell you that on this site people "fight" with each other to get their responses in...
July 20, 2005 at 10:48 am
Yogender - under Enterprise Manager - if you right click on the table that you created the trigger on - you can go to "manage triggers" - select the trigger...
July 20, 2005 at 10:03 am
surya - you didn't mention in your original post that you wanted to merge 2 databases into 1 - as it stands your way may be the best way!
July 20, 2005 at 9:57 am
Well - Tony would first have to fight George if that happens as I'm sure he'd (dubbya ie) want first dibs at meting out appropriate justice...
July 20, 2005 at 9:48 am
Hi - if you want the syntax for a trigger on tbl_REJ it would be something like this:
CREATE TRIGGER InsertNumber ON tbl_REJ
FOR INSERT
AS
DECLARE @NumberID Int
SET @NumberID = SELECT MAX(IDfield) from Inserted
OR
SET...
July 20, 2005 at 8:53 am
I meant to keep away from this forum as it is more interesting than work - hence takes up "productive time"!
However I am...
July 20, 2005 at 8:44 am
Also - what is the A&E number data type and how is it generated ?!
It should be possible to extract the Patient information and insert into the Patient table that Phil...
July 20, 2005 at 8:23 am
I'm confused...if you insert something then your rowcount is going to be greater than 1 and your procedure is going to return -1
And where in the procedure does it say:
if...
July 19, 2005 at 7:45 pm
maybe it's set to single or restricted user ?!
you could check with "select DATABASEPROPERTYEX('abs', 'useraccess')....
also, what about your permissions ?
July 19, 2005 at 1:52 pm
Mark - please take a look at the DATEADD SQL date function on BOL - it's tailormade for your requirement....
You would do something like : "SELECT DATEADD(wk, 6, getdate()) AS...
July 19, 2005 at 1:29 pm
Only a couple of things come to mind:
are you by any chance creating a temp table on the fly or do you already have a table in your database ?!
also,...
July 19, 2005 at 1:17 pm
sorry - don't know any cold fusion...
what does "#listlen(form.option1values, chr(13))#" do ?!
July 19, 2005 at 12:09 pm
could you pl. post the snippet of code that generates the SQL - incl. variable declaration ?!
Also, how are you parsing your string ? - the length must be...
July 19, 2005 at 11:47 am
Viewing 15 posts - 1,711 through 1,725 (of 2,469 total)