Home Microsoft SQL Server DigiMailing Contact
    Keyword



Undocumented Microsoft SQL Server 2008

 

SQL Server 2005 and the new little brother SQL Server 2008 are full of new technique below and above the surface. This article describes a few of them.

OpenRowSet
OpenRowSet was already possible in MSSQL 2000 but now in MSSQL 2008 this technique is used allover in system itself although it is rarely documented. If you start a DAC connection you can run queries as:

select * from OpenRowset(TABLE ALUCOUNT,1,1)

as used in many views as allocation_units. An equel statement with delete returns a syntax error. It's hard to understand where this table ALUCOUNT has to be come from. The openrowset method is an alternative to accessing tables in a linked server and is a one-time, ad hoc method of connecting and accessing remote data by using OLE DB. The advice from Microsoft to use linked server instead is probably not for internal procedures.
The TABLE is a synonym for the data provider, ALUCOUNT is the datasource. The OpenRowSet is used as an undocumented loopback method.
 




Syntax
Last revision
News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash