Accessing MS SQL DB On Own Server?

Dec 10, 2004

Hi





If my site is hosted with an external company web host can I use ASP.NET pages to connect to a MS SQL DB that is on my company's internal server if I had MS SQL installed on it?





My company's server is always on and always connected to the internet.





I have access to my company's server if I need to set anything up on it for this to happen.





There will not be any kind of overload as the site is not accessed constantly.





Also, would this cause any kind of security leak? If so how would I go about plugging this hole?





Our server does have confidential info on it.





Cheers





kefi2927

View 1 Replies


ADVERTISEMENT

Problem Accessing A SQL Server 2000 Linked Server From SQL Server 2005

May 4, 2007

Hi
I have created a linked server from SQL Server 2005 (SP 1) to SQL Service 2000 (SP 4) with a sql server login that is available on both servers but with different passwords and permissions.



I am getting the following error while accessing the linked server in management studio based on the scenario given below ;



------ Error Message Starts
OLE DB provider "SQLNCLI" for linked server "(SQL Server 2000 instance name)" returned message "Communication link failure".
Msg 10054, Level 16, State 1, Line 0
TCP Provider: An existing connection was forcibly closed by the remote host.
Msg 18456, Level 14, State 1, Line 0
Login failed for user 'abc'.
------ Error Message Ends


Consider login name is abc.
Now this login abc has sysadmin rights on sql server 2005.
The same login abc has only db_datareader rights on sql server 2000 on just one database and is not associated with any fixed server role.

I have configured the linked server using the following options;
1. I have tried impersonating login from SQL Server 2005 to SQL Server 2000 .
2. I have also tried specifying remote login / password option.


Anyone having any idea, would be of great help.
Regards,
Salman Shehbaz.

View 3 Replies View Related

Accessing SQL From A Web Server Using ASP

Jul 9, 1999

I'm using OLEDB in my ASP code to connect to the SQL database. When I execute the page I got an error saying "438, Microsoft VBScript runtime error, Object doesn't support this property or method"
Anybody knows what this is in reference to.
I tested the same site in another server where IIS and SQL are in the same box and it's working fine.

Thanks for any input in this......

View 1 Replies View Related

Accessing SQL Server With VB6

Jul 19, 2004

I need to write a VB app (VB6) to access and manipulate data within a MS SQL Sever 2000 database. I have experience doing this with MS Access. Is it much different/more difficult to do this with SQL Server?

Thanks

View 5 Replies View Related

Accessing SQL Server Using C++

Nov 25, 2004

What is the easiest way to start executing SQL statements onto a SQL Server 2000 using C++ ?????

Are there any libraries or something I could use ?

View 2 Replies View Related

Accessing SQL Server From Asp.NET

Nov 6, 2007

Greetings. I am curently having problems with authorizations while attempting to connect to SQL Server with an Asp.NET web application. I will try to explain my problem as clearly as possible.


I am developing an Asp.NET web application with Visual Studio to connect and view a database on a remote SQL Server. In my Web.config file, I have added the line


<identity impersonate = "true"/>


In my IIS security options, I have disabled the annonymous authentication and enabled the Windows mode authentication instead. When accessing the database from my computer, by compiling and debugging my web application in Visual Studio, everything works wonder. When I try to use the web application from a remote computer using the IP address or from my own computer using localhost in the URL, it asks me for my Windows username and password, which I provide, and then refuses any further access, saying I don't have permission to even connect to the server.

How can I go around this and allow my users to connect to the server from a remote computer? My machine is running Windows XP SP2 and the server is running Windows Server 2003.

Thank you in advance for any help you may provide,

Marie

View 3 Replies View Related

MSDTC - Remote Accessing SQL Server 2005 From A Desktop Application - Windows 2003 Server

Dec 6, 2007

Hi,

I am developing a windows application that needs to communicate with a remote SQL server 2005 database. Server allows remote connections and MSDTC service also running. Do I need to run MSDTC service on the client machine where I use desktop application ? any ideas ? It's throwing some error like
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the fact
that under the default settings SQL Server does not allow remote connections.

