Forum Replies Created

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

  • RE: OSQL and ODBC DSN

    If that is the case, then how do applications that use DSN connections connect to a ODBC datasource without entering a SQL Server password?

    Also, is there then no way to...

  • RE: OSQL and ODBC DSN

    When I add the -U test_user to the osql command, I get an error message saying "Login failed for user test_user". I do not understand why it is not able...

  • RE: OSQL and ODBC DSN

    I do not want to connect with a trusted connection (-E option). I want to use the test_user SQL Server login and test_pwd SQL password. Thanks for responding.

  • RE: Help Ordering Result Set

    Try "SELECT rtrim(Employer), date from table_name ORDER BY rtrim(Employer), date"

  • RE: How to ignore errors inside triggers

    Thank you all for your responses. I have been working on this for a few days now based on the responses I have got. I think I need to clarify...

  • RE: How to ignore errors inside triggers

    Thank you all for your responses. From the links sent by Carl Federl (part II), I believe it is possible to make the trigger not abort the transaction by issuing...

  • RE: How to ignore errors inside triggers

    The Mirror table has a primary key constraint. When we try to insert two records with the same primary key ID in the mirror table, it generates an error. I...

  • RE: DTS DTSTransformStat_InsertQuery Error Handling

    I am running the Package on my local SQL Server. Why am I not seeing any Msgbox? Since this is only a test, I will remove the MsgBox when I...

  • RE: how write an Immediate If in SQL

    There is a inbuilt function called XMLElement in DataDirect Query Builder for XML that does what I want. So, I wrote my own UDF that woudl do the same thing. But, I am not sure...

  • RE: NULL Problem

    After you have given you first update statements give a second update statement with a select CASE like this

    Update enrolltemp

    set region = C.REGION

    from  Enrolltemp E, COUNTY_LISTING C

    join Enrolltemp ON enrolltemp.[Case...

  • RE: Need to insert an integer value into a variable from a query

    Try this:

    DECLARE @tablename char(12), @procedure varchar(1000)

    set @tablename = 'Groupings'

    set @procedure = 'declare @retval int; select @retval = count(*) from ' + @tablename + '; select @retVal'

    exec(@procedure)

     

    The Exec command does not...

  • RE: how write an Immediate If in SQL

    I worked around the issue by using a combination of COALESCE and NULLIF...Here is how.

    @Some_String_Variable + COALESCE(NULLIF('<Telephone>' +

       COALESCE(@PhoneNumber, '') + COALESCE(@PhoneExtn, '') +    '</Telephone>', '<Telephone></Telephone>'), '') + @SomeOther_String_Variable

    If @PhoneNumber is...

  • RE: how write an Immediate If in SQL

    I think I found the solution! Here is what I found in the books online:

    "When you concatenate null values, either the concat null yields null setting of sp_dboption or SET...

  • RE: how write an Immediate If in SQL

    Thanks for the reply. My problem is that I have about 50 or 60 such tags to create and I do not want to declare so many variables and define...

  • RE: how write an Immediate If in SQL

    I guess there is no connection between my subject and message in my previous post. I need to create a T-SQL statement that works like this

    iif(@EmployeePhone is NULL, NULL,

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