Viewing 15 posts - 166 through 180 (of 334 total)
What about the rest of the columns? Do you still want all of those? You're grouping by all the columns and some of those columns have different values so you'll...
March 7, 2013 at 3:27 pm
This should get you started..
declare @strSQL varchar(max)
declare @viewName varchar(255)
declare listViews cursor for
select name from sys.views
open listViews
fetch next from listViews into @viewName
while @@fetch_status = 0
begin
set @strSQL = 'select top 1 *...
March 7, 2013 at 3:18 pm
I neglected to mention that all our replications are set up with a SQL Server login. I think you may be on to something there...
March 6, 2013 at 3:32 pm
I always thought that the Agent Job owner was the owner of the distribution. There's the agent security agent but I'm not sure that's the owner.
March 6, 2013 at 3:18 pm
something along the lines of...
Declare @assignTo nvarchar(4000)
select @assignTo = Coalesce(@assignTo + ', ', '') + CAST(Name as nvarchar(250))
from
table2 ...
March 6, 2013 at 2:35 pm
The only thing I'd recommend is what I would do.. find someone else that CAN get information about the publication and see what the differences are between my account and...
March 6, 2013 at 2:31 pm
sp_helppublication will return information on all publications that are owned by the user executing this procedure.
Do you own the publications you're trying to get information on?
March 6, 2013 at 1:11 pm
For XML Path is not supported in sql 2000.
March 6, 2013 at 1:06 pm
Take a look at this article by Jeff Moden.
March 6, 2013 at 8:50 am
My co-worker and I were discussing this yesterday for deparmental low-volume databases and came to the same conclusion about the virtualization needing to align with the actual hardware of the...
March 6, 2013 at 8:23 am
Booyah, Lowell! You hit it. I forgot to define the size of my stored proc variables.
Good catch!
March 4, 2013 at 12:36 pm
If your custom phrase is static you can use:
select letter from @test1 order by (case letter when 'd' then 1 when 'c' then 2 when 'b' then 3 when 'a'...
March 1, 2013 at 2:54 pm
Something like this maybe?
select letter from
(select 'a' letter
union
select 'b' letter
union
select 'c' letter
union
select 'd' letter
union
select 'e' letter)source
order by (case letter when 'd' then 1when 'c' then 2 when 'b'...
March 1, 2013 at 2:32 pm
Viewing 15 posts - 166 through 180 (of 334 total)