Forum Replies Created

Viewing 15 posts - 35,551 through 35,565 (of 49,552 total)

  • RE: Inconsistencies in SysColumns table

    Sherri Barkley (12/1/2009)


    They have looked at it and said all of the disks are healthy. So we are assuming that the hard shutdown due to the electrical issue in...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Stored Procedures that converts a table's column data type from char to nchar and varchar to nvarchar

    Few things. You're going to get a syntax error from that saying that the name column is ambiguous. You need to specify the table and column name in the piece...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Stored Procedures that converts a table's column data type from char to nchar and varchar to nvarchar

    This should work on SQL 2000

    select 'alter table ' + sysusers.name + '.' + tables.name

    + ' alter column ' + columns.name +

    case columns.xtype

    ...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Mystery - SQL Suddenly Failing to Connect

    homebrew01 (12/1/2009)


    If SQL can't find a particular file or drive for a non-system DB, wouldn't SQL still start ok, but just give an error on that database, showing as "suspect"...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Stored Procedures that converts a table's column data type from char to nchar and varchar to nvarchar

    rahulsony111 (12/1/2009)


    i should use a stored procedure cause it will be used very often

    Why would you be doing data type changes very often?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL server shuts down randomly

    Matt Miller (#4) (12/1/2009)


    Considering we're looking at a dev edition error log, this is possibly someone shutting the machine down (which could be a workstation and not a server).

    If SQL...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL server shuts down randomly

    Jeff Moden (12/1/2009)


    Heh... clever startup procedure trick by a laid off employee???

    Not unless there's a WAITFOR DELAY 2 hours before the SHUTDOWN. Possible though, evil thing to do. Wouldn't the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Mystery - SQL Suddenly Failing to Connect

    homebrew01 (12/1/2009)


    I can't find any problems with the drive. If I log onto the server, I can see the E and F drives fine, there don't appear to be any...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Stored Procedures that converts a table's column data type from char to nchar and varchar to nvarchar

    Dynamic SQL. No other practical way. Watch out for SQL injection....

    Question I have is why a stored procedure? Are you expecting data type changes to happen so often that you...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Stored Procedures that converts a table's column data type from char to nchar and varchar to nvarchar

    No replies to this thread please. Direct replies to: http://www.sqlservercentral.com/Forums/Topic826906-8-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Mystery - SQL Suddenly Failing to Connect

    Are you sure that the SAN LUN was present and available at the time the SQL Service started? Could it have been that the drive only became available afterwards?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Full Backup Flag Status

    Ok, it's literally an internal per-database flag that says if there's an existing full backup for the purposes of running a diff. If the flag isn't set, diff's will fail....

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Full Backup Flag Status

    Link to article please? Not sure what it's talking about.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: verify backup integrity sql server

    Just bear in mind that unless you did the backup with the CheckSum option, a successful RESTORE VERIFYONLY does not guarantee that the backup is restorable. As far as I'm...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Inconsistencies in SysColumns table

    Good to hear it's fixed. If you haven't already, get the server admins to run some checks on the disk, make sure there are no lingering problems

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 35,551 through 35,565 (of 49,552 total)