SQL Server Authentication/registered Server

Nov 1, 2002

Scenario: I register a remote (across the internet) SQL server in Enterprise Manager with SQL Server authentication using the "sa" account. Does this mean that whenever I connect to it, my "sa" username and password gets sent un-encrypted (cleartext) across the internet?

My guess is, yes, and that the only way to avoid this is to set up a VPN between my local LAN and the remote SQL server.

View 2 Replies


ADVERTISEMENT

Will Removing A Registered Server Running SQL Server Remove The Database Too ?

Feb 17, 2006

Hi all, i encountered this problem.. whenever i tried to create publications it always prompt me this error msg "sql server replications does not support nicknames,such "." or "(local)". i know i need to delete the registration and register a new server with a different name.. i just want to double confirm whether deleting the registration will affect the databases or not ? :

View 1 Replies View Related

Which SQL Server Is Better... File Type Or Registered Server

Feb 23, 2006

Eventually with hosting in mind, what are the pros and cons of designing one's backend as a file ( within the Website directory) as compared to creating the database onthe egistered SQL server of the development machine?
e.g. If I go thru SQL Server express 2005 and create a new db say MyDb, it creates it on the default SQL server of my machine, (without prompting for the DB files physical location.. I'm sure one would have to search)
Is it the same as choosing between MSDE Vs SQL Server 8 in the VS 6.0 era? oris there more than meets the eye? Any known best practices, performance issues etc?
Thanks
----------- Too many clicks, spoil the browse -------------

View 4 Replies View Related

Linked Server Not Registered?

May 7, 2007

Trying to use OPENROWSET in 2005 to pull data from a 2000 server.
I have created a linked server named "ABC". But when I execute OPENROWSET I get an error message back:
Msg 7403, Level 16, State 1, Line 1
The OLE DB provider "ABC" has not been registered.
This is not my comfort zone, so any advice on what settings I need to use is appreciated.

e4 d5 xd5 Nf6

View 7 Replies View Related

Transfer Registered Servers From One SQL Server To Another

May 15, 2006

I have SQL Server 2000 installed on one hard drive. I just installed SQL Server 2000 to another hard drive. I'd like to be able to transfer all the registered servers (including the group they belonged to) to the new SQL Server. Is there an easy way to do this? Otherwise, it seems that I have to go to "Client Network Utility" and register each server again, which are a lot of servers.

View 2 Replies View Related

Sql 2005 Registered Server Vs Object Explorer

Jun 12, 2006

Under sql 2000 I needed to register my sql server before I could begin working with it under Enterprise Manager. Under sql 2005 I usually setup the server under "Object explorer" and work with it from there. So what does registering a server under sql 20005 do? Why is it needed?





TIA,



barkingdog

View 4 Replies View Related

SQL Server Authentication Vs Windows Authentication

Oct 16, 2006

Would anyone please help me out here. which of the 2 modes of authentication is better and why??

View 3 Replies View Related

Windows Authentication Vs SQL Server Authentication

Mar 12, 2008



For using different services of SQL SERVER 2005 which is better...
Windows Authentication or SQL Server Authentication?
what are the advantages and disadvantages of both?

View 5 Replies View Related

T-SQL (SS2K8) :: Write A Stored Procedure That Will Be Used Registered Server?

Mar 14, 2014

Is it possible to write a stored procedure that will be used registered server?

For example I have registered server named 'Test Servers' and I want to use it in stored procedure

View 3 Replies View Related

Error: Data Extension 'OLEDB' That Is Not Registered For This Report Server

May 9, 2008

Hi all: I am getting the following error when I try to review the deployed reports on localhost.
"An error has occurred during report processing.


An attempt has been made to use a data extension 'OLEDB' that is not registered for this report server."










I checked the report manager, and for "connection type", there is a warning message as shown below:

"The data processing extension used for this report is not available. It has either been uninstalled, or it is not configured correctly."


I will appreciate any help in this regard.

Thanks
Reez

View 1 Replies View Related

SQL Server 2005 X64 SP2 Conflict With Teradata Oledb? (class Not Registered)

Jul 23, 2007

SP2 for SQL Server 2005 x64 has been less than happy for me.

The initial problem, mentioned in another thread, concerned SSIS client which stopped liking Data Flow components. It was solved by a removal and reinstallation of the client tools.

However, there now seems to be a problem with making use of the Teradata oledb provider within SSIS. Prior to the installation of SP2 there was no problem.

I create a new SSIS package
Add a Data Flow component
Within the data flow add an oledb source
Create a new connection - using the Teradata oledb provider
Test the connection (it works!)
Use SQL something like "select * from some_teradata_table_on_the_TD_server"
Click on columns, wait a second, a list of columns is returned
Add a SQL Server destination (with a new SQL Server connection)
Connect the two components
Save the package

Click go
The TD oledb source component turns bright red and the error is "class not registered"

I have uninstalled the TD oledb provider (and underlying TD components) and re-installed (32-bit and 64-bit) - no change

Any ideas?

- KjM

View 7 Replies View Related

An Attempt Has Been Made To Use A Data Extension 'ORACLE' That Is Not Registered For This Report Server.

Oct 29, 2007



I am attempting to deploy a sample report (SQL 2005 Workgroup w/SP2) and I am receiving the subject error message when I attempt to view the report on the web server. We are using SQL Server 2005 Workgroup Edition connecting to an Oracle database.

Is this a limitiation of this version? In report designer, I am able to select Oracle as a connection type. If I try to create a data source at the server, "Microsoft SQL Server" is the only option available. If I look at the ReportServer config file, I see many other data connection types available. Did I miss a step, or is this a Workgroup Edition limitation (it's not documented as a limitation that I am able to find)?

Thanks in advance...

View 1 Replies View Related

Report Manager With Forms Authentication. Report Server With Windows Authentication.

Feb 1, 2008

Hi.

I wonder if it is possible to set forms authentication for report manager but leave report server "as it is". I need to authenticate users from external LDAP and can't use windows authentication for report manager, but I would also like to leave report server open for anonymous users. In that way authenticated administrators could create reports which anonymous users could read.

I tested the Security Extension Sample and got it working when I rewrote the authentication part with my own LDAP authentication.

If I have understood correctly, the report manager is just application inside report server so is it possible to use forms authentication with one application but still leave the report server with Windows authentication?

View 1 Replies View Related

Failed To Find Or Load The Registered .Net Framework Data Provider When Using SQL Server Compact Edition

Jul 3, 2007

Hello



I have recently downloaded Orcas beta VS product and had no previous version of VS before. The install went clean and I have been able to generate Window apps and web apps with very little issues; however, I have one issue with running a web app using the "view in browser" option for checking an aspx page for validity. If I use the default Northwind database provided and generate an aspx form using the "DataSet" toolbox widget, the tool prompts for the datasource etc. required to generate the required code. I can select the Northwind database and select the desired columns from one of the tables. Once completed, I build the project (clean build) and then select the "view in browser" option to verify the results. The result is an error page indicating a server error ->
Failed to find or load the registered .Net Framework Data Provider.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Configuration.ConfigurationErrorsException: Failed to find or load the registered .Net Framework Data Provider.



I created on odbc connection to an iSeries(as400) box and was successfull in displaying the table on the webpage! I looked into the web.config file and it appears that all the required XML data is present. Any help would be appreciated as I am fairly green when it comes the .NET world.



Thanks

View 5 Replies View Related

SQL Server Authentication Mode In 'Transfer SQL Server Objects Task' Gives Error

Nov 10, 2005

I was trying to transfer a SQL Server 2000 database  to SQL Server 2005 using SQL Server Objects Task. However, The following error message was encountered:   "[Transfer SQL Server Objects Task] Error: Execution failed with the following error: "Cannot apply value null to property Login: Value cannot be null..".€œ  

View 12 Replies View Related

Unable To Connect To SQL Server EndPoint Through SQL Server Authentication Using WS-Security Header

May 14, 2008

Hi folks,

I have created an EndPoint in SQL Server 2005 as per the code below.


CREATE ENDPOINT OSTC_LMS_Endpoint

AUTHORIZATION LMSEndPointUsers

STATE = STARTED

AS HTTP(

PATH = '/ostc_sql_endpoint',

AUTHENTICATION = (BASIC),

PORTS = (SSL),

SITE = 'OSTC-DEV-001'

)

FOR SOAP (

WEBMETHOD 'ostc_SQLSoapTester'

(name='OSTC_LMS_06.dbo.ostc_SQLSoapTester',

FORMAT = ROWSETS_ONLY,

SCHEMA=STANDARD),

WSDL = DEFAULT,

LOGIN_TYPE = MIXED,

SCHEMA = STANDARD,

DATABASE = 'OSTC_LMS_06',

NAMESPACE = 'http://tempUri.org/'

)

GO

USE master

GRANT CONNECT ON ENDPOINT::OSTC_LMS_Endpoint

TO [LMSEndPointUsers]

GO

USE master

GRANT CONNECT ON ENDPOINT::OSTC_LMS_Endpoint

TO [ostc-dev-001endPointUsers]

GO

-----------------------------------------------------------------------------------------------------------------
The SPROC being exposed as the webmethod: -


USE OSTC_LMS_06

IF EXISTS (SELECT name FROM sysobjects

WHERE name = 'ostc_SQLSoapTester' AND type = 'P')

DROP PROCEDURE ostc_SQLSoapTester

GO

CREATE PROCEDURE ostc_SQLSoapTester

@UsersId char(12)

AS

SET NOCOUNT ON

SELECT FIRST_NAME,FAMILY_NAME

FROM USERS

WHERE USERS_ID = @UsersId

GO



USE OSTC_LMS_06

GRANT EXECUTE ON ostc_SQLSoapTester

TO LMSEndPointUsers

GO

USE OSTC_LMS_06

GRANT EXECUTE ON ostc_SQLSoapTester

TO [ostc-dev-001endPointUsers]

GO

----------------------------------------------------------------------------------------------------------------

The computer in question is our dev server and is running as a workgroup machine with the following: -
Win Server 2003
SQL Server 2005
.net Framework 2.0
No firewalls or Proxies are in the way.

The computer has to be as a workgroup machine to reflect our live server.

The user LMSEndPointUsers is a SQL Server Login
The user ostc-dev-001endPointUsers is a machine login

We have employed the Security class as per the information given in the SQL Server documentation with the intention of using the WS-Security headers that apparently are to be used when trying to authenticate using a SQL Server login.

----------------------------------------------------------------------------------------------------------------

Code used to connect and try and reciev the dataset.


string sUserName = "userName";

string sPassword = "Password";



LMS_Endpoint.OSTC_LMS_Endpoint wsSQLTester = new LMS_Endpoint.OSTC_LMS_Endpoint();

SqlSoapHeader.Security sqlSec = new SqlSoapHeader.Security();

sqlSec.Username = sUserName;

sqlSec.Password = sPassword;

XmlWriter writer = XmlWriter.Create("Security.xml");

writer.WriteStartElement("security");

sqlSec.WriteXml(writer);

wsSQLTester.sqlSecurity = sqlSec;


DataSet dsMySet = wsSQLTester.ostc_SQLSoapTester("RH6915145507");


Basically authorization is denied 401.
Hope someone can help here as have tearing my hair out.

Thanks in advance

View 2 Replies View Related

Cached Reports REQUIRE That SQL Server Used SQL Server Authentication (or Mixed)?

May 16, 2007

I am trying to setup cached reports so that one of my larger reports doesn't have to be re-run every time someone wants to view it (the data source only updates every 24 hours).



Anyway I made a new data source, set the report to use that, and in that data source I said to use "SQLexampleUserName" as the stored credentials.



Now when I go to run the report it says: Login failed for user 'username'. The user is not associated with a trusted SQL Server connection.



This is referenced in the MSKB here:

http://support.microsoft.com/default.aspx/kb/555332



Which makes sense, but now my question is: If I want to used a cached report do I HAVE to allow SQL Server Credentials?



I was using Windows Authentication only up to this point.

View 7 Replies View Related

SQL Server 2005 By SQL Server Authentication Mode Is Missed After A While

Aug 16, 2007

Hello,

I have just created some SSIS package.
Some package has connection to remote SQL Server 2005 by SQL server authentication mode (not windows).

In the connection property I have setted "save my password", but I have found that after a while the connection is missed and I have to make the Logon. this happen always to random.

Do you know how to keep the connection persistent?

Thank

View 3 Replies View Related

NT Authentication / SQl Server Authentication

Aug 14, 2001

Hi,

I need to figure out what kind of Authentication , I need to use for following applicaiton

Product : -

1 ) It resides on a its Domain and has access to Database on that Domain.
2 ) We have a application level login , n based on application login id
display specific pages.

