Forum Replies Created

Viewing 15 posts - 46 through 60 (of 137 total)

  • RE: MS SQL 7 Stored proc serial or parallel execution

    You should be wrapping things in a transaction so this doesn't occur. Like you do w/ begin and commit tran. Have you considered using Component Services COM+ applications to...

  • RE: Linking Tables

    Try this:

    SELECT Inventory.Item, c.CompName

    from Companies c ,Inventory i where

    (c.ID = i.ManufacturerID )

    union select Inventory.Item, s.SvcName

    from companies s, inventory i

    where (s.ServicerId = i.ServicerId)

    Darren

  • RE: help with complex query/results

    You'll have to build a dynamic sql statement in a loop. Loop on the number of tests creating a select statement like this:

    declare @SqlClause as varchar(500)

    select @SqlClause = 'select...

  • RE: Query Execution plan - strange icon

    I'm not sure what it is but maybe if you post your query we could brainstorm. If it's not in BOL, then you could try removing parts of the...

  • RE: version control

    We use source safe. However, we've had to create custom tools to integrate tracking of stored procedures and some of our parameter tables that we want to track change...

  • RE: Create table on linked server

    Check out BOL topic "OPENQUERY". This allows you to call an insert query from a linked server.

    Darren

  • RE: Replacing blanks with Null through a transfer

    1) In the Transformations tab of DTS properties. Double click on the line from the column that you want to transform to nulls. This should bring up a...

  • RE: job error status performing completion action

    Did you check the system application logs on the server? Instead of rebooting can't you just kill that process?

    Darren

  • RE: procedure to return set of records

    My personal opinion would be to return all records that might be used and then process the subsets on the client side. You can easily do the loop by...

  • RE: Database scan tool?

    Wrap the above query in a cursor, then for each table name from sysobjects you can dynamically build a select query then call EXECUTE passing in the sql statement with...

  • RE: 'Analysis of database' in Errorlog

    Are you sure you don't have any jobs running on startup?

    Darren

  • RE: DB Timeout /Losing Records

    When your query is running, try running sp_who2 in another session of query analyzer and see if there are any blocks. Does this table not have an index with...

  • RE: Database scan tool?

    select * from sysobjects a, syscolumns b

    where a.id = b.id

    and b.name = 'YourColumnName'

    Darren

  • RE: Creating global procs

    OK, I got that working but I now have another issue. The new proc can run from any database but returns results only from the master database. Like...

  • RE: procedure to return set of records

    Could you give me the purpose of this query in a real example so I can think it through more?

    Darren

Viewing 15 posts - 46 through 60 (of 137 total)