Showing posts with label instance. Show all posts
Showing posts with label instance. Show all posts

Friday, March 30, 2012

OPENQUERY and Windows Authentication

We have a SQL Server and an Oracle Instance. I have been using OPENQUERY to run queries on SQL Server to compare datasets on SQL Server with those in Oracle. Yesterday, I switched from using a SQL Server login to using Windows Authentication.
My OPENQUERY returned Msg 7399, "Access Denied". So, I added a new linked server login for my windows username:
EXEC sp_addlinkedsrvlogin
@.rmtsrvname = 'ORAINST',
@.useself = false,
@.locallogin = 'NTDOMAIN\NTGROUP',
@.rmtuser = 'ORAUSER',
@.rmtpassword = 'ORAPWD'
I continued getting the same error, after monkeying with the case of my @.loginlogin info and switching my NTUSER for NTGROUP; I finally opened up the login to all users on the server:
EXEC sp_addlinkedsrvlogin
@.rmtsrvname = 'ORAINST',
@.useself = false,
@.locallogin = NULL,
@.rmtuser = 'ORAUSER',
@.rmtpassword = 'ORAPWD'
I still get the same error. The examples in BOL suggest that setting up a linked server login for a windows user should be the same as for a SQL user. Any ideas what I should try next?You cannot create a mapping for a group...only a user.

But you seem to suggest that even that is not working.
Can you provide the complete error message. 7399 usually is followed by an error from the provider.

This might be a bit obvious but make sure the local login that is being used on the server is infact setup with the login mapping. sys.linked_logins view should give the current settings. Also make sure the oracle user name and password are correctly setup in the sytem catalogs.

Wednesday, March 28, 2012

Opening sql files opens new instance of SQL Management Studio

Hi Folks,

I'm sure this has been answered before but all my searches for this problem don't find what I need. It's a quirk but driving me nuts.

If I have sql management studio open and I view a sql file from Vault, or double-click it in explorer, it always opens a new instance of mgmt studio. I open 5 sql files, 5 instances of mgmt studio.

How do I tell my system to reuse mgmt studio to open sql files if it's open?

Thanks in Advance,

-David

What version of SQL Server Management Studio do you have?

9.00.1399 = RTM
9.00.2047 = SP1
9.00.3042 = SP2

Paul A. Mestemaker II
Program Manager
Microsoft SQL Server Manageability
http://blogs.msdn.com/sqlrem/

Monday, March 26, 2012

Opening a hyperlink in new window

Hi All,
I have a hyperlink on my report. The target report opens in the same browser window. I want the target report to open in new instance of the browser.

Any clues as to how to do this?

Thanks in advance

Nikhil Dabke

I'm having the same problem. Would LOVE a little help on this!!

Thanks!
Joanie

|||You could try a this URL for the action (remove the spaces):

j a v a s c r i p t:if(window.open(yourPage.aspx','RsWindow','width=400,height=500,l­ocation=0,menubar=0,status=0,toolbar=0,scrollbars=1',true)){}

Opening a hyperlink in new window

Hi All,
I have a hyperlink on my report. The target report opens in the same browser window. I want the target report to open in new instance of the browser.

Any clues as to how to do this?

Thanks in advance

Nikhil Dabke

I'm having the same problem. Would LOVE a little help on this!!

Thanks!
Joanie

|||You could try a this URL for the action (remove the spaces):

j a v a s c r i p t:if(window.open(yourPage.aspx','RsWindow','width=400,height=500,l­ocation=0,menubar=0,status=0,toolbar=0,scrollbars=1',true)){}|||Hi,

The work around that I found for this is:

The URL that you provide under the Navigation -> Jump To Url must be replaced by :

="javascript:void(window.open('URL','_blank'))"

This worked for me fine after deploying my report to the Report Server.

Thanks,
Praveensql