But my SQL Server allows remote connection, and I am able to do a select statement.
But when I insert/update anything, it's throwing this error. I guess some problem with MSDCT. Anybody have any idea ?

View 1 Replies View Related

Accessing 2 Databases On The SQL Server Through ASP.net

Nov 30, 2006

Hi everyone,
First of all I'd like to say I'm new to the forums, and in fact new to ASP.net.
I've had a couple of applications running in VB.net for the last year or so that I now am looking to move on and into ASP.net (main reason is to do with implementation to remote sites in foreign countries).
I'm currently following through the "Working with data and ASP.net 2.0" walkthrough on this site, which I must say has been a great help.
 I'll start with the background stuff first
I have my main database on an SQL server.  I also have 2 other databases on there - Customer and Employee.   The reason for these are that they are shared amongst my VB applications and I kept them as seperate databases so that one database is all that needs to be administered and maintained, and these changes are then seen on both apps (takes away redundant data as well).
In my main database, main table, is a field called CustomerID.  This value relates to the CustomerID in the Customer table.  In my VB app all I do is have the user select a customer name, and then the customer ID value is copied to the CustomerID field of my main table when inserting / updating a row.  This is simply accomplished with 2 SQL connections and 2 dataAdapters.  I also use 2 dataSets - one for Customer, one for WorkRequests (the main database)...
I use ComponentOne stuff so that my grid will show the CustomerName instead of the CustomerID etc, and the same applies when I use my Employee database - I run many dataAdapters to this for things such as Account Manager, Technologist, Creator, UpdatedBy etc etc.
Now, I'm new to VS 2005 - my apps were created in VS 2003 and .net 1.1.    Can I easily re-create my apps in ASP.net?  My primary goal at the moment is to make sure I can load a row, and display the "lookup" values instead of the "integer" value.  As my tables are in seperate databases, I would like to know the best way of accomplishing this, if it is of course possible.
Help and advice much appriciated.
Kind Regards,
Luke
 

View 2 Replies View Related

Accessing SQL Server 2000 With ASP.NET

Mar 28, 2007

Hi Everyone,
         I just started using ASP.NET and I cannot figure out how to use a connection string to connect to a SQL Server database using ASP.NET. I want to use Windows Authentication to bring up a database called upsizedCandidate on a server called SQLSERVER and display a table within that database through internet explorer. I'm not sure if I should be using OLE DB or ODBC. Can anyone help me with this? Thanks in advance!

View 8 Replies View Related

Accessing SQL Server On Another Machine

Jan 20, 2004

Hello all.

I am currently running a web server with Windows 2000 Server installed. It is a Pentium II 400 MHz, and also acts as the router on our network. I am worried that installing MSDE on this same server might drain the server resources, so I installed MSDE on one of the computers in our internal network. How do I set up my connection string to access the database on another machine in the same network?

Currently I use: Server="AnotherComputer";TrustedConnection="True";Database="MyDatabase"

When I use that, it tells me that the server can't be found. All computers behind the router have static IP addresses, but even when I type the IP address it still can't find the server. Any suggestions?

View 1 Replies View Related

Accessing A SQL Server While Offline

Jan 17, 2002

I have installed SQL Server on my laptop (full version), but can only access it while on the network. If I disconnect from the network, open Enterprise Manager, and click on my connection, I get the error "sql server does not exist or access denied". Why can't EM find my own machine? I even logged onto my own computer as a local user, instead of the network domain, and still recieved the error. Can someone tell me where I can edit (maybe my registration properties), so that I can run SQL server, while offline.

Thanks!
Trevor

View 1 Replies View Related

Accessing SQL Server On Intranet Using VB.NET

Jul 29, 2004

How can I connect to SQL server on intranet using VB.NET??
I am unable to do that using system DSN.
can anyone tell how to do that either through DSN or anyother way.

View 2 Replies View Related

Accessing MSAccess From SQL Server

Dec 22, 2004

hi,
I have MS Access Database (test.mdb), and i have a table called tblEmployee in that.
How to query the table from SQL Server Query Analyser?


