u can add something variable in Openrowset to provide "Provider", "Connection", "Query" use something like this DECLARE @Query NVARCHAR(4000) SET @Query = 'SELECT ''Please Select'' AS [Department] UNION ALL SELECT [Department] FROM OPENROWSET( ''SQLNCLI'', ''' + @ConnectionString + ''', ''EXEC SPROC_NAME_HERE'') EXEC (@Query) where the @Connectionstring are Server=SERVER_NAME\INSTANCE_NAME;UID=USER_ID;PWD=PASSWORD;Database=DATABASE;'
this is my personal web blog..anything that i do each day hopefully can get in this blog since i only able to write it if i have spare time at the office..(ky g kerja aj ya hahaa)