Cannot Register With External Access

Oct 12, 2005

I've done a lot of digging, and I can't find the solution to this one.  I followed Vineet's instructions to get an assembly registered that can call out to Web services; however, when I try to register, I get the following error:

View 5 Replies


ADVERTISEMENT

External Access

Jul 23, 2005

Hello,I want to access my database server from the internet. I've created a ruleon my router to redirect port 1433 to the desired machine, but still get aServer does not exist, or access denied message. When I change the(external) ip to the local IP address, connection succeeds. Is thereanything i need to change within SQL Server to allow external (internet)access?

View 2 Replies View Related

External Access To SQL Server

Jul 3, 2006

Hello,

I'm not sure whether this is right section to post this. It seems the most relevant one to me. (Please point me in the right direction if it is not).

I am a programmer/web developer for a medium sized organisation in the financial industry (in Australia). Obviously being in the finance industry, we have very strict guidelines and access when it comes to security. We are currently in the process of converting our website to use a SQL Server database (instead of MS Access which we have been using for years). In the past, we have accessed our web database via SFTP as it was only an Access file. Now that we are converting to SQL Server, we will still need access to our database (which is on a server hosted externally). It seems a bit silly (and even bizarre) to me to consider trying to access a SQL Server database via SFTP (as that, to me, defeats the purpose of some of its security features), but is it even possible?

My security guys here will only allow me to access the external server that hosts our website/database via SFTP (on a machine that is outside our network, so any files that I wish to update on our website I need to copy over via USB or whatever). If I am not able to get into the SQL Server administrator program to change our database via SFTP, is there someway that I can "drop" a changed copy of our database into a directory somewhere that SQL Server can "pick up"?

Am I making sense?

Many thanks,

Bronwyn



View 5 Replies View Related

How Do I Setup SQLServer For External Access?

Nov 22, 2007



Hello

Normally we installs our SQLServers for internal use, but now we've a data supplier which we're going to expose a SQLServer at.

The datasupplier should be able to log on the SQLServer, so I've done the following.


Created an IP-adress from the outside to point at our server

Opened port 1438 in the firewall

Installed SQLServer 2000 Developer Edition as an instance (ie. ServerAINST001)

Opened SQL Server Network utility, selected the correct instance and TCP/IP and altered the default port to 1438




And tried to connect, but with no luck. Can anybody guide me in the right direction?


Kind regards
Janus

View 9 Replies View Related

How To Use CLR Security ..Impersonation To Access External Resources?

Jul 28, 2006

I want to Access External resources inside the CLR Code... But I am getting Security Exception

I have marked Assembly with External Access... here is the way I am doing..

I read articles and MSDN .. everywhere is written to use impersonation like

using (WindowsIdentity id = SqlContext.WindowsIdentity)

{

WindowsImpersonationContext c = id.Impersonate();

//perform operations with external resources and then undo

c.Undo();

}

In above case .. I tried both Windows Authentications and SQL Authentications ...

In case of Windows.. I am have a domain login to logon to my pc, while sql server is at another machine and Active directory is at different machine .. when connect to Database .. it says cannot find user Domainnameuser

and the SqlContext.WindowsIdentity is always null or it has exception User.Toked thew Security exception.



After that .. I tried to user custome Identity .. using IIdentity =GenericIdentity("UserName","Windows");

But there is now difference .. still same exception .. as given below..

[Microsoft.SqlServer.Server.SqlProcedure]

public static void MyProcedure()

{

Process[] p = Process.GetProcessesByName("YPager"); //Yahoo messanger exe .. a process

p[0].kill();

}

A .NET Framework error occurred during execution of user defined routine or aggregate 'MyProcedure': System.Security.SecurityException: Request failed.

System.Security.SecurityException:

at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)

at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)

at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException)

at System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action)

at DatFileGenerator.StoredProcedures.'MyProcedure'()

.

No rows affected.