Thanks in advance
qAnand

View 1 Replies View Related

Accessing Tables From Another Server

Feb 13, 2004

Hello All.

I need your advise on how I could access table from another server.

Let me explain what I am doing. Currently, I have 2 servers running parallel to one another other each loading from the same set of data into its own database in the night.

I would like to write a stored procedure to report the number of records from selected tables from the 2 servers to see if they match in records loaded. Thereafter, email me the results (I have already settle the sending of email part).

Have picked up some tips in this forum to come up with the below statements and it works fine for me: -

use AABBCC (database name)
select Server='Server 009', name, rows, SystemDate=getdate() from sysindexes
where name in ('invoice_line', 'invoice_line_import', 'sales_order_line', 'sales_delivery_line','Cust_dely_reliabity','sales _order_proc_time','AU1016','NZ_Data')
order by name

Result: -
Server Table Name Rows

Server 002AU1016 0
Server 002Cust_Dely_Reliabity 5017342
Server 002invoice_line 4397800
Server 002invoice_line_import 12120
Server 002NZ_Data 649745
Server 002Sales_Delivery_Line 5323875
Server 002Sales_Order_Line 5356989
Server 002Sales_order_proc_time 3651362


Instead of running the above scipt or stored procedure from 2 servers and received 2 email (one from server 002 & one from server 009), I would like to access the other server within the same stored procedure.