The question that bother me is this

Q ) If i use NT authentication , then a user will be required to

a ) Login to domain (with userid and password) first and then

b ) Then i would require to again login to applicaiton with application
level login and password.(different levels of login as there)
Based on the application level login i will display only specific
asp pages. They have different access rights..and roles.

Requirment is to login only once..and it should authenticate to application display specific pages and authenticate to SQl server database also..

Is there any way thru which i can map my application level login to SQl server.. and what authentication should i use..

Thanks,
Teny

View 2 Replies View Related

Which Server To Choose In SQL Server And Which Authentication?

Apr 17, 2007

Hello, I have created a database through SQL Server Management Studio Express. Now I would like to connect to it via Visual Studio. I need help though!
I selected view server explorer in the visual studio IDE. I don't see my new database under the "Data Connections" node. I then right click on this node and select the menu option "Add Connection..."
I am prompted to select the data source and so I chose "Microsoft Sql Server". I am then prompted with a dialog box that Ask me to enter the server name. This is asked via a drop down list box. Nothing is in the list box and nothing displays if I press the drop down to select a server. My question is what server name should I use?
Also I am asked to chose between SQL server authentication and Windows authentication. Which of those should I chose?
 

View 2 Replies View Related

Form Authentication: The Remote Server Returned An Error: (500) Internal Server Error.

