Forum Replies Created

Viewing 15 posts - 1 through 15 (of 18 total)

  • RE: One instance

    thanks Steve,, i am so dumb 🙁

  • RE: One instance

    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...

  • RE: Autonumber

    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...

  • RE: Inconsistent Trigger

    Using a cursor is slowing down the database to a crawl?

  • RE: Inconsistent Trigger

    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...

  • RE: Group By /Compute

    Thanks for your help.

  • RE: Inserting Patterns

    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...

  • RE: Return Value

    Both solutions worked just fine,, thanks a bunch for your help.

  • RE: Using CASE for branched INPUT

    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...

  • RE: Using CASE for branched INPUT

    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...

  • RE: Using CASE for branched INPUT

    Steve,, it does not give me any syntax error if i have just this

    SELECT @cmd = 'UPDATE ' + @Table + ' SET ' + @Variable...

  • RE: Using CASE for branched INPUT

    I am trying something like this but getting syntax erros ?

    CASE @DataType

    WHEN 'INT' THEN SELECT @cmd = 'UPDATE ' + @Table + ' SET ' +...

  • RE: Using CASE for branched INPUT

    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...

  • RE: Using CASE for branched INPUT

    one more byte of help

    How would I make something like that

    select @cmd = 'update ' + @targettable + ' set ' + @variable + ' = cast( ' + @value...

  • RE: Using CASE for branched INPUT

    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...

Viewing 15 posts - 1 through 15 (of 18 total)