Forum Replies Created

Viewing 15 posts - 931 through 945 (of 1,315 total)

  • RE: Create Format files...

    This should be close to what you need.  Just make sure you use the format file generated for the export so the column widths are correct.

    declare

    @maxcol...

  • RE: check that a column exists or not on a table

    I use this code to add a standard set of output columns (if they don't already exist) to tables for use by our address cleaning software.  This code requires the...

  • RE: How to Build Dynamic Stored Procedures

    Presumably you're getting the index info from sysindexes?  Join to sysobjects to get the owner.  It might look something like this:

    select

  • RE: How to Build Dynamic Stored Procedures

    I have learned to detest code that builds dynamic SQL by repeated concatenation, especially with char functions for line breaks and tabs.  A complex statement is difficult to read when...

  • RE: How many databases in a maintenance plan???

    The situations I've seen where one database can screw up a maintenance plan and affect other databases I think are covered by automatically removing databases from plans where they don't...

  • RE: Order by with value

    You can use this: 

    ORDER

    BY CASE Letter

            WHEN 'B' THEN 1

           ...

  • RE: Move large data from view to permanent table

    You need to break the insert into chunks.  Is there something in the view that could be used like a key (doesn't have to be unique), preferably a field that...

  • RE: How many databases in a maintenance plan???

    I think maintaining a separate plan for each database is overkill.  That would be way too much trouble to maintain IMHO.  I can't imagine having to juggle the scheduled time...

  • RE: DTS does not import all lines in text file

    I have also seen inexplicable errors importing text files in DTS, and no amount of analyzing the file could find any strange characters or invalid EOL sequences.  Of course, the...

  • RE: migrating from SQL to Oracle

    Is it a permission issue?  Does the login used by the Oracle connection have select permissions on the view?

    Are the tables and views owned by the same user?

  • RE: Security

    Maybe if I was getting paid like an Oracle DBA.

  • RE: Security

    Read the first post again.  He said "Wait a year before CONSIDERING" using it in production.  Not deploying for a year may be the right answer in many cases, but only for...

  • RE: care to give this a crack?

    Sheesh.  Where was the damn Internet when I was doing homework 30 years ago?

  • RE: Changing NTFS block sizes

    SQL Server is going to do disk I/O in 64K chunks.  Forget anything else you've read about NTFS, use 64K clusters.  And try to keep everything except SQL files off the...

  • RE: DBAs and System Administrators

    I'm a DBA in a small organization that also has a system admin.  He's responsible for server hardware, operating systems, networks, and tape backups.  The job responsibilities are pretty clear, but...

Viewing 15 posts - 931 through 945 (of 1,315 total)