Mar 11, 2008

I got Form Authentication to work, but I am getting this error sometimes. To reproduce this error consistantly is to run iisreset.exe to have a fresh start. Go to my report server login and open any report.

The page will display: The remote server returned an error: (500) Internal Server Error.

If i click "F5" to refresh the page the report will show up or if you go to another report it will work also. It is just the first time after iisreset.exe. It is very strange.

Here is my log file:

aspnet_wp!library!6!03/11/2008-15:20:36:: i INFO: Exception dumped to: c:Program FilesMicrosoft SQL ServerMSSQL.4Reporting ServicesLogFiles flags= ReferencedMemory, AllThreads, SendToWatson
aspnet_wp!library!6!03/11/2008-15:20:47:: Call to GetPermissionsAction(/).
aspnet_wp!library!1!03/11/2008-15:20:47:: Call to GetPropertiesAction(/, PathBased).
aspnet_wp!library!6!03/11/2008-15:20:48:: Call to GetSystemPermissionsAction().
aspnet_wp!library!1!03/11/2008-15:20:48:: Call to ListChildrenAction(/, False).
aspnet_wp!library!6!03/11/2008-15:20:49:: Call to GetSystemPropertiesAction().
aspnet_wp!library!1!03/11/2008-15:20:49:: Call to GetSystemPropertiesAction().
aspnet_wp!library!a!03/11/2008-15:20:53:: Call to GetPermissionsAction(/Sentrack).
aspnet_wp!library!1!03/11/2008-15:20:53:: Call to GetPropertiesAction(/Sentrack, PathBased).
aspnet_wp!library!a!03/11/2008-15:20:54:: Call to GetSystemPermissionsAction().
aspnet_wp!library!1!03/11/2008-15:20:54:: Call to ListChildrenAction(/Sentrack, False).
aspnet_wp!library!a!03/11/2008-15:20:56:: Call to GetSystemPropertiesAction().
aspnet_wp!library!1!03/11/2008-15:20:56:: Call to GetSystemPropertiesAction().
aspnet_wp!library!6!03/11/2008-15:20:58:: Call to GetPermissionsAction(/Sentrack/Shared Reports).
aspnet_wp!library!1!03/11/2008-15:20:59:: Call to GetPropertiesAction(/Sentrack/Shared Reports, PathBased).
aspnet_wp!library!6!03/11/2008-15:20:59:: Call to GetSystemPermissionsAction().
aspnet_wp!library!1!03/11/2008-15:20:59:: Call to ListChildrenAction(/Sentrack/Shared Reports, False).
aspnet_wp!library!6!03/11/2008-15:21:00:: Call to GetSystemPropertiesAction().
aspnet_wp!library!1!03/11/2008-15:21:00:: Call to GetSystemPropertiesAction().
aspnet_wp!library!a!03/11/2008-15:21:04:: Call to GetPermissionsAction(/Sentrack/Shared Reports/Report).
aspnet_wp!library!1!03/11/2008-15:21:04:: Call to GetSystemPropertiesAction().
aspnet_wp!library!a!03/11/2008-15:21:05:: Call to GetPropertiesAction(/Sentrack/Shared Reports/Report, PathBased).
aspnet_wp!library!1!03/11/2008-15:21:05:: Call to GetSystemPermissionsAction().
aspnet_wp!library!a!03/11/2008-15:21:06:: Call to GetPropertiesAction(/Sentrack/Shared Reports/Report, PathBased).
aspnet_wp!library!1!03/11/2008-15:21:06:: Call to ListEventsAction().
aspnet_wp!library!1!03/11/2008-15:21:07:: Unhandled exception was caught: System.Web.HttpException: File does not exist.
at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context)
at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
aspnet_wp!library!1!03/11/2008-15:21:07:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. ---> System.Web.HttpException: File does not exist.
at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context)
at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--- End of inner exception stack trace ---

