Viewing 15 posts - 11,056 through 11,070 (of 13,462 total)
the table sysservers has all the linked servers that have been added;
select * from sysservers
with that info, you could do an
IF NOT EXISTS(SELECT NAME FROM SYSSERVERS WHERE SRVNAME='LINKEDSERVERNAME')
BEGIN
--..code...
May 27, 2009 at 6:21 pm
OK I'll ask the obvious:
if SMO is available, why would you create a separate instance, eating up resources, instead of just adding a database to the existing installation you already...
May 27, 2009 at 4:16 pm
I believe it has to do with how the linked server was set up...the default is "no security context", which is not what you want.
go to your linked server properties;...
May 27, 2009 at 8:51 am
in this specific case, this error:
Exception message: Column 'TFTAgentName' does not belong to table .
seems to be pretty straight forward;
I would guess that a SQL statement that is loading specific...
May 27, 2009 at 6:40 am
nice solution ashokdasari
, i didn't realize the OP might still want the data in Hours and Minutes.
May 26, 2009 at 8:57 am
the trick is you've got to take the minutes, i.e. "25", turn them into a decimal and divide by 60 so you get the part of an hour
create table #Example(TimeTaken...
May 26, 2009 at 8:51 am
Thanks Gail; This query is a rollup of a bunch of financial data based on it's attributes, so there's no WHERE statement in it....just a bunch of GROUP BY stuff...
May 26, 2009 at 7:19 am
for me, the biggest advantage for switching to compatibility 90 is the row_number() function; I've solved a couple of important SQL's with that function easier than if I had to...
May 25, 2009 at 8:37 am
it took a while for this one to soak in. I read the requirement a couple of times, and kept thinking it's gotta be possible by using the stored...
May 25, 2009 at 6:19 am
HanShi (5/25/2009)
SQL 2000 is not compatible with SQL 2005. Connect to the SQL 2005 instance using the SQL 2005 tools.
the above advice is not correct. you can connect to a...
May 25, 2009 at 5:47 am
doh i'm sorry; i jumped to conclusions and thought the question was "how to assign/deny permissions to a role" ; Lemme test a couple of thoeries and i'll post the...
May 22, 2009 at 7:48 am
something like this example might help.
I'm creating 3 roles...one that is almost-but-not-quite-admin, one for regular users, and a third to explicity deny deletion rights.
i then assign various users to those...
May 22, 2009 at 7:00 am
no, my point was indid=1;
in my case the difference between the totals was 3x the number of rows, but 6 times the mb size:
SELECT SUM([# of Pages]) as NumPages,
Sum([# of...
May 21, 2009 at 2:34 pm
dynamic results means dynamic SQL. there's no other way to do it.
if you only have read access, you could not create a stored procedure to run dynamic sql anyway, right?
basically,...
May 21, 2009 at 11:56 am
SQLRecon is a good tool that finds installs and instances, and tests them for a lot of security holes like blank passwords, etc.
May 21, 2009 at 10:56 am
Viewing 15 posts - 11,056 through 11,070 (of 13,462 total)