Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2004

Tip: Looking for answers? Try searching our database.

SQL Server Databases in VS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
newbie - 27 Apr 2004 21:13 GMT
I'm running SQL Server 2000.  When I originally set up the localhost, I set
it for Windows Authentication.  For the purpose of going through an ASP.NET
project in a book, I changed the properties to SQL Authentication (using
Enterprise Manager).  However, when I visually connect to the database, in
VS.NET, it still creates a connection string using Windows Authentication,
and furthermore does not allow that property to be edited.  What would be
causing this.  Thanks in advance.

Bari
Dave Strickland - 28 Apr 2004 05:40 GMT
When you drag and drop the connection onto your form you should be able to
edit the connection string. If you want to force a connection to appear as
SQL authentication in Server Explorer. Add a new data connection in the
server Explorer("Right Click 'Data Connections' and Select 'Add new'")
specify the server the userID and the Password you want to use.

> I'm running SQL Server 2000.  When I originally set up the localhost, I set
> it for Windows Authentication.  For the purpose of going through an ASP.NET
[quoted text clipped - 5 lines]
>
> Bari
John Newsom - 07 May 2004 22:36 GMT
This was puzzling to us as well.  We ran a class last year on asp.net development, and were confused by sql server telling us it did not have a trusted connection.  This article sheds some light on the problem:  http://support.microsoft.com/default.aspx?scid=kb;en-us;815154&Product=aspne

But I am wondering how to set up a lab of machines using VS so that they can access SQL server without having to add each individual machinename\aspnet account to SQL Server security.  Is there a way to tell VS in some config file to use a different default method for authenticating against sql server

Thanks

Joh
   
    ----- Dave Strickland wrote: ----
   
    When you drag and drop the connection onto your form you should be able t
    edit the connection string. If you want to force a connection to appear a
    SQL authentication in Server Explorer. Add a new data connection in th
    server Explorer("Right Click 'Data Connections' and Select 'Add new'"
    specify the server the userID and the Password you want to use
   
   
    "newbie" <bari@sos.REMOVETHIS.state.ga.us> wrote in messag
    news:OIsUGRJLEHA.1416@TK2MSFTNGP09.phx.gbl..
    > I'm running SQL Server 2000.  When I originally set up the localhost,
    se
    > it for Windows Authentication.  For the purpose of going through a
    ASP.NE
    > project in a book, I changed the properties to SQL Authentication (usin
    > Enterprise Manager).  However, when I visually connect to the database, i
    > VS.NET, it still creates a connection string using Windows Authentication
    > and furthermore does not allow that property to be edited.  What would b
    > causing this.  Thanks in advance
    >> Bar

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.