Any ideas?

View 3 Replies View Related

NT Authentication With SQL Server

Jan 15, 2002

Hi,

I have 7.0 server running with sp2 on NT box sp 5. This Sql server is configured to take both sql and NT authentication. Somehow, the bridge between NT and SQL server doesn't seem to be working as sql server does not recognize any NT authentication. Is there any way to fix it?

Because of this problem, I am unable to schedule any DTS package as sql server security doesn't recognize the sqlagent startup account and gives a login failure error.

I am about to open a ticket with Microsoft but before that if anybody can suggest me anything..

Thanks,

Shah

View 4 Replies View Related

SQL Server Authentication

Mar 30, 2004

I have an SQL Server (2000 Edition) that does not belong to a domain; Server A. (It loggs onto its own computer domain). From this server I would like to add another sql server registration through Enterprise Manager that does belong to a domain; Server B (also 2000 Edition).

The only way I can register Server B on the Server A computer is by logging onto the domain that Server B belongs to.

Is it possible to just use SQL Server authentication and not have Server A logon to the Server B domain? If so what could I be doing wrong?

When Server A is logged onto its own local computer domain I can ping Server B and also resolve the server by name.

Any suggestions?

Many Thanks,

Timbo.

View 14 Replies View Related

SQL Server Authentication

