Red Gate forums :: View topic - result returned by multi script is different from ...
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Multi Script 1
SQL Multi Script 1 forum

result returned by multi script is different from ...

Search in SQL Multi Script 1 forum
Post new topic   Reply to topic
Jump to:  
Author Message
ogrishman



Joined: 12 Apr 2010
Posts: 29

PostPosted: Mon Dec 27, 2010 6:12 am    Post subject: result returned by multi script is different from ... Reply with quote

Hi,

I use multi script to run the following script(test whether the sqlbackup is installed on the server):
Code:
DECLARE @result INT;
SELECT @result = ISNULL(OBJECT_ID (N'master..sqlbackup'), 0);
IF @result <> 0
BEGIN
    PRINT 'INSTALLED'
END
ELSE
BEGIN
    PRINT 'NOT INSTALL'
END


multi script returns "NOT INSTALLED", so I go to the server for further investigating. When I run the same code on the server directly, the server returns "INSTALLED".

Any ideas on why this happens? Thanks.
Back to top
View user's profile Send private message
peter.peart
Site Admin


Joined: 02 Sep 2008
Posts: 362
Location: Top floor, RG towers with the cool kids

PostPosted: Tue Dec 28, 2010 2:06 pm    Post subject: Reply with quote

Hi there,

Thanks for your post. We are really going to need some more information unfortunately.

Can you screenshot this happening in Multiscript and ensure that we can see from the screenshot what servers this is being run on, as well as screenshotting the query run in SSMS, along with displaying the instance and DB that you are connected to?

Once that's done, please send it into support(at)red-gate.com with reference F0042734 in the subject line and we will look into it for you.

Many thanks!

Pete
_________________
Peter Peart
Red Gate Software Ltd
+44 (0)870 160 0037 ext. 8569
1 866 RED GATE ext. 8569
Back to top
View user's profile Send private message Send e-mail
ogrishman



Joined: 12 Apr 2010
Posts: 29

PostPosted: Wed Dec 29, 2010 2:16 pm    Post subject: Reply with quote

Sorry my fault. The login I use in multi script do not have enough permission. So it gives a "not installed" result.

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group