(0 row(s) returned)

@RETURN_VALUE =

Finished running [dbo].['MyProcedure'].



How could I go ahead... what I should do to accompilsh the task...

Kindlly .. suggestions and ideas..

Thanks,

Muna

View 14 Replies View Related

Stored Procedure Can't Access Table On External Database

Mar 6, 2005

Hi

I have created a .net application using visual studio .net and sql server destop edition on my pc. I have exported the database tables and stored procedures and imported them into a Sql Server database on a web hosting service. The web host does not allow me to access this database directly through visual studio .net.

My connection string to the external database works ok and I can access my stored procedures through my web pages. I know they accept parameters and that I can receive Return Values from them. However, whenever I try to access any of the tables on the external database through a stored procedure, I get a sqlException saying that the table cannot be found (Invalid object name 'UserList').

I have created a text type command which selects data from one of the tables and this runs through without any errors. I have also managed to Insert a row onto one of the external tables also by using a text type command. My only problem seems to be with commands using stored procedures.

Just in case this is the problem - the owner of the table/procedures on my desktop is shown as dbo but on the external database the owner of the tables is shown as [domainname].co.uk_dbuser while the stored procedures owner is still dbo.


Example of stored procedure on external database:

/****** Object: Stored Procedure dbo.AddUser Script Date: 01/03/2005 21:10:06 ******/
CREATE PROCEDURE dbo.AddUser
(
@Username Varchar(20),
@Password Varchar(20)
)
AS
(
Select User_ID From UserList
Where User_Username = @Username
)
GO

Have tried changing dbo.AddUser to [domain].co.uk_dbuser.Adduser but this would not save because there were too many full-stops!

Any help would be greatly appreciated as I am completely stuck.

John

View 2 Replies View Related

Unable To Load An Assembly With Permission Set = EXTERNAL ACCESS

Jul 20, 2007

Hi



I've loaded a C# assembly into my database with External Access (the dll contains a routine

that accesses Environment.MachineName).



I am now unable to invoke any of the entry points in this assembly. I get the error message



'An error occured trying to load assembly Id XYZ. System.IO.FileLoadException.....'



I have set the database Trustworthy flag to ON and the assembly does not have a strong name.



Can anyone tell me what I've done wrong?



Thanks

Steve



P.S. I am calling the assembly from SQL code residing in a different database than the one

the assembly has been loaded into.

View 3 Replies View Related

External Access Denied To Update A Config File

Feb 6, 2006

Hello,

I'm having an issue with a CLR Stored procedure. Everything works great in a 32 bit environment, I have a CLR SP that updates an xml file stored on a local drive. When I execute the Stored proc it does go and update what I want it to in a 32 bit system. When I run the CLR SP on a 64 bit cluster, I seem to have give the "everyone" group write permissions to my G: drive (which is where the file is located that I'm updating). What security context is this SP running under? I thought it would be either under the SQL Service account (which is a domain user in the local administrators group) or what I'm logged in as when I run it from Management Studio (which is a domain admin, also in the local administrators group). If I have given the local administrators group "Full Control" access to the G: drive, why isn't this enough? Why do I have to give the Everyone group write access?

The security context seems odd to me, it seems like it's not running as either one of those 2 users I mentioned, because if it was, then it should be able to update the xml file.

Any help appreciated. Here's the error I'm getting:

Msg 6522, Level 16, State 1, Procedure usp_XMLWriter, Line 0

A .NET Framework error occurred during execution of user defined routine or aggregate 'usp_XMLWriter':

System.UnauthorizedAccessException: Access to the path 'g:ssisPackagesBuildCalendarandy.dtsConfig' is denied.

System.UnauthorizedAccessException:

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)

at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)

at System.Xml.XmlDocument.Save(String filename)

at XMLWriter.StoredProcedures.usp_XMLWriter(String xmlDocPath, String xmlNodePath, String xmlInnerText)