Dec 21, 2007

Hello,

I am running SQL Server Express 2005 on Vista.

I can currently log in through Management Studio using Windows Authentication. I want to login using my sa account (which exists) and a password, and eventually be able to do role based security for additional users.

How can I set this up?

Thanks,

Bob

View 3 Replies View Related

Sql Server Authentication Not Set

Jul 23, 2005

Hi ,am new to sqlserver 2000.I want to connect to my sqlserver which is aremote machine.I want to connect to sqlserver by sqlserverauthentication.Even though i added the available sqlserver in myclient as it shows, it is connected only by windows[nt)authentication.Why it is showing so ?.* But it is connected via Query analyzer in sqlauthentication.I want to connect this sqlserver to my asp.net .Is the connection string as follows is right ,if no pls correct me,---------Persist Security Info=False;IntegratedSecurity=SSPI;database=NORTHWIND;server=IISSERVER; User id=sa"---------It shows the error .Login failed for user 'NT AUTHORITYANONYMOUS LOGON'.I ve'nt mentioned any authentication mechanisym in my query string..From the error it defaultly accepts the NT authentication.How can iover ride this to sql authentication.Pls tell me the procedures should be made to connect to sqlserver insql authentication.Thx & RegardsRaghu

View 3 Replies View Related

Using Sql Server Authentication

Jul 18, 2007

I would like to add a new data source to my windows application using SQL server authentication. When I made the connection it did not have any problem. When I add the tableAdapter control it give me the message:

"login fail for user id(user name).



Please help me.



Nhung

View 16 Replies View Related

Need Help With Sql Server Authentication

Oct 2, 2007

fellas i am a noob to sql server....i am using visual web developer 2005 express..i added a database to my site and created a table until now i have been using windows authentication...the task my teacher gave me was to create a table and then host it on iis..i copied my site to wwwroot folder now when i access it using iexplorer i get this


Server Error in '/' Application.


Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:





Line 52: ASP.NET to identify an incoming user.
Line 53: -->
Line 54: <authentication mode="Windows" />
Line 55: <!--
Line 56: The <customErrors> section enables configuration
Source File: c:inetpubwwwrootdbtestingweb.config Line: 54




i tried to change the connection type to sql server authentication and use the default(what i know) sa account but i get an error login failed for user 'sa' the user is not associated with trusted SQl server connection. what am i doing wrong? is there a way to create a user for SQL server 2005?...please remember i only have visual web developer 2005 express installed... regards

View 11 Replies View Related

SQL Server Authentication

Jun 11, 2007

Does anyone know how to migrate users from SQL Server to Windows authentication?

