Forum Replies Created

Viewing 15 posts - 46,351 through 46,365 (of 49,552 total)

  • RE: Snapshot each 15 min...

    Sure. Works in 2005 just fine

    DECLARE @TimeStamp VARCHAR(4)

    SET @TimeStamp = REPLACE(CONVERT(VARCHAR(10),GETDATE(),108),':','')

    EXECUTE ('CREATE DATABASE TEST_DB' + @TimeStamp + ' ON

    ( NAME = TEST,

    FILENAME = ''C:\SQL2005\Snapshot\TEST_DB' + @TimeStamp ...

    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: Connectivity Error on SQL Server 2000.

    Ok, you could try something like this (replacing placeholders with pertenant values)

    Provider=sqloledb;Data Source=myServerAddress;Initial Catalog=myDataBase;

    User Id=myUsername;Password=myPassword;

    What version is your SQL Server (run SELECT @@Version)

    Can you connect from query analyser using 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: Attching .mdf file, copied from an existing .mdf file and whose name has been changed.

    Do you have the log file as well (ldf). If not, you'll have to use the attach_single_file proc and hope that the DB was shut down cleanly.

    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: do server traces consume much resources?

    Much lighter than profiler. Make sure that the trace is writing to a fast drive that does not contain your database's data or log files or tempdb.

    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: US Client Expectation

    karthikeyan (5/28/2008)


    How to understand US or UK accent easily ?

    You'll get used to it in time. There's no quick solution. For now, it's up to you to make sure...

    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: Connectivity Error on SQL Server 2000.

    Firstly, don't ever, ever, ever, ever use the sa account for an application's login. You're asking for security problems.

    Create an account just for the application that has just the permissions...

    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: Log growth -- what is causing it?

    Have you done any index rebuilds lately?

    Rather stay away from shrinking. Often you shrink the file and the next thing sQL needs to do is grow it again. It can...

    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: execution plan

    niranjankumar_k (5/27/2008)


    if i create index after BCP , further i do deletion and updation .. so it will reduce performance due to cluster index creation .

    Have you tried it?

    Unless...

    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: Doubt About Insert Trigger?

    Oh sure.

    The 'hit recursion limit and roll back' was based on the assumption that there's no 'escape clause', that the trigger's been written to recurse 'forever'

    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: Doubt About Insert Trigger?

    By default triggers cannot fire themselves. (recursive triggers disabled) so 2 rows will go in, but the second won't fire the trigger

    If you have recursive triggers enabled then the trigger...

    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: Database Tuning Advisor

    You didn't miss anything. DTA has a very bad habit of massively over-suggesting indexes and statistics. Take its suggestions with a large pinch of salt.

    I would suggest that you try...

    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: SUM and Group By

    Pleasure.

    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: SUM and Group By

    Are you familiar with the group by clause and the aggregation functions in a sql statement?

    The aggregations (in this case SUM) get the columns you're trying to aggregate as a...

    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: Looking for some book recommendations

    The inside SQL Server 2000 book and the Inside SQL Server 2005 series are excellent. Kalen Delaney, Itzik Ben-Gan and others

    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: FOR AFTER DELETE trigger

    duplicate post

    http://www.sqlservercentral.com/Forums/Topic506818-338-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

Viewing 15 posts - 46,351 through 46,365 (of 49,552 total)