.

View 3 Replies View Related

Can't Save And Access Images In External Folder From Remote Location

Jun 9, 2014

I have developed on winodws based application using C# in .NET. I am connecting from my database using internet, means my database kept on remote location. I have to save images in DB because I can't save and access images in external folder from remote location. In this situation my DB is growing very fast. Is there any other alternative to work on this requirement or compress image in any format so that I can reduce DB size.

View 1 Replies View Related

Need To Create And Access A SQL Server Database That Will Reside On An External Hard Drive.

Apr 9, 2007

 
 I need to create a SQL server database and add some tables to it. Then access it with a C# application. The problem is that the new SQL server database and it's tables must reside on an external hard drive. How do I point SQL server to this external drive, so that I can create a database on this drive and then create tables and access data on it?
 
 

View 7 Replies View Related

Unexpected Error From External Database Driver (MS Access Linked Table)

Oct 19, 2006

OS: Windows XP (SP2)
App: MS Access 2003 (SP2)
DB: MS SQL 2000 (SP4, 2040)

User is using MS Access linked table to query database (using ODBC). User can open the query in MS Access. However when the user goes to export the data to MS Excel format, the user receives the error message:

"Unexpected Error from External Database Driver (22)."

A trace on the db, reveals that the user process is attempting to log in to the server as 'Admin'. However, when the query with the linked table is first opened, the user is prompted for username/password (non Windows authentication).

Any ideas? I googled and found some stuff, but nothing directly related and most of what I found was supposedly fixed with SP1.

Any help appreciated. I am not an Access guru.

Regards,

hmscott

View 1 Replies View Related

Severe Error Occurring When Creating Assembly With External Access Permission

Jul 11, 2006

I had created a CLR function in my db and was able to execute it successfully a couple of months ago. But when I tried to execute it today it was throwing errors saying there was something wrong with the permissions on the assembly. So I decided to drop everything and recreate it except I can not longer create the assembly with EXTERNAL ACCESS permissions. Whenever I try to create the assembly I get the followng error:

Msg 0, Level 11, State 0, Line 0

A severe error occurred on the current command. The results, if any, should be discarded.

Msg 0, Level 20, State 0, Line 0

A severe error occurred on the current command. The results, if any, should be discarded.

I also tried to create the assembly with Unsafe permissions and got the same error. Does anyone know why this error would be occurring now? I tried creating the same assembly on a different SQL 2005 server and it creates successfully and can be executed successfully. Any help would be greatly appreciated!!



Thanks!

GN

View 3 Replies View Related

Power Pivot :: External Access To Data Sets In The Data Catalog?

Apr 23, 2015

I'm currently working on a BI architecture for a customer, and consider to propose the Power BI data catalog as a data distribution layer. The customer will use Power BI, but also has other BI tools.

Are data sets in the data catalog available to other clients than Power Query alone? E.g. are there OData feed endpoints available? If not, what would be the best way to give other tools access to the data?

View 3 Replies View Related

Cannot Register To EM

Jul 18, 2000

Hi all,
I am tring to register a SQL Server 6.5 to EM on a Win95 machine which has Admin tools only.I have tried to change the Client Configuration for
both SQL Server and Windows 95 ,i have TCP/IP and Named Pipes,but its saying server cannot be found can any one pl help me of what i should do...???


Thanks

View 2 Replies View Related

How To Register A Table

Dec 8, 2007

I was advised to use a table in addition to the standard aspnet_ tables for keeping extra data and to register it with the rest of the database. However, when I tried to register it, I couldn't even see a database to choose from then received an error. All the tables, including the ones I created, work when I run my VSE 2005 project. If someone can give me some A-B-C guidance, I'd appreciate it.

View 3 Replies View Related

Register Sql Server

Mar 2, 2004

Hi,
Iam learning asp.net myself .
I've installed SQL Server7.0 in my PC.
How will I register a server
for example: localhost using enterprise manager.
I keep getting error message:
Specified SQL Server not found