I have used sp_addlinkedserver (may not be the correct method) and <servername>.<databasename>.dbo.sysindexes (doesn't work)

Please help. Thanks a million.

The desired result could be:

Server 002 .....
Server 002 .....
.
.

Server 009 ..... (result from the 2nd server)
Server 009 .....
.
.


Best regards

View 2 Replies View Related

Accessing UDF On A Linked Server

Mar 5, 2004

Hi all-

I need to invoke a UDF on a linked server. Is this possible?

eg:
I need to execute the following query from Server1

select *
from Server2.Database.owner.fnGetTree() AS Server2Tree
inner join Database.owner.fnGetTree() AS Server1Tree
on Server1Tree.NodeId = Server2Tree.NodeId

Thanks for your time

View 1 Replies View Related

Accessing SQL Server From Global.ASA

Sep 21, 2005

Hi

I have an application written in classic ASP which uses Windows Authentication in SQL Server.

This seems to work fine, except when we try to write to the database in Session_OnEnd in Global.ASA.

We don’t get an error and although logging is enabled in SQL Server, no failed logins are reported. Nevertheless, the database is not updated.

I’ve tried adding the IWAM_Servername user to SQL Server, but that hasn’t made any difference.

Has anyone any thoughts on how to rectify this? At the moment, both SQL Server and IIS are running on the same PC, but we need to find a solution when they are on different PCs as well.

View 3 Replies View Related

Client Not Accessing SQL Server

Feb 20, 2008

hi

i have installed sql server 2005 on one machine and client on another machine. client is not detecting sql server on server machine. what type of settings should i do so that client can access server.

View 10 Replies View Related

Accessing Java Within SQL Server

Aug 21, 2007

have a Java Class that I want to be able to access from within a SQL Server Stored procedure. I know we can access C# and other .NET Framework code, but how can you access a Java Class?

View 1 Replies View Related

Accessing Linked Server

Sep 25, 2007

Is there any way to access a linked server without using four-part naming?

My problem is that I am trying to find a way to connect to an access database on a 64 bit system (there is no 64 Jet OleDb provider) and I have to run in a 64 bit process so no WoW solutions will work for me .
I am looking into trying to use a Sql Linked server but am trying to find a workaround without having to re-write all our queries to use four-part naming.
Is there someway to configure a connectionstring to default to executing against a linked server??

Any help or suggestions would be welcomed.

View 3 Replies View Related

Accessing SQL-Server From UNIX

Apr 11, 2008



I have UNIX application, running on AIX, SUN and HP, (RISC & Itanium).
This application working with Oracle, via OCI, and OCCI, (I can use ODBC as well).

I would like replace Oracle with SQL-Sever.

Does there is a way/driver to access MS-SQL Server from Unix?

View 5 Replies View Related

(RDA)Accessing Server Via A Port..

Jun 14, 2007

Hello,



I connect to the SQL Server with RDA method. there was no problem until I had to use a port to access the virtual path of RDA.

it connects when

rda.InternetUrl = http://ip/rdadir/sqlcesa30.dll ,

but no when

rda.InternetUrl = http://ip:81/rdadir/sqlcesa30.dll .



May someone help,please?



Thanks.

View 4 Replies View Related

Accessing FTP Site From Sql Server

Jun 1, 2007


How to create DTD compatible XML file from result set returned from a query.
Can we access FTP site and upload this xml ?
Is it possible to do from Tsql?

View 2 Replies View Related

Accessing SQL-Server From UNIX

Apr 12, 2008



Hi,

My program is running on UNIX, (SUN, AIX and HP), and work with Oracle.
I would like to use SQL-Server instead of Oracle, but the program must run on UNIX.

Is there is a way/driver to work with SQL-Server from UNIX?

*new in SQL-Server area...

Thanks

View 5 Replies View Related

Accessing Another Database On The Same Server

Aug 10, 2006



Let's assume we have 2 databases db1 & db2

and we have a table named "MyTable" which is located in db2 database

in the db1 database I create a stored procedure by using following code:

<<

use db1

create procedure myproc

as begin

select * from db2.dbo.MyTable

end;

>>

this code does not execute successfuly and I face an error which says << invalid object db2.dbo.MyTable>>

and as you know we are not allowed to use USE database key word in stored procedures

I can's access a table which is located in another database, whithin a stored procedure which is located in different data base but on the same server

thanks



View 3 Replies View Related

Accessing The Report Server

Oct 17, 2007

i am unable to browse my report server. this is the message im getting

The Report Server Windows service 'ReportServer$SQLEXPRESS' is not running. The service must be running to use Report Server. (rsReportServerServiceUnavailable)

View 2 Replies View Related

Server Timeout Accessing A Formview

Jul 10, 2006

I've built a custom web-based CRM in ASP.NET 2.0 on Sql Server 2000. 
Currently updating a contact is very inconsistent. If I go into a contact through http://MyServer/secure/allcontacts.aspx or http://MyServer/secure/allcontacts.aspx?contactid=6151 then the updatecontact() sub that I have defined runs fine.
UpdateContact() consists of a sql server transaction with a try/catch block and parameters for each field on the page.
If I go through http://MyServer/secure/allcontacts.aspx?contactid=6151&Dup=true then I get
"Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding,"
on the catch section but no error message is rendered to the user - they see nothing at all. This seems to be happening when the application tries to access a formview control (which may or may not be visible at the time).
I've tried Data.SqlClient.SqlConnection.ClearAllPools(), myCommand.CommandTimeout = 3000, and <httpRuntime executionTimeout="180"/> in the web.config but none of these seems to be working.
The formview has a sql datasource and it gets as far as running the sqldatasource_selecting event and then gets stuck.
Can anyone help me figure out why this is happening and how I can fix it?
Thanks in advance.

View 4 Replies View Related

Problem Accessing SQL Database In Server

Nov 3, 2006

After I uploaded my web page and my sql database to my server I get the following error: Exception Details: System.Data.SqlClient.SqlException:
Could not open new database
'dsyfa.dnh.sk_0254bfa0-5525-4634-bee7-1b99fd021b34'. CREATE
DATABASE is aborted.Could not attach file
'I:DataWebdnh.skdsyfa_78676f0b-4b12-4502-8792-5141335ef179wwwApp_DataGamesDB.mdf'
as database 'dsyfa_0254bfa0-5525-4634-bee7-1b99fd021b34'.File
activation failure. The physical file name "F:My StuffSoftware
DevelopmentC#ATLASProjectsGameSiteApp_DataGamesDB_log.LDF" may be
incorrect.The log cannot be rebuilt when the primary file is read-only.Why is it referring to F:My StuffSoftware
DevelopmentC#ATLASProjectsGameSiteApp_DataGamesDB_log.LDF?? This location exists in my PC. How do I change it? I uploaded my mdf file using FileZilla FTP client. Where am I going wrong?? I'm using the connection string given me to me by the hosting service. Here's the code:<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|GamesDB.mdf;Integrated Security=True;User Instance=True"            SelectCommand="SELECT [GameId], [GameTitle], [Rating], [Genre], [Location] FROM [Games]"></asp:SqlDataSource>            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"            DataKeyNames="GameId" DataSourceID="SqlDataSource1">            <Columns>                <asp:BoundField DataField="GameId" HeaderText="GameId" InsertVisible="False" ReadOnly="True"                    SortExpression="GameId" />                <asp:BoundField DataField="GameTitle" HeaderText="GameTitle" SortExpression="GameTitle" />                <asp:BoundField DataField="Rating" HeaderText="Rating" SortExpression="Rating" />                <asp:BoundField DataField="Genre" HeaderText="Genre" SortExpression="Genre" />                <asp:BoundField DataField="Location" HeaderText="Location" SortExpression="Location" />             </Columns>       </asp:GridView> Any help would be appreciated. 

View 3 Replies View Related

Accessing SQL Server Data Using Thread

Sep 17, 2007

Hi,
How do we set credentials or contex to a thread.
I create a new thread and within that thread if I am use a connetion string with Integrated Security=True" to talk to the SQL Server, however it seems that the new thread's context/identity is blank and hence failing the SQL Server connection.
Please help.
Thanks
 
 

View 2 Replies View Related

Accessing DB2 Table From Sql Server And Asp.net Page

May 28, 2005

Hi ...I have successfully installed Db2 client configuration tools in sql server and then created a link server to db2 server . I am correctly selecting IBM db2 provider through provider name dropdown in  create link server dialog box (general tab) . However , I am unable to fill the data for 3  requirements ...1)product name (Is this db2 database name ?) 2) Data source (What is this ) 3)provider string ...(I tried various combinations ....But didn't succeed)(The msdn has given example of creating linked server like <code>
This example creates a linked server named DB2 that uses the Microsoft OLE DB Provider for DB2.EXEC sp_addlinkedserver
@server='DB2',
@srvproduct='Microsoft OLE DB Provider for DB2',
@catalog='DB2',
@provider='DB2OLEDB',
@provstr='Initial Catalog=PUBS;Data Source=DB2;HostCCSID=1252;Network Address=XYZ;Network Port=50000;Package Collection=admin;Default Schema=admin;'


</code>
Then in  Security tab I gave remote login and  password However  I am unable to get tables view for the db2 database in sql server . It is showing errors like initialisation .....Provider DB2OLEDB etc.... Can anyone pl help .Is there any other way ?Bhat
 

View 3 Replies View Related

Accessing Sql Server 2000 With Http

Apr 12, 2006

Hi there,
I want to access to sql server 2000 on localhost with http
.Following instructions on "Sql Server books online", If I perform on Window Server 2003 R2 operating System, the result was not unsuccessful. However, on Window XP, the result was successful.

View 2 Replies View Related

Accessing Sql Server Data From Unix

Apr 5, 2001

Hello !

I am owrking in java developmenton solaris using weblogic6.0
Does any body know how to access sql server data from solaris.
If some body knows that, can you please post me the steps
that i need to do it.

Thanks
Veena

View 3 Replies View Related

Accessing A NetWare Drive From Within SQL Server

Apr 18, 2001

Hi,

Anyone ever try to access a NetWare drive from within SQL Server. I have setup a netware account that matches the NT account that the SQL service runs under and given this account the necessry access to the drive. When I do a xp_cmdshell 'dir h:' (h: being the netware drive) I get an 'Access is denied' error.

Any help much appreciated.
Regards,
Donal

View 1 Replies View Related

Problem In Accessing Remote Server

Jun 5, 1999

dear friend,
i would like to write a stored procedure which is able to pick up data from remote server and store it in the local server
is it possible to mention the server name in the select command
waiting for reply
ashish bhatnagar

View 2 Replies View Related







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