Wrox Programmer Forums
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 26th, 2004, 04:58 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Default sql connection

Hi

I am doing my app in ASP.net.
 We installed sqlserver using windows authentication.
i am specifying my connection string like this
<add key="ConnectionString" value="Data Source=myservername; Initial Catalog=databasename;Integrated Security=SSPI;"/>

so its taking loged userid account and connecting to the database without any problem

In server ,under computer management i created one user say name 'commondb'.
In my aspx page i want to connect to this perticular 'commondb' user and want to do database maniplations.
Can i do this .If so how to pass the user id and password to connect string.

Pl advice me.

 
Old January 26th, 2004, 12:25 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Try this:
<add key="connectionString" value="data source=myservername;user id=sa;password=mypassword;" />






Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Connection - Chapter 9 mdfinch BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 2 October 23rd, 2007 12:46 AM
Connection with SQL, URGENT PLEASE Amy_1 BOOK: Beginning ASP.NET 1.0 0 January 4th, 2006 02:16 PM
Global SQL connection MichaelTJ .NET Web Services 16 December 16th, 2003 09:34 PM
SQL Server Connection mpeterson Classic ASP Databases 1 July 8th, 2003 09:50 PM
Connection with sql server arshad mahmood VB Databases Basics 1 June 19th, 2003 10:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.