Forum Replies Created

Viewing 15 posts - 43,621 through 43,635 (of 49,552 total)

  • RE: syntax error but where?

    That's not a standard SQL Server error. There's also no way that a select statement alone will give a foreign key/null/unique constraint error. Those can only be thrown by an...

    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: What Index do I need?

    Where's the primary key?

    Do you reload the entire 10.5 million rows every day, or are you doing incremental loads?

    With profiler, the default template's pretty good, just make sure 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: The South African SQL Server Usergroup is Back

    Upington? There are people living there? 😉

    It's a possibility. I'd have to ask MS though, as I have no tools for doing that myself. Also we'd then have to consider...

    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: syntax error but where?

    What error do you get?

    With the variables declared it parses fine. I can't run it, because I don't have your tables

    DECLARE @CompanyId int, @AuthRolId int, @UserId int

    SELECT tblProjects.ProjectId, tblProjects.ProjectName,...

    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 Solution - Log file is not clearing data.

    The_SQL_DBA (10/21/2008)


    If this is not a critical DB and you have issues with disk space then you could go for BULK LOGGED RECOVERY Model, here you cannot do a point...

    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 Solution - Log file is not clearing data.

    Check that your log backups are succeeding.

    What's the result of this query for the DB in question

    SELECT name, log_reuse_wait_desc from sys.databases

    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: Question!

    Mh (10/21/2008)


    I am trying to find out sql server related issues in OLTP environment.

    Please forward me any articles you may have on this. Thanks!

    That's a pretty open-ended question. 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: SQL Server Lock

    MySpace runs on SQL Server, so it's not a case of can SQL handle it, it can, but also the rest of the infrastructure needs serious consideration.

    Will your network support...

    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: DBCC SQLPERF(LOGSPACE) alternative in SQL Server 2005

    DBCC SQLPERF(LogSpace) isn't deprecated in SQL 2008. There's no deprecation notice in BoL and running it doesn't fire a deprecation event for profiler to pick up.

    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: Online index operation cannot be performed for index

    TheSQLGuru (10/21/2008)


    You could also decide to switch to a NON-clustered index here, which should be able to rebuild online since it would not contain the 'bad' column. Not...

    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: What Index do I need?

    Can you post the table structure and some of the more common queries that are run against it? Use profiler to get an idea of the queries that Access runs...

    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 South African SQL Server Usergroup is Back

    Lian Pretorius (10/22/2008)


    Thanks Gail - That was awesome!

    😀 Glad you enjoyed it.

    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: Recompile effect on sproc execution

    Possibly the stats getting inaccurate. Run an update statistics with fullscan and see if that helps.

    Post the stored proc's code?

    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: Dead Lock----Urgent

    Eugene (10/21/2008)


    After you trace deadlock and get idea what is running (who is victim)

    you will probably wish to add indexes and try to use NOLOCK hint

    I would suggest, once...

    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: Dead Lock----Urgent

    Eugene (10/21/2008)


    Hi,

    You need t enable 2 traces:

    DBCC TRACEON (3604)

    DBCC TRACEON (1204)

    1204 alone is enough. 3604 is used to direct output of some commands to the client. Good example is...

    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 - 43,621 through 43,635 (of 49,552 total)