Viewing 15 posts - 1 through 15 (of 18 total)
ok,, lets change the requirement a little bit
instead of two tables lets use one but include date columns
so i have guid and date
every on has at least one record and...
March 5, 2002 at 3:26 pm
I am collecting some patient data based on some unique survey,, a patient might report many side effects ,, i am calling these side effects observations ,, i want to...
February 13, 2002 at 1:57 pm
Using a cursor is slowing down the database to a crawl?
February 7, 2002 at 9:40 am
Thank you Steve.
I am not getting the desired results still. Let me go over what I want so you have better idea.
remsae1,remsae2,remsae3,remsae4,remsae5 can have one of the following values
C,H and...
February 5, 2002 at 12:32 pm
Here is I am at for now
DECLARE patt CURSOR
FOR
select distinct column_name, table_name from information_schema.columns
where column_name like '%patt' and table_name like 'drugs%'
OPEN patt
DECLARE @tablename as varchar(15)
DECLARE @Patt...
December 21, 2001 at 10:43 am
Both solutions worked just fine,, thanks a bunch for your help.
December 21, 2001 at 9:55 am
just to update u Steve,, following works ,, as long as i dont try to convert @QuestDate to smalldatetime it works fine,, i dont know why? actual type of questdat...
December 5, 2001 at 7:33 pm
Thanks Steve,, i think i almost got it ,,, i have the following trigger and getting this error message when i trigger it with sample data ,,, i am sure...
December 5, 2001 at 3:56 pm
Steve,, it does not give me any syntax error if i have just this
SELECT @cmd = 'UPDATE ' + @Table + ' SET ' + @Variable...
December 5, 2001 at 2:29 pm
I am trying something like this but getting syntax erros ?
CASE @DataType
WHEN 'INT' THEN SELECT @cmd = 'UPDATE ' + @Table + ' SET ' +...
December 5, 2001 at 1:59 pm
Thanks,, is there a simple way to tell if a given variable/column need quotes or it does not --- or do i have to check all data types as in...
December 5, 2001 at 1:25 pm
one more byte of help
How would I make something like that
select @cmd = 'update ' + @targettable + ' set ' + @variable + ' = cast( ' + @value...
December 5, 2001 at 6:33 am
Steve,,, when i try that to find Variable 'DOB' -- i get 5 answeres. It pulls out DOB from Tables, Views etc... is there a way to limit the answers...
December 4, 2001 at 2:11 pm
Viewing 15 posts - 1 through 15 (of 18 total)