Forum Replies Created

Viewing 15 posts - 211 through 225 (of 346 total)

  • RE: TSM

    Whatever it is I would stick to an sql server backup to disk then copy that to tape.


    Cursors never.
    DTS - only when needed and never to control.

  • RE: unwanted blank row in txt file when using isql >>

    You can format the rows yourself and insert them into a global temporary table and then do the output from that.

    You can then use bcp or isql for the output.

    ...


    Cursors never.
    DTS - only when needed and never to control.

  • RE: A special querry

    Something like this.

    Could put it in a function.

    declare @i int, @j-2 int, @end int

    select @i = 1, @j-2 = 0, @end = 0

    while @end = 0

    begin

    select @i = charindex(@i+1,',' +...


    Cursors never.
    DTS - only when needed and never to control.

  • RE: Importing Text Files

    What format are the text files in?

    I would try to do this using bcp.

    Treat the import as a separate step to anything else and have the staging table the same...


    Cursors never.
    DTS - only when needed and never to control.

  • RE: Database Connections

    You can use a kill command to get rid of them.

    This will terminate the connection as soon as it can.

    If the connection is in the middle of a query it...


    Cursors never.
    DTS - only when needed and never to control.

  • RE: When to Use Dynamic SQL

    I use dynamic sql for converting hex

    set@sql = 'set @bin = 0x' + @char

    set@parm = '@bin varbinary(' + convert(varchar(10),len(@char)/2) + ') output'

    exec sp_executesql @sql, @parm, @bin output

    And for getting the...


    Cursors never.
    DTS - only when needed and never to control.

  • RE: BCP question

    I never rely on the number of records copied as reported by bcp.

    I always get a control file from thye source which contains summary info (e.g. no. of recs) and...


    Cursors never.
    DTS - only when needed and never to control.

  • RE: Subselect problem

    SELECT ITEMID FROM ITEMS

    WHERE ',' + @Rule + ',' like '%,' + convert(varchar(10),itRULE) + ',%'

    This will only scan an index though.


    Cursors never.
    DTS - only when needed and never to control.

  • RE: When and how do you move changes to production?

    see

    http://www.nigelrivett.com

    Administering SQL Server Release Control

    direct link at the moment

    http://home.btclick.com/NIGELRIVETT/SQLServerReleaseControl.htm


    Cursors never.
    DTS - only when needed and never to control.

  • RE: Date Format

    You are trying to use English format dates. With v6 if the server or operating system were installed as American then sql server would default to mm/dd/yyyy and it was...


    Cursors never.
    DTS - only when needed and never to control.

  • RE: Error Description in T-SQL

    To get the error message you need to look at the output buffer as the substitutions are not held anywhere.

    An example of how to do this is at

    http://www.nigelrivett.com

    direct link...


    Cursors never.
    DTS - only when needed and never to control.

  • RE: #table creation using Dynamic SQL

    see

    http://www.nigelrivett.com

    Access Temp Tables Across SPs

    Which includes a bit on accessing temp tables created in d-sql.


    Cursors never.
    DTS - only when needed and never to control.

  • RE: sp_executesql

    Sorry to advertise another site here but you might look at

    http://www.sqlteam.com/Forums/topic.asp?TOPIC_ID=12229

    Which was concerning someone else trying to build an audit trail trigger.

    Also info that might be applicable at

    http://www.nigelrivett.com

    sp_executeSQL

    Columns_updated()

    Generate Trigger

    p.s. I...


    Cursors never.
    DTS - only when needed and never to control.

  • RE: ISQL script for Creating user, database and tables

    try a

    use sharan

    statement.


    Cursors never.
    DTS - only when needed and never to control.

  • RE: Thinking about going DBA..

    One difference in being a dba to most other work (similar to networking though) is that a main part of the job is protecting a company from it's own incompetence.

    You...


    Cursors never.
    DTS - only when needed and never to control.

Viewing 15 posts - 211 through 225 (of 346 total)