View 5 Replies View Related

SQL Server Authentication

Jun 7, 2007

Hello



I would like to set 'SQL Server and Windows Authentication mode' of Sql Server 2005

so when user connects to Server he must supply username and password. Here are steps I make :



1. Open Microsoft SQL ServerManagement Studio Express

2. In Object Explorer right click on first (Server) node

3. Select 'Properties'

4. Select Page 'Security'

5. set 'Server authentication' to 'SQL Server and Windows Authentication mode'

6. press OK

7. in popup window fill password ******** and press OK

8. get error message ''operation is not valid due to the current state of the object.

(Microsoft.SqlServer.Express.SqlManagerUI)



How correctly to set above Server mode ?







Thank you

Yosef Fishov

View 9 Replies View Related

SQL Server Authentication Across Domains

Aug 31, 2006

Viual Studio 2003; ASP.Net; .Net Framework 1.1, SQL Server 2000Hi,We have two domains in our network - prod.domain.com and dev.domain.com. There is no trust relationship between the two domains. I am trying to connect to an SQL Server in dev.domain.com using SQL Server Authentication from prod.domain.com. My connection string uses the fully qualified domain name (xxxxxx.dev.domain.com) to connect. The error I receive is SQL Server does not exist or access denied. I can access the database through SQL Query Analyser and SQL Enterprise Manager across the domains with no problems. I can also connect through a .udl file using the same SQL Server Authentication information.If I run my application from dev.domain.com accessing a database that sits in prod.domain.com then the connection is fine.Can someone point me in the direction of any areas I can troubleshoot to see what is preventing the connection please? The only things I can see on the web are details of windows authentication across domains which isn't relevant to me in this instance. I've been pulling what little hair I have out over this for the last week.Thanks in advance.

View 3 Replies View Related

New To MS SQL Server, Need Help With Windows Authentication

Oct 21, 2006

I am new to the whole ASP .NET scene, so my knowledge is very limited, and if I’m not clear enough please let me know. I am reading a book published by APress about ASP .NET with C# and I am at the point where I get to begin working with data (fun!!).  The problem is that I’m not able to connect to the SQL Server.  I have Server 2003 and SQL Server 2005 running on a separate machine than the computer that I use for development – the server is named THESERVER, the SQL server is named THESQLSERVER, and the computer I use for development is my laptop named MYLAPTOP. So here’s my connection string (I put this in my web.config XML file):<add name="Pubs" connectionString="DataSource=THESERVERTHESQLSERVER; Initial Catalog=pubs;Integrated Securit=SSPI"/>  Now here’s what my book reads:  For Windows authentication to work, the currently logged-on Windows user must have the required authorization to access the SQL database.  This is all it says about Windows authentication because the book assumes that I am running MS SQL Express off localhost. Questions: Does the book mean that I will have to add a user to my server for my laptop?  If so, how do I log into this user using the connection string?What does it mean by “the current logged-on Windows user”?  Is that referring to the user on my laptop, or a user on the server? I’ve been reading around trying to find more information on exactly how Windows authentication works, but I keep coming up dry.  I know that much of this is probably trivial to a lot of you, which is why I am asking because it isn’t to me.  Well, thanks in advance for any help that you can provide me. 

View 5 Replies View Related

Windows Authentication With SQL Server

Apr 26, 2005

I have an asp.net page which accesses a sql server database (on another server).
I am trying to use impersonation to impersonate the domain user accessing the page and use the credentials to access the sql server using a windows login. I have windows authentication checked in IIS settings am using the following web.config:<configuration>
  <system.web>
    <authentication mode="Windows" />    <identity impersonate="true"/>
    <authorization>      <allow users="*" />    </authorization>
    <customErrors mode="Off" />
  </system.web>
</configuration>
I can connect fine when i open the page on the IIS server but from other machines, whilst logged in as the same domain user I get the error:
Login error failed for user ''.
Anybody know what the problem might be?

View 1 Replies View Related

Regarding Web.config For Sql Server Authentication

Oct 25, 2005

Hi All,

   I have a query. I want to use sql server authentication
for my asp.net application. I have created a seperate username and
password for the sql server. Now I want to use that username and
password to establish the connection thru web.config. In web.config, I
don't want to give the username and password of sql server. Instead, I
want to get those details in other ways. Please tell me how to handle
the connection string with more security?

Balaji
 

View 4 Replies View Related







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