Please help with registering a server.

Thanks
Abi.

View 1 Replies View Related

REGISTER SERVER

Mar 23, 2000

1)I AM NOT ABLE TO REGISTER MY SERVER (S1) WITH ANOTHER SERVER (S2),
BUT AT THE SAME TIME I AM ABLE TO REGISTER SERVER (S2) FROM MY ENTER PRISE MNAGER.

WHAT COULD BE THE PROBLEM?

IF ANY KNOW PLEASE SUGGEST
THANKS

View 3 Replies View Related

Unable To Register

Jan 30, 2001

Hi,
I am trying to register one server and I get the following message -
"Client unable to establish connection Connection OpenCreatefile()"
Any advice highly appreciated.
Thanks
PD

View 1 Replies View Related

DTS PACKAGE Do Not Register

Sep 22, 2000

Hi


When I distrubuided my application In VB, the dll from DTS PACKAGE , slq server, Do not are registred, why ?
I have register each with regsvr32
thank you in advance

View 2 Replies View Related

Register 6.5 Server Under 7.0

Jul 8, 1999

When converting from 6.5 to 7 the Servers I had registered under 6.5 were still available. When I try to connect to them the old 6.5 Enterprise Manager starts up and I really like this ability.

I would like to register a new 6.5 Server while running 7.0

