Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)

  • RE: How do I generate DB script at runtime?

    You could create a copy of an existing database that has the structure you want to put your subset of data into and then use sp_msForEachTable to delete all rows...

  • RE: Is it wise to handle business logic in sql procedure

    I'm curious to see how people deal with source control issues with sprocs if you're putting your business logic in the database. For example, lets say you create software...

  • RE: Concurrency Issue in Update

    You need to catch the DBConcurrencyException in your C# code. In the catch you can present the user with the new data and the data they entered and let...

  • RE: Concatenate field values

    DECLARE @details AS VARCHAR(MAX)

    SET @details = ''

    DECLARE @lineNumbers AS VARCHAR(MAX)

    SET @lineNumbers = ''

    SELECT @details = @details + Detail + ', ', @lineNumbers = @lineNumbers + CAST(LineNumber AS VARCHAR) + ',...

  • RE: nested transaction?

    Nested transactions are supported in SQL Server. The only caveat, if you want to call it that, is that if you do a rollback, it sets @@TRANCOUNT to 0...

  • RE: Number Column

    It is not really clear what you're trying to accomplish, or why you're trying to accomplish it. A simple query to show what you've given here is:

    SELECT ROW_NUMBER() OVER...

  • RE: Nested JOINS confusion

    Grant Fritchey (7/10/2008)


    [...]Second, query processing order causes data to be limited first by join criteria and second by the WHERE clause. If you put all the criteria in the WHERE...

  • RE: Need T-SQL to indicate if getdate() = Sunday

    if datename(weekday, getdate()) = 'Sunday'

  • RE: Query Help Kind of Tricky??

    select

    case

    when Transaction_Type like 'Down Time%'

    then Transaction_Type

    else 'my hard coded text'

    end

    from mytable

  • RE: exporting sql query to xls file

    SSMS can do this as well. Just run the query in a new query window, select all the data in the results panel and copy/paste it into a new...

  • RE: Job Specialization - Boon or Bane?

    Ted Pin (5/30/2008)but that breaks one of those "golden" rules of job hunting: don't waste HR's time if you don't meet the requirements.

    This definitely wouldn't be one of my "golden...

  • RE: Connection timing out on some servers, not on others

    Thanks for the response Steve. We got a call this morning and it emerged that 'we killed all other sessions' actually meant 'we killed all other sessions - except...

Viewing 12 posts - 1 through 12 (of 12 total)