VLDB Very Large Database. Typically considered a database with a total size ranging from hundreds of gigabytes (GB) to terabytes (TB), contining millions or billions or rows. Designed with scalability in mind, they use different performance optimisation techniques to smaller sized databases.
Moving Tempdb
So somebody setup sql server and you now want to move tempdb to another drive? Easy. Fire up Query Analyser and run the commands: ALTER DATABASE tempdb MODIFY FILE (name = ‘tempdev’, filename = ‘new-file-path‘) ALTER DATABASE tempdb MODIFY FILE (name = ‘templog’, filename = ‘new-file-path‘) Replace the new-file-path with the full path and filename […]
No I don’t want every day of my life in Google!
Ah, the sweet romance of a developer and an over excited search engine. How I long for my bandwidth back! If you stopped by in the last three days you would have recieved a ‘bandwidth usage limit exceeded’ message from my ISP. If you were me you’d think that odd seeing as there are so […]
Moving Reporting Services 2005 using RSConfig
Moving Reporting Services 2005 database from one SQL Server Instance to another The development environment I’m currently working in uses two servers. IIS with Reporting Services 2005 on box1, and SQL Server 2005 on box2. For whatever reason, I was unable to get Reporting Services to install correctly on box1 with box2 as the SQL […]
Changing a Database File Logical Name
Applies to: SQL Server 2000, SQL Server 2005 (Yukon) It’s pretty often I see the need for a database to be renames. Sometimes its because a developer has given their database a very generic name, or sometimes becuase the use of the database has shifted. Renaming a database is a pretty easy task (make sure […]
Snippet: Select a Date or Current Date Without Time
Often you’ll want to compare datetime values based on the date only, ignoring the time. This is especially important when doing date ranges, where thinking like a human you might want ‘Select Accounts Join Offers Where SignupDate between 1st Jan and 31st Jan’. As a human we’re probably thinking ‘inclusive’. As a computer, SQL Server […]
Snippet: Show full column names and data types for all user tables in a database
SELECT QUOTENAME( sysobjects.name ) + ‘.’ + QUOTENAME( USER_NAME( sysobjects.uid ) ) + ‘.’ + QUOTENAME( syscolumns.name ) AS [Name] , TYPE_NAME( syscolumns.xusertype ) AS [Type] , syscolumns.prec AS [Precision] , syscolumns.scale AS [Scale] FROM syscolumnsINNER JOIN sysobjects ON syscolumns.id = sysobjects.idLEFT OUTER JOIN systypes ON systypes.xtype = syscolumns.xtypeWHERE sysobjects.xtype = ‘U’
SQL Server 2000 Service Pack 4 ( SP4 ) is on the way
Microsoft Support has published knowledge base articles 888799 and 888800 on Dec 21st 2004 for SQL Server Service Pack 4 Beta and Analysis Services Service Pack 4 Beta. Details on how to participate in the Beta Details on how to download the latest SQL Server 2000 service pack
Multiple domain names, one geeklog
Geeklog (the software driving this site) requires you to set the home url in config.php. I use multiple domain names here: juliankuiters.id.au julian-kuiters.id.au synthesisone.com so I wanted to configure geeklog to allow visitors to use the website through each of these domans. Geeklogs default behaviour is to prefix the value of $_CONF[‘site_url’] from config.php to […]
Column Confusion
– Don’t start column names with FK_ – Always name a FK column the same as the PK I happened to glance a database model today that had a column naming scheme that scared me: column names that started with FK_. I’m pretty sure the designer was intending to show that the column was actually […]