This example shows how I was able to use the 64-bit Microsoft ACE 12.0 provider to query a dBase *.dbf file.
Microsoft Access Database Engine 2010 Redistributable download:
James Ochsenfeld,
2012-05-09 (first published: 2012-04-19)
This example shows how I was able to use the 64-bit Microsoft ACE 12.0 provider to query a dBase *.dbf file.
Microsoft Access Database Engine 2010 Redistributable download:
Use MyDatabase GO sp_configure 'show advanced options', 1 reconfigure GO sp_configure 'Ad Hoc Distributed Queries', 1 reconfigure GO EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'AllowInProcess' , 1; EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'DynamicParameters' , 1; --Must use all CAPS in the query parameter section, except the file name. SELECT COLUMN1, COLUMN2 FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','dBASE IV;Database=\\RemotServerName\ShareName\Folder1\SubFolder1\','SELECT COLUMN1, COLUMN2 FROM DBASEFIL.dbf WHERE COLUMN3 = ''C''') EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'AllowInProcess' , 0; EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'DynamicParameters' , 0; GO sp_configure 'Ad Hoc Distributed Queries', 0 reconfigure GO sp_configure 'show advanced options', 0 reconfigure GO
For most DBAs, normalization is an understood concept, a bread and butter bit of knowledge. However, it is not at all unusual to review a database design by a development group for an OLTP (OnLine Transaction Processing) environment and find that the schema chosen is anything but properly normalized. This article by Brian Kelley will give you the core knowledge to data model.
2003-01-13
18,069 reads
This article shows you how to design the storage for email addresses, how to validate email addresses, how to retrieve demographic information from email addresses efficiently, using computed columns and indexes. It also covers the security aspect of dealing with email addresses.
Binary data can be stored as integers in a table. This article explains how to query an integer field to return the bits represented by the integer.
2002-06-28
4,567 reads
This article demonstrates how to store checkbox results as integers in a database...perfect for surveys!
2002-06-27
4,427 reads
This article looks at the T-SQL CAST function and how it is used and preferred to CONVERT().
2002-03-18
16,687 reads