Forum Replies Created

Viewing 15 posts - 4,726 through 4,740 (of 49,552 total)

  • RE: Dynamic SQL Question

    Kristen-173977 (9/19/2015)


    I think the biggest problem (once SQL Injection is protected against) with dynamic SQL is if the queries are not parametrised.

    Dynamic SQL can be parameterised, and protecting against 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: Why are databases showing up in a newly created instance?

    You're connecting to the default instance, not the new one. When you specify a port number, you connect to the SQL instance that's listening on that port. If it's 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: A problem in Backup time

    Backup times are mostly from IO. If your backups have slowed down and the sizes haven't increased, then it's likely that the IO throughput on the IO subsystem has decreased....

    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: Multiple queries in the same stored procedure

    You're welcome

    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: How to control Deadlock?

    Could you post the definitions of the procedures with IDs 263724042 and 594153212 in database 5?

    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 multi-part identifier "dbo.ufnGetAccountingEndDate" could not be bound.

    Phil Parkin (9/18/2015)


    GilaMonster (9/18/2015)


    SELECT ufnGetAccountingEndDate()

    Beat me to it.

    What I would also suggest is that you always schema-qualify your DB objects:

    select dbo.ufnGetAccountingEndDate();

    Whoops.

    Functions MUST be schema-qualified.

    I suspect Kev did schema-qualify...

    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 multi-part identifier "dbo.ufnGetAccountingEndDate" could not be bound.

    SELECT dbo.ufnGetAccountingEndDate()

    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?

    Koen Verbeeck (9/17/2015)


    Brandie Tarvin (9/17/2015)


    24 hours of PASS begins in the next 20+ minutes!

    Are you registered?

    Yes!

    But probably will just see the recordings afterwards 🙂

    Likewise. I need to spend tonight rehearsing...

    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 file management in simple recovery model

    1) Don't shrink data files without a good reason. It'll cause massive index fragmentation

    2) Shrinking should be done only when something has resulted in a log/data file far larger than...

    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: Procedure Plan Cache is cleared automatically

    Cleared automatically meaning you're getting the cache flush messages in the error log? Or you're seeing the size of cached plans going to zero?

    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 SHIPPING by two different systemt architecture?

    Providing the database doesn't contain persistent enterprise-only features (compression, partitioning, etc), then it is possible.

    Please in future post new questions in a new thread.

    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: Multiple queries in the same stored procedure

    Luis Cazares (9/16/2015)


    You could meet halfway by doing something like this:

    create procedure UberProc (@QueryId varchar(50))

    as

    if @QueryId = 'First Horrible Idea'

    begin

    EXEC OneProcedure @PossibleParameter

    end

    if @queryid = 'Second really...

    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: licence is Core based .. we have 16 logiceal cpu but sql is using only 4 . how to fix it

    Where are you seeing that SQL is only using 4 cores?

    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 file management in simple recovery model

    Kristen-173977 (9/15/2015)


    ScottPletcher (9/15/2015)


    Can't imagine why SQL would automatically issue a checkpoint just because an index is rebuilt. I have no idea whether a maint plan does or not, although,...

    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: Alter Database

    You'll have to change the name of Marketing before you can rename Marketing1. Even offline, it's still a database on the instance and database names have to be unique.

    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 - 4,726 through 4,740 (of 49,552 total)