Archive for 'Databases' Category
SQLTRACE_BUFFER_FLUSH, Performance Metrics on SQL Server 2005
10 December 2007Tuning your SQL 2005 Database with built in metrics.
Easy way to kill MS SQL server transaction logs
19 August 2007I manage many SQL 2000 databases. And many times while performing maintenance I have run into the ‘transaction log full’ error.
like this: Error: 9002, Severity: 17, State: 2 The log file for database ‘%.*ls’ is full.
So like many people I resort to using the commands [...]
Utilizing SQL 2005 Linked Server to connect to external systems via OLE DB
10 March 2007You can utilize MS SQL Server 2005’s Linked Servers ability to connect to any OLE DB provider. Here we are connecting to an iSeries (AS/400) DB2 using the IBMDA400 ole db provider
Here is the command to add a linked server:
EXEC master.dbo.sp_addlinkedserver
@server = N'MYSERVER',
@srvproduct=N'IBMDA400',
@provider=N'IBMDA400',
@datasrc=N'MYSERVER',
@provstr=N'Transport Product=Client Access;
Force Translate=0;
DATA SOURCE=MYSERVER;
USER ID=MYUSERID;
PASSWORD=MYPASSWORD;
Connect Timeout=30;'
You’ll notice the Force Translate is set [...]
Creating a Period Date Range Table, with SQL!
18 October 2006You need a way to lump dated records into periodic chunks, like say for a timesheet system. Say your company’s payroll periods are bi-weekly (that’s every other week). So you need a way to distinguish the dated payroll data into two week timesheets.
Sure you could spend three days figuring out a fancy algorithm, only to [...]
How to reset a DNN password at the Database
26 September 2006If your DotNetNuke passwords all of a sudden stop working (like due to a failed upgrade), have no fear you can reset them at the database! This is not a hack, it uses the official aspnet Password Reset.
Open SQL Query Analyzer - Connect to your dotNetNuke database
Paste the following Stored Procedure code into the window, [...]
Querying Data From JDE World or Co-Existance OneWorld XE
5 April 2006Querying or extracting data from JD Edwards World is easier than you think. You can use SQL queries to get that data out and into excel or maybe you want to extract some data to integrate with another system, perhaps with DTS… This is all pretty easy to do, when you have the right tools.
EnterpriseOne SQL Samples
23 March 2006JDE EnterpriseOne SQL Samples for quering various systems … GL, Purchasing, Account Payable, Address Book
RSS for Corporate Data / Intranets
3 December 2005A RSS Revelation
While I was rewriting a small web application for work (a phone book application called peoplefinder that will also show you on map, where the persons cube is located), a revelation came to me. Why not create a RSS feed for the basic phone, name, department, location information… With the link pointing to [...]
