Forum Replies Created

Viewing 15 posts - 481 through 495 (of 1,315 total)

  • RE: Need help changing Owners

    You could right-click on the view in the object browser and select Edit...the resulting script should be an ALTER VIEW script with the correct schema name.  It would require at...

  • RE: Problem Using CInt When Encountering Empty String

    How about this:

    If IsNumeric(DTSSource("Col004")) Then

        DTSDestination("TTLCrd") = CInt(DTSSource("Col004"))

    Else

        DTSDestination("TTLCrd") = 0

    End If

  • RE: Bulk Insert: Unexpected end-of-file (EOF) encountered in data file.

    Does the last line of your format file have a trailing CR/LF?  Since it is complaining about the last field of the last line, I think this might be the...

  • RE: The May Car Update

    Any electric motor has instant full torque, this is not unique to the Prius.  But full torque is the worst possible way to try to start on snow or ice, kind...

  • RE: The May Car Update

    If you do a lot of stop-and-go driving, hybrids have a huge advantage because they can use regenerative braking to put some of the energy you've paid for back in...

  • RE: Query analyzer issue

    Switch to Text results with ctrl-T, then execute "SELECT text FROM syscomments WHERE ID = OBJECT_ID('your_procedure') ORDER BY colid".  You should get the original CREATE PROCEDURE text as a result.

  • RE: Regular Expression

    LIKE only handles a small set of wildcards, it is definately not a full-blown regular expression operator.

    The most robust way to do it is the solution you already found, "select...

  • RE: logins on all servers?

    You might step out of the T-SQL world for a minute and consider doing something with SMO or DMO in Visual Basic, C#, or your language of choice.  There are...

  • RE: Question: Trying to set up Maintenance Plan through T-SQL

    You "get around the SP problem" by realizing that the SPs are going away and you have to learn how to work with the new SSIS-based maintenance plans.  You build...

  • RE: Prevent Truncate, Delete, Update statements

    The minimum permissions would be db_datawriter for deletes and updates, and db_ddladmin for truncates.  Or you can create remove all access to the tables and only grant execute permissions to...

  • RE: Differential vs Log

    Differential backups don't replace log backups, but they can allow faster recovery and limit the number of log backup files you must retain.

    One possible plan would be weekly full backup on...

  • RE: SQL Server Collation

    The "CPnnn" part of the name is the Code Page specification.  "CP1" is short for code page 1252 (standard for US English), other code pages have to be fully specified.

    See...

  • RE: Truncating decimals without rounding

    The ROUND function can also truncate.  ROUND(@num, 4, 1) will do the job without the extra scaling.

    PRINT

    ROUND(99.021377000, 4

  • RE: Problem with large delete (sql 2000)

    The problem with the Enterprise Manager generated script is that there is no error checking.  It always drops the table, whether rows were copied or not.  I either execute it...

Viewing 15 posts - 481 through 495 (of 1,315 total)