Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)

  • RE: Dynamic expression in a view

    So i try to explain:

    I have a table where select statement are saved:

    (TABLEOFQUERY)
    Row ID 1) SELECT * FROM MYTABLE1
    Row ID 2) SELECT * FROM...

  • RE: Dynamic expression in a view

    Is there no way to show a preview of RECORD COUNT for each SQL STATEMENT saved in rows ? :crazy:

  • RE: Dynamic expression in a view

    Im looking for UDF executing query as parameter.


    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO

    CREATE FUNCTION dbo.fnCountRecord(@SQL NVARCHAR(800))
    RETURNS int 
    AS

  • RE: Dynamic expression in a view


    USE [TEST]
    GO
    /****** Oggetto: Table [dbo].[MSPVISTE]  Data script: 03/16/2018 12:13:49 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE...

  • RE: Dynamic expression in a view

    I try a view like this :

    SELECT  Id, SqlWhere, SqlOrder, sp_executesql('SELECT COUNT(*) FROM MyTableOfContent WHERE ' + SqlWhere) AS RecordCount
    FROM   MyTableOfQuery

    I need RecordCount...

Viewing 5 posts - 1 through 5 (of 5 total)