Osolage's database clipmarks

Newest Clips
see Newest Clips
  • See all clipmarks by Osolage
  • See all public database clipmarks
  •    
     
     
     
       
     
    top scroll end
    0
    POPS
    Wesabe protects user data
    Osolage
    by Osolage  2-23-2008   
     No Remarks
    1
    POPS
    SQL Server 2005 List all IDENTITY columns
    Osolage
    by Osolage  12-12-2007   
     When I upgraded one of my databases to MSSQL2K5 compatibility mode, I noticed that many of my insert statements on tables with identity columns started generating primary key violations. I realized that I needed to run DBCC CHECKIDENT on all of those tables to fix the problem. I found this script, which lists all of the tables, in a database, that have identity columns. Then a copy/paste and regex search/replace generated a script for me to run the DBCC CHECKIDENT for each table listed. After running the DBCC CHECKIDENT, the problem went away.
    1
    POPS
    Synonyms in SQL Server 2005
    Osolage
    by Osolage  10-25-2007   
     I think this is going help me out quite a bit in the future.
    0
    POPS
    Strip leading zeros from a string.
    Osolage
    by Osolage  8-6-2007   
     No Remarks
    1
    POPS
    SQL Server Error 911
    Osolage
    by Osolage  6-27-2007   
     Just an error one of our developers is running into now.
    1
    POPS
    DBCC DROPCLEANBUFFERS
    Osolage
    by Osolage  6-7-2007    1
     I saw one of my colleagues using this procedure. I haven't used it myself, but I think I'm about to start experimenting with it. I think the part about executing a CHECKPOINT first makes sense.
    1
    POPS
    Indexes have their disadvantages
    Osolage
    by Osolage  6-7-2007   
     I've seen a lot of people talk about the consumption of disk space with respect to indexes, but I don't remember seeing mention of how it could consume memory space. I believe that makes sense. And seeing how I'm fighting with memory right now, it makes me think twice about slapping yet another index on my tables.
    1
    POPS
    SQL Server 2005 equivalent to DBCC MEMUSAGE
    Osolage
    by Osolage  5-31-2007   
     No Remarks
    0
    POPS
    BCP Utility
    Osolage
    by Osolage  5-22-2007   
     I haven't used this tool in years. However, dealing with this DSS system that I'm working on has necessitated the use of the bcp utility as I'm moving about 20 GB worth of data to create a new table... It would have taken hours and probably would have filled the transaction log had I not used bcp.
    0
    POPS
    Moving the tempdb database
    Osolage
    by Osolage  5-18-2007   
     While trying to optimize the performance of some data loads on one of our QA database servers, I decided to move the tempdb to a different disk array hoping that would improve the time it takes to assemble the large set of records to be inserted into a denormalized table. This clip contains the information I used to move the database.
    0
    POPS
    SQL Server 2000 AWE
    Osolage
    by Osolage  5-17-2007   
     No Remarks
    1
    POPS
    Use fn_get_sql instead of DBCC INPUTBUFFER
    Osolage
    by Osolage  5-14-2007   
     This is going to help quite a bit as we are getting into evaluating performance and concurrency issues.
    0
    POPS
    Comparison Operators
    Osolage
    by Osolage  5-10-2007   
     I don't even know why I was trying to do =<... I guess it's because I'm used to using BETWEEN more than <= >=. At any rate, this may come in handy in the future.
    1
    POPS
    You can use an external editor with sqlcmd
    Osolage
    by Osolage  5-8-2007   
     I haven't really done much with SQL Server 2005. I'm getting myself in the situation where I must, though, as I am using it as the platform for capturing performance counter data. I let the database grow way out of pocket and am now suffering the consequences. I know back with SQL Server 2000 you could use the osql utility to run commands and scripts from the command line. Looks like you do the same thing using sqlcmd for SQL Server 2005. I'll probably be using this to execute a command file to shrink the transaciton log when it gets too big. I'll be using Performance Monitor's Alert feature to detect when the script needs to be run and have the action be to log a record in the application event log and to execute the script to truncate the log. The other alternative is to use SQL Server Agent to execute a cleanup script in a more meaningful manner. Consider my first suggestion a failsafe.
    1
    POPS
    Why you should carefully monitor DB server disk space
    Osolage
    by Osolage  5-8-2007   
     No Remarks
    1
    POPS
    SQL Server 2005 Service Pack 2
    Osolage
    by Osolage  4-11-2007   
     No Remarks
    0
    POPS
    Definition: Hash Match
    Osolage
    by Osolage  4-11-2007   
     No Remarks
    0
    POPS
    Profile from the database
    Osolage
    by Osolage  4-10-2007    1
     No Remarks
    0
    POPS
    Sort Warnings
    Osolage
    by Osolage  4-10-2007   
     I'm pretty sure I've seen plenty of these before also. Mostly I've only used up to 4 columns in a sort, so I have a feeling that RAM is better option.
    0
    POPS
    Join is defined on Wikipedia
    Osolage
    by Osolage  4-10-2007   
     I had no idea that, but it is really cool that somebody did that. I'll have to read up on it later.
    0
    POPS
    Missing Column Statistics
    Osolage
    by Osolage  4-10-2007   
     No Remarks
    0
    POPS
    Execution Warnings
    Osolage
    by Osolage  4-10-2007   
     I'm not sure I usually have to worry about this one, but we'll see.
    0
    POPS
    Hash Warnings
    Osolage
    by Osolage  4-10-2007   
     Yep, this is definitely something I should take a look at then.
    0
    POPS
    Design queries using SHOWPLAN turned on
    Osolage
    by Osolage  4-10-2007   
     Yeah, this makes a lot of sense to do. I hadn't thought of it like that before. I've found myself turning Execution Plan on when working on complex procedures, but I don't make it part of my regular habit. I think this practice will be good for me to start doing.
    1
    POPS
    Avoid Temp Tables
    Osolage
    by Osolage  4-10-2007   
     I've been working on removing the use of temp tables in some of the procedures that I've inherited. I think it's helping with the database performance.
    0
    POPS
    DBCC SHOWCONTIG WITH TABLERESULTS
    Osolage
    by Osolage  4-5-2007   
     No Remarks
    0
    POPS
    Table Spool should alert you to a potential problem
    Osolage
    by Osolage  3-26-2007   
     I was looking at a query plan today and saw a Table Spool icon. I had never seen one of those before. I thought that it might not be so great. I found this little bit of text on spooling data to work tables and thought it was interesting.
    0
    POPS
    Set-based way of determining databases' writeability
    Osolage
    by Osolage  3-12-2007   
     I'm writing a script that will help me "port" privileges for Windows security accounts of one domain over to equivalent accounts on a different domain. You must first check to see whether any affected databases are read-only. If they are, you must take them out of read-only mode, first, before you revoke or grant any privileges to the database. I am using this procedure to figure out which databases are read-only.
    2
    POPS
    Granting a user Execute Permissions to all stored procs in a database
    travislaborde
    by travislaborde  2-14-2007   
     No Remarks
    0
    POPS
    Oracle RAC Overview
    Osolage
    by Osolage  1-9-2007   
     Oracle RAC technology sounds pretty cool. I've worked with Microsoft SQL Server clusters before, but never with Oracle. I'm interested in learning more, especially since it's looking like I'll need to deal with Oracle a lot more in my next job. :-)
    0
    POPS
    Using stored procedures to submit events to NS
    Osolage
    by Osolage  1-9-2007   
     So based on what the tutorial is saying, I'd assume that it would be possible to have event data sent to the NS application from another database using DTS or a replication publication. It seems likely that you could also use a Message Queuing application to insert event data.
    — end of the list —

    Osolage database

    loading clips...
    Filter
    rss tools
    Clipmarks
    About   Clippers   Blog   Privacy   EULA   Copyright   Site Map

    OK