Viewing 15 posts - 31 through 45 (of 97 total)
durai nagarajan (3/1/2012)
Select name from sys.databases
where name like 'xx%'
and run your view or procedures using "use DBNAME and query".
can we know what are you trying...
March 1, 2012 at 8:40 am
anthony.green (2/27/2012)
wrap the ? in [] then test it, looks ok to me
DECLARE @grantExecute varchar(8000)
select @grantExecute = 'IF ''?'' NOT IN(''master'', ''model'', ''msdb'', ''tempdb'') BEGIN USE [?]
GRANT EXECUTE ON [dbo].[Storedprocedurename]...
February 27, 2012 at 5:41 am
Ivan Mohapatra (2/27/2012)
anthony.green (2/27/2012)
February 27, 2012 at 5:34 am
anthony.green (2/27/2012)
February 27, 2012 at 4:12 am
anthony.green (2/27/2012)
February 27, 2012 at 3:30 am
anthony.green (2/27/2012)
so if everything is in the DBO schema you would do
GRANT EXECUTE ON SCHEMA::dbo TO ixxxxxx
you could also create...
February 27, 2012 at 3:21 am
Welsh Corgi (1/12/2012)
The machine has SQL Server 2005 SP3 Standard Edition
They do not want to go to a new SP
The product version...
January 19, 2012 at 12:29 am
THANKS
(michael.kaufmann & jnuqui) After modifying the final script which i have tested in a small DB it work fine and still yet to be tested in big...
January 12, 2012 at 5:48 am
michael.kaufmann (1/12/2012)
Ivan Mohapatra (1/12/2012)
Steve Jones - SSC Editor (1/9/2012)
Change the where from a "column like @value" to "datalength(column) = 9"
If you want 9 digit values....
January 12, 2012 at 5:09 am
Steve Jones - SSC Editor (1/9/2012)
Change the where from a "column like @value" to "datalength(column) = 9"
If you want 9 digit values.
You think you're...
January 12, 2012 at 4:18 am
Dev (1/10/2012)
Ivan Mohapatra (1/9/2012)
Dev (1/9/2012)
January 12, 2012 at 3:59 am
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROC [dbo].[SearchAllTablesAllColumns]
(
@SearchStr nvarchar(100)
)
AS
BEGIN
CREATE TABLE #Results (ColumnName nvarchar(370), ColumnValue nvarchar(3630))
SET NOCOUNT ON
DECLARE @TableName nvarchar(256), @ColumnName nvarchar(255),...
January 11, 2012 at 11:42 pm
Sean Lange (1/9/2012)
January 9, 2012 at 12:05 pm
Steve Jones - SSC Editor (1/9/2012)
Ivan Mohapatra (1/9/2012)
January 9, 2012 at 11:36 am
Dev (1/9/2012)
January 9, 2012 at 10:47 am
Viewing 15 posts - 31 through 45 (of 97 total)