Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to Login to SQL server in ASP pages?

 
   Database Forums (Home) -> ODBC RSS
Next:  question about upgrade to 11gR2 RAC  
Author Message
S N

External


Since: Jun 13, 2010
Posts: 1



(Msg. 1) Posted: Sun Jun 13, 2010 6:25 am
Post subject: How to Login to SQL server in ASP pages?
Archived from groups: microsoft>public>sqlserver>connect, others (more info?)

I am running SQLServerExpress on my desktop PC having IIS on Windows XP SP3.
I want to login to the SQL server through the ASP pages and access the
database for displaying the results on ASP pages.
I tried creating the connection string using the UDL editor with
1.) Use Windows NT Integrated Security:
The connection string as designed by the UDL editor is as below:

[oledb]
; Everything after this line is an OLE DB initstring
Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security
Info=False;Initial Catalog=adminSQLServerDatabase;Data
Source=127.0.0.1\SQLEXPRESS

The Test Connection from within the UDL editor gives message of success for
the above connection string.
However, when we copy the above connection string inside an ASP page, the
connection fails giving an error message.

2. ) When we use the option of "USE a specific user name and password"
inside the UDL editor, then we get error message- "Test connection failed
because of an error in initialising provider. Login failed for user 'sa'."
The error message continues even if we use the default internet guest user
account for the UDL editor.
Further, if we use the connection string string of this scenario, the
connection fails in the ASP page.

Please advise on how to connect to the database from inside the ASP pages
using suitable connection string. Also advise if OLEDB is the way to go?

 >> Stay informed about: How to Login to SQL server in ASP pages? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Linked server login failure to Red Brick database - I have created a System DSN called REDBRICKDB using the ODBC Data Source Administrator on a Windows XP machine. The driver I am using is the Red Brick [32] Driver. The Red Brick Client 32 software is installed on this machine. I can successfully connect....

Login fails for COM+ - Hi, I am working on an old asp application which uses a com+ application to access a SQL server. I have two development machines. on one there is no ODBC connection and the application is working fine. On the second machine which has the same set of DLL...

Windows/SQL Login - Here's the scenario: I have a client machine that's on a different subnet (10.0.4.x) than the SQL server (10.0.0.x) which is configure for both Windows and SQL security. If I log into that client remotely as the domain administrator, the ODBC ..

install ODBC connections with login scripts or GPO - Is there any way to add our standard System DSN or equiv, ODBC connections on XP clients via scipt or GPO? THis cannot be the first time this question has been asked but I cannot find a satisfactory answer. Thanks in advance!

SQL server and firewall client of ISA server incompatibility - In some computers, just a few in thousands, appeared the following message when tried to login in SQL. Connection failed: SQLState: ‘S1T00’ SQL Server Error: 0 [Microsoft][ODBC SQL Server Driver]Timeout expired When I click OK appears the dialog....
   Database Forums (Home) -> ODBC All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]