I'm developing on 7.0 and thus would like to keep my machine running 7, but need to add 6.5 servers on occasion. Any suggestions.
(I think if I switch to 6.5 and register that will work, but don't want to switch)

View 2 Replies View Related

Register A Server

Aug 7, 1999

I loaded a microsoft SQL server training CD. When i go to enterprise manager i am prompted for a server. I checked the online books and it says that i should use the compter name. This does not work. My dialog box that i am using to enter the computer name, logon ID, and password is titled connect server. The documented information has Register server for the title of the dialog box. Is there a difference? What am i doing wrong? I am not able to connect the server at all. This is a training disk and is only good for 120 days. I am running out of time and i have not even started.

Any help would be greatly appreciated.

View 2 Replies View Related

Cannot Register SQL Server

Jul 14, 1998

Really would like some help from anyone who has experienced this problem.
I installed SQL server v6.5 on my machine. I selected communication options TCP/IP and Named Pipes and took all the other defaults. After receiving the `installed ok` message, I went on to register the server and received the following msg.
A connection cannot be established to A0194876 [DB Library] Unable to
connect. SQL server is unavailable or does not exist.
My machine name is, A0194876. I have tried changing the machine name, rebooting, etc. but nothing works.

View 5 Replies View Related

Not Able To Register Server

Feb 26, 1999

Hello,

We are facing problems in registering server in MS-SQL Server 6.5.
We are getting CODE EXCEPTION error. We tried unistalling SQL Server
and Re-Installing again. In spite of this, it is still giving the same error.
We happen to change the HOST name of the NT Server m/c on which
the SQL Server resides once.
What could have possibly gone wrong. Any help would be greatly appreciated.

Thanks.

View 2 Replies View Related

Can't Register SQL Server In Ent. Mgr.

Apr 17, 2001

Howdy,

I installed SQL Server 2000 (Standard Edition) on my desktop running Win2K Pro. During installation, a message indicated that only the client tools could be installed on this version (I assume it was referring to Win2K Pro). No errors were encountered during installation.

Now, I am trying to figure out how to get started working with SQL Server 2000. I opened the Enterprise Manager and have tried to register a SQL Server using the wizard to register a SQL Server. I then selected my computer name under the available servers list and then chose Windows Authentication to connect. On the next wizard screen I then chose to add the SQL Server to the default group name (SQL Server Group). After clicking on the Finish button, the Status block on the last screen indicates "SQL Server does not exist or access denied."

Any idea what's happening? What am I doing wrong?

TIA.

View 2 Replies View Related

Can Connect But Cant Register

May 22, 2006

Hi there , hope someone out there can shed some light into this subject , myself im running up the wall with it.
I have several pc's all running SQL Server 2000 all connected to the main office through a VPN.
We are trying to have merge replication working with our Business Aplication and all the sites on the VPN.
While trying to register the remote databases on the Main office server , some of the pc's worked like a charm everything is smooth as silk, but now the problem......
Out of 14 total machines , on 3 of them i have this problem.

In 2 of them i can open a ODBC connection to the SQL Server wich works , with Query Analyser i can connect to the servers and query all the DB in them.IF i try to register them in Enterprise Manager i get an Access Denied/Server does not exist message ( Using Alias ) , if i go through IP it registers but the merge replication does not work so im stuck with the Alias????Any clue?(1 of the pc's uses XP Pro the other XP Home)

On the other pc i cant simply do anything , nothing will work , no odbc,no query analyser no enterprise manager no nothing.

Why????I can see the pc's on the VPN , if i do a \IP i can access them so the VPN is working.

Thanks in advance for any help

View 1 Replies View Related

Can't Register Another SQL Server!

Feb 23, 2004

Hi all,

I'm having difficulty with registering a new SQL server across
a network. I'm guessing it's something to do with the authentication method, but as of yet I can't get it to work.
I recieve the message

"Login failed for user 'computername/Guest' "

Curiously, doing things the other way round (registering this server on the other one across the network) works absolutely fine, and as far as I can tell I have them set up exactly the same.

Any help would be very much appreciated!

Ben

View 3 Replies View Related

Register SQL Server Remotely

May 17, 2002

Hi all,

Can someone tell me if it is possible to register and connect to a SQL server that is not on my local network? I want to be able to use the Enterprise Manager to make updates to the SQL servers in my office from home. I am using SQL 7.0

Thanks in advance,
Chris

View 1 Replies View Related

Register SQL2k From SQL7

Apr 6, 2001

Does any body know if it is possible to register SQL 2000 server from SQL v7.0 enterprise manager.

Thanks

View 5 Replies View Related

Register 6.5 In 7.0 Enterprise Manager?

Jul 25, 2000

I have one 6.5 server left that I admin, can I register it in my client copy of 7.0 enterprise manager or do I have to install the 6.5 client on my machine to register the 6.5 servers?

Thanks..

View 1 Replies View Related

Save Register That WERE Insert

Oct 17, 2000

Hi

I have 2 Database ( INFORMIX AND SQL-SERVER), When the INFORMIX fall only work SQL SERVER, but when INFORMIX go back, I want to insert in the INFORMIX only register that were inserting in the SQL SERVER while the INFORMIX was out. For it I want DTS for export register, How I can get only this registers ?

thank you in advance

View 2 Replies View Related

Register Server OLAP

May 6, 2005

I want register a server it is on other PC is a server, BUT IT SHOW TO ME A MESSAGE OF ERROR:
Errors ocurred while connecting to ----ip-----
Cannot open connection to Analysis server ----ip-----
Can not connect a server ----ip-----. not this in operation or this occupied
Do you still Want to register this server

View 2 Replies View Related

Unable To Register Sql Server

May 3, 2004

Got error message when trying to register sql server:
NYCPI - SQL Server does not exist or access denied. ConnectionOpen(connect()

where NYCPI is my remote server name which has sql server in it.

When the registration wizard display a list of available servers, NYCPI appear twice in the available server list. But this problem is not exist in another machine. I tried register this sql server from another server and it is working in the second machine.

Any ideas?

Thanks!

View 2 Replies View Related

Register Hasn't Been Updated

Jun 2, 2006

hi,i have a programmer problem. When i exec a update sql with odbcdrivers, in database i dont update register, but if i exec the executesql in manager, then i update the register. Someone knwos what ishappening?thanks for answer.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved