Forum Replies Created

Viewing 15 posts - 46,366 through 46,380 (of 49,571 total)

  • RE: Logon triggers

    Could you show us what LogUserActivity does?

    Does the the app that uses this DB use Connection Pooling?

  • RE: Slow query performance

    The reason you've got as difference is because of the number of rows.

    The 2 day query is returning 42k rows and that number is (probably just) small enough that SQL...

  • RE: Use TSQL to Return File Path of SQL Error Log Folder

    What comes to mind is using xp_readerrorlog to get the log, then looking for the line that reads

    Logging SQL Server messages in file 'D:\Somewhere\ERRORLOG'.

    It seems to be there whether the...

  • RE: do server traces consume much resources?

    Take a test server, take baseline readings of the CPU usage, IO usage, etc. Implement some traces, take new readings.

    If you're running SQL 2005, you already have a serverside trace...

  • 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 ...

  • 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...

  • 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.

  • 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.

  • 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...

  • 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...

  • 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...

  • 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...

  • 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'

  • 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...

  • 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...

Viewing 15 posts - 46,366 through 46,380 (of 49,571 total)