miniGeek.org

another collection of bits and bytes

Navigation Menu

Views accessing other databases

Posted on Jun 30, 2006 in SQL Server 2000 | 0 comments

The default behaviour of SQL Server 2000 post servicepack 3 is for databases not to be able to access other databases through views. This is a really, really stupid thing – when I first approached this, I got really stumped about how to allow a view to access a table in another database with the same database owner. The trick is a thing called...

Read More

SQL activeX file concatenation

Posted on May 21, 2006 in SQL Server 2000 | 0 comments

Believe it or not, vbscript doesn’t seem to have a filesystem object that allows file concatenation. This here is an article on creating a file concatenation script in ActiveX (original source: http://www.codecomments.com/archive300-2004-3-158880.html). I have written this to call the copy command in DOS, I originally wrote this by opening the file,...

Read More

SQL activeX script failure

Posted on May 21, 2006 in SQL Server 2000 | 0 comments

Sometimes, when using activeX scripts written in basic (aka activeX), the failure of a portion of the script doesn’t trigger a failure trigger. The reason behind seems to be the use of many individual ‘If’ statements seems to break the functionality behind Micro$oft’s premium product If you write a simple script...

Read More

Return values from an ‘Execute SQL Task’

Posted on May 21, 2006 in SQL Server 2000 | 0 comments

A lot of the time all that you want is to be able to run a quick query and from that be able to determine whether or not to run a DTS package. This article tries to explain that. The main points of this come from the site http://www.devguru.com/features/tutorials/DTS/DTS2.asp. The idea is to run a query, then to put the results into something that activeX...

Read More