Forum Replies Created

Viewing 15 posts - 42,856 through 42,870 (of 49,552 total)

  • RE: DB Backup

    Um... Did anyone notice that this thread is 4 and a half years old, and was answered accurately 10 days after it was posted?

    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: Determining the Nearest Record to a Given Location

    I'm not sure that works properly.

    DECLARE @Table1 (X int, Y int, Latitude float, Longitude float)

    insert into @Table1 values (1,1, 90,0) -- the north pole

    insert into @Table1 values (2,2, 52,0)...

    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: New SQL Server Programmer from Russia!

    Could you start a new thread with that question in the performance forum?

    Standard forum etiquette is to post a question in a new thread, with a descriptive title, so that...

    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: Event 832 error

    I'd recommend you run a checkDB on that database asap. Make sure your backups are available and you know what your recovery options are. How long have you been getting...

    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: Automatic seperate backup jobs for new databases on principal and mirror

    Perhaps change the jobs on both principal and mirror to check the status of the DB before backing it up. So

    IF (select DATABASEPROPERTYEX('AdventureWorks', 'Status')) = 'Online'

    Backup database AdventureWorks to disk...

    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: User defined function working differently on tables within same database

    Do you know where the error's occuring? The error message should include the line number. Can you run the function im Query analyser and post the full error message, including...

    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: User defined function working differently on tables within same database

    select @startbase = convert(datetime, convert(char(2), datepart(d, @startdate)) + '-' +

    convert(char(2), datepart(m, @startdate)) + '-' +

    ...

    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: Unable to enable transactional backups

    Then find the job that runs the log backups. In the properties of the job step (second tab) there's an option to log output to a file.

    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: Are the posted questions getting worse?

    And his environment is a 24x7, no downtime, no data loss environment.

    I wonder how much longer it's going to last..... 😀

    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: Determining the Nearest Record to a Given Location

    Is upgrading to SQL 2008 an option? There are geospatial data types built in and solving your problem there would be trivial.

    pseudo-code:

    DECLARE @g geography;

    SET @g = geography::STPointFromText('POINT(30.0045, -93.8824)', 4326);

    SELECT MIN(GeographyColumn.STDistance...

    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: User defined function working differently on tables within same database

    That should not be possible. Running as sa is definitely not recommended. Too many security problems.

    Can you please post the udf so that maybe someone can spot the root problem?

    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: Are the posted questions getting worse?

    It could be worse. Like this one - developer background, now a senior DBA, depends on forum answers to do their job

    Train wreck waiting to happen.

    If you want some laughs,...

    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: Unable to enable transactional backups

    There's an option within the maint plans to log all output to a file. If you do that, what's the exact error that you get?

    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: Backup job fail

    I'll help you if you can answer my questions please. Right now I don't know what you're trying to do or what errors you're getting.

    Why are you trying to restore...

    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: The Ebb and Flow of Community

    I started posting on this forum because I wanted to improve my own SQL skills, and trying to figure out other people's problems seemed like a good way to do...

    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 - 42,856 through 42,870 (of 49,552 total)