Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_ORAenumarticlecolumninfo

  No additional text.


Syntax

CREATE PROCEDURE sys.sp_ORAenumarticlecolumninfo
(
	@publisher		sysname,
	@publication	sysname,
	@article		sysname,
    @defaults       bit
)
AS
BEGIN
    DECLARE	@retcode            int
    DECLARE @table_id			int
    DECLARE @publisher_id		int
    DECLARE @article_id			int
    DECLARE @publisher_dbms		sysname
    DECLARE @publisher_version	sysname

    -- Set publisher DBMS and version
    SELECT	@publisher_dbms = 'ORACLE'

    EXEC @retcode = sys.sp_IHgetversion	@publisher	= @publisher,
                                        @version	= @publisher_version OUTPUT

    IF @retcode != 0 OR @@ERROR != 0
    BEGIN
        RETURN (1)
    END

    -- Get table ID, article ID, and publisher ID
    SELECT	@table_id			= a.table_id,
    		@publisher_id		= a.publisher_id,
    		@article_id			= a.article_id
    FROM	IHarticles a,
    		MSpublications p,
    		master..sysservers s
    WHERE	a.name				= @article
      AND	p.publication		= @publication
      AND	a.publication_id	= p.publication_id
      AND	a.publisher_id		= s.srvid
      AND	UPPER(s.srvname collate database_default)	= UPPER(@publisher) collate database_default

    IF @table_id IS NULL or @article_id IS NULL or @publisher_id IS NULL
    BEGIN
        RAISERROR(21615, 16, -1, @article)
        RETURN (1)
    END

    SELECT *
    FROM   sys.fn_ORAenumarticlecolumninfo(@publisher_id, @table_id, @article_id, @publisher_dbms, @publisher_version, @defaults) colinfo
	ORDER BY colinfo.[column_ordinal], colinfo.[is_defined] DESC, colinfo.[dest_datatype]

    RETURN (0)
END

 
Last revision 2008RTM
See also

  sp_MSdrop_replcom (Procedure)
sp_MSrepl_enumarticlecolumninfo (Procedure)
       



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