Ask a Question related to ASP Database, Design and Development.
-
Sergio Orrego #1
connecting to sql server db
Hi,
Is there a way to connect to an sql server db if it doesn't have an sql
server logon, i.e. if the server uses only windows authentication?
Would this have to be set up in the DSN or can a logon somehow be coded in
the asp page?
Cheers.
Sergio Orrego Guest
-
Connecting SQL Server with DW using ASP.NET VB
Hello All, I'm trying to connect SQL Server with DW using ASP.NET VB using several connection strings and getting different error messages. The... -
connecting to dsn on server
I have a website on a shared server at CrystalTech. They say: Your data source verified. The connection string you should use in your code is... -
Connecting SQL Server to DW
Hello I'm I have a project that is due shortly and I have been trying for about a week to connect SQL Server with DW with no success. I have read... -
Connecting to SQL Server from ASP.NET
Hi, Hi I have SQL Server Instances running on same machine. How do i connect to the "SecondInstance" of SQL Server on a machine from ASP.NET? ... -
Web Server connecting to Informix Server
I am running an OLTP system with Informix 7.3 IDS on HPUX. We are considering writing some web interfaces to connect to the database. At first we... -
Ken Schaefer #2
Re: connecting to sql server db
If the server uses Windows Authentication, then the user context that the
connecting application is running in is used to login to SQL Server. So, for
example, your ASP pages typically run under IUSR_<machinename> or
IWAM_<machinename> (if you are using anonymous authentication). This account
needs to be give permissions to the database.
Cheers
Ken
"Sergio Orrego" <sergio@dial.pipex.com-nospam> wrote in message
news:ZJXWa.861$tn5.699780@newsfep1-win.server.ntli.net...
: Hi,
:
: Is there a way to connect to an sql server db if it doesn't have an sql
: server logon, i.e. if the server uses only windows authentication?
:
: Would this have to be set up in the DSN or can a logon somehow be coded in
: the asp page?
:
: Cheers.
:
:
Ken Schaefer Guest
-
Miguel Orrego #3
Re: connecting to sql server db
Thanks Ken,
How would the connection string look then? I'm user to using a DSN & having
to code the username & password. How would it differ using windows
authentication?
Cheers.
"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:ebP4xyiWDHA.572@TK2MSFTNGP11.phx.gbl...for> If the server uses Windows Authentication, then the user context that the
> connecting application is running in is used to login to SQL Server. So,account> example, your ASP pages typically run under IUSR_<machinename> or
> IWAM_<machinename> (if you are using anonymous authentication). Thisin> needs to be give permissions to the database.
>
> Cheers
> Ken
>
> "Sergio Orrego" <sergio@dial.pipex.com-nospam> wrote in message
> news:ZJXWa.861$tn5.699780@newsfep1-win.server.ntli.net...
> : Hi,
> :
> : Is there a way to connect to an sql server db if it doesn't have an sql
> : server logon, i.e. if the server uses only windows authentication?
> :
> : Would this have to be set up in the DSN or can a logon somehow be coded> : the asp page?
> :
> : Cheers.
> :
> :
>
>
Miguel Orrego Guest
-
John Beschler #4
Re: connecting to sql server db
Ken,
Your response to this query, brought a question to my
mind. If the SQL server is setup for mixed mode
authentication, which method is used first? SQL server
authentication or NT?
Just curious.
Thanks,
John
context that the>-----Original Message-----
>If the server uses Windows Authentication, then the userSQL Server. So, for>connecting application is running in is used to login toIUSR_<machinename> or>example, your ASP pages typically run underauthentication). This account>IWAM_<machinename> (if you are using anonymousmessage>needs to be give permissions to the database.
>
>Cheers
>Ken
>
>"Sergio Orrego" <sergio@dial.pipex.com-nospam> wrote indoesn't have an sql>news:ZJXWa.861$tn5.699780@newsfep1-win.server.ntli.net...
>: Hi,
>:
>: Is there a way to connect to an sql server db if itauthentication?>: server logon, i.e. if the server uses only windowssomehow be coded in>:
>: Would this have to be set up in the DSN or can a logon>: the asp page?
>:
>: Cheers.
>:
>:
>
>
>.
>John Beschler Guest
-
Ken Schaefer #5
Re: connecting to sql server db
Here is the OLEDB connection string:
[url]http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForSQLServer[/url]
You can also find a DSN-less ODBC connection string on that page as well.
Basically, you do not include a username/password in the connection string -
the database user is automatically the user context that the calling app is
running under.
Cheers
Ken
"Miguel Orrego" <miguel@stressedmonkey.net-nospam> wrote in message
news:3f2e553a$0$956$cc9e4d1f@news.dial.pipex.com.. .
: Thanks Ken,
:
: How would the connection string look then? I'm user to using a DSN &
having
: to code the username & password. How would it differ using windows
: authentication?
:
: Cheers.
:
:
: "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
: news:ebP4xyiWDHA.572@TK2MSFTNGP11.phx.gbl...
: > If the server uses Windows Authentication, then the user context that
the
: > connecting application is running in is used to login to SQL Server. So,
: for
: > example, your ASP pages typically run under IUSR_<machinename> or
: > IWAM_<machinename> (if you are using anonymous authentication). This
: account
: > needs to be give permissions to the database.
: >
: > Cheers
: > Ken
: >
: > "Sergio Orrego" <sergio@dial.pipex.com-nospam> wrote in message
: > news:ZJXWa.861$tn5.699780@newsfep1-win.server.ntli.net...
: > : Hi,
: > :
: > : Is there a way to connect to an sql server db if it doesn't have an
sql
: > : server logon, i.e. if the server uses only windows authentication?
: > :
: > : Would this have to be set up in the DSN or can a logon somehow be
coded
: in
: > : the asp page?
: > :
: > : Cheers.
: > :
: > :
: >
: >
:
:
Ken Schaefer Guest
-
PackinDaMAC #6
Connecting to SQL Server db
:(
I want to connect my coldfusion app to a sql serve db through my coldfusion
administrator but i always get an error saying that my JDBC timed out or
something...How do i accomplish this task is there a link out there?????
PackinDaMAC Guest
-
ksmith #7
Re: Connecting to SQL Server db
Give us some specifics like version of CF and version of mssql. Test a
connection in odbc using windows odbc administrator. Can you connect there?
What error shows up in the cfadmin?
Also in cfmx, create a simple template that does a cfquery to your mssql dsn.
Just a simple 'select * from foo' using the dsn. Yes, it will just fail but
the error may be more informative then the cfadmin error.
ksmith Guest
-
JMGibson3 #8
Re: Connecting to SQL Server db
SQL Server 2005 Express?
It installs with a random Listener port, probably to emulate the old MSDE
environment where you're not supposed to be a true server merely a packaged up
internal DB.
At any rate, use SQL Server Configuration Manager/Network Config/Protocols to
enable TCP/IP, continue inwards into IP Addresses and ensure every entry
(although its the IPAll that's killing you) has a blank dynamic port and 1433
as the regular port.
JMGibson3 Guest
-
drforbin1970 #9
Re: Connecting to SQL Server db
Every time I have a problem connecting to a SQL Server DB via CF Admin, I do
the following:
In Windows, Control Panel, Administrative Tools, Data Sources(ODBC), set up a
User DSN and a System DSN to the SQL Server DB. USE THE SAME NAME FOR BOTH. If
you are using the local server on the machine, type in (local) as the server
for the select box 'Which SQL Server do you want to connect to?' Make sure the
connection tests OK at the end of each setup.
Go into CF Admin under Data Sources and Add a new datasource but DO NOT pick
SQL Server, use ODBC. Select the ODBC DSN(the entry you added should be in the
dropdown list). Click 'Trusted Connection'. Leave username set to system .
Click Submit and you should be connected.
If this does not work, you may have to add a user to the Users section of the
database with sufficient access. You will have to add the user under Control
Panel/User Groups also.
Then go back into CF Admin and replace username with the username of the new
user you added and the password you assigned this user under Control Panel/User
Groups.
drforbin1970 Guest



Reply With Quote

