Development environment setup: connect to SQL Server 2000 database - DOTNET

This is a discussion on Development environment setup: connect to SQL Server 2000 database - DOTNET ; Last week I asked a question about connection to database from client machine (developer machine). I have changed the database security setup for "SQL Server and Windows" under (local)Windows NT node of Enterprise Manager. However, I could not setup a ...

+ Reply to Thread
Results 1 to 4 of 4

Development environment setup: connect to SQL Server 2000 database

  1. Default Development environment setup: connect to SQL Server 2000 database

    Last week I asked a question about connection to database from client machine
    (developer machine). I have changed the database security setup for "SQL
    Server and Windows" under (local)Windows NT node of Enterprise Manager.
    However, I could not setup a database connection to Server from Client using
    Server Explorer of Visual Studio 2005. The detail is in the following.

    Configuration of server and client:

    Server: Windows Server 2000, SQL Server 2000
    Authentication method: Active Directory Users and Computers (It is my first
    time to use it)
    User acount MyName with Admin role
    User in database: domainName\MyName
    SQL Server database security setup: "SQL Server and Windows" under
    (local)Windows NT node

    Client: Windows XP pro, Visual Studio 2005 pro

    Operation of database connection:

    1. Open Server Explorer on Visual Studio.
    2. Add connection
    3. Select Microsoft SQL Server and Continue
    4. Select Server name: Server computer name
    5. Select "use SQL Server authentication"
    6. Type in User Name: "DomainName\MyName" or "MyNmae"
    7. Type in User password: my windows server password
    8. Test Connection
    9. Error message: Login fails for user 'MyName' (or 'DomainName\MyName')

    Thanks for any help

    David








  2. Default RE: Development environment setup: connect to SQL Server 2000 database

    after step 7, I type in a database name for connection

    David

    "david" wrote:

    > Last week I asked a question about connection to database from client machine
    > (developer machine). I have changed the database security setup for "SQL
    > Server and Windows" under (local)Windows NT node of Enterprise Manager.
    > However, I could not setup a database connection to Server from Client using
    > Server Explorer of Visual Studio 2005. The detail is in the following.
    >
    > Configuration of server and client:
    >
    > Server: Windows Server 2000, SQL Server 2000
    > Authentication method: Active Directory Users and Computers (It is my first
    > time to use it)
    > User acount MyName with Admin role
    > User in database: domainName\MyName
    > SQL Server database security setup: "SQL Server and Windows" under
    > (local)Windows NT node
    >
    > Client: Windows XP pro, Visual Studio 2005 pro
    >
    > Operation of database connection:
    >
    > 1. Open Server Explorer on Visual Studio.
    > 2. Add connection
    > 3. Select Microsoft SQL Server and Continue
    > 4. Select Server name: Server computer name
    > 5. Select "use SQL Server authentication"
    > 6. Type in User Name: "DomainName\MyName" or "MyNmae"
    > 7. Type in User password: my windows server password
    > 8. Test Connection
    > 9. Error message: Login fails for user 'MyName' (or 'DomainName\MyName')
    >
    > Thanks for any help
    >
    > David
    >
    >
    >
    >
    >
    >
    >


  3. Default Re: Development environment setup: connect to SQL Server 2000 database

    sqlserver supports two types of users. sqlserver where the login and
    password only exist in sqlserver (standard security) and windows
    security, where the login defined in sqlserver is a nt account.

    you created a nt account in sqlsever (sqlserver standard login do not
    have a domain), so you must connect using windows authentication. this
    means vs2005 must be running as the domain user you want to use in
    sqlserver.

    -- bruce (sqlwork.com)

    david wrote:
    > Last week I asked a question about connection to database from client machine
    > (developer machine). I have changed the database security setup for "SQL
    > Server and Windows" under (local)Windows NT node of Enterprise Manager.
    > However, I could not setup a database connection to Server from Client using
    > Server Explorer of Visual Studio 2005. The detail is in the following.
    >
    > Configuration of server and client:
    >
    > Server: Windows Server 2000, SQL Server 2000
    > Authentication method: Active Directory Users and Computers (It is my first
    > time to use it)
    > User acount MyName with Admin role
    > User in database: domainName\MyName
    > SQL Server database security setup: "SQL Server and Windows" under
    > (local)Windows NT node
    >
    > Client: Windows XP pro, Visual Studio 2005 pro
    >
    > Operation of database connection:
    >
    > 1. Open Server Explorer on Visual Studio.
    > 2. Add connection
    > 3. Select Microsoft SQL Server and Continue
    > 4. Select Server name: Server computer name
    > 5. Select "use SQL Server authentication"
    > 6. Type in User Name: "DomainName\MyName" or "MyNmae"
    > 7. Type in User password: my windows server password
    > 8. Test Connection
    > 9. Error message: Login fails for user 'MyName' (or 'DomainName\MyName')
    >
    > Thanks for any help
    >
    > David
    >
    >
    >
    >
    >
    >
    >


  4. Default Re: Development environment setup: connect to SQL Server 2000 data

    Thank you, Bruce.

    Yesterday, I setup Database security as Windows Authentication. But I got
    error message, somthing like 'untrusted computer'.
    The login users for database are added from selecting Windows users. I added
    windows users in Active Directory and setup role. The machine automatically
    add the domain name before the user name. When I login to the server machine,
    I do not need the domain name. And I can use Server Explorer to connect to
    the server by using my server acount user/password.

    In general, could you tell me what I should do on the server machine?

    David



    "bruce barker" wrote:

    > sqlserver supports two types of users. sqlserver where the login and
    > password only exist in sqlserver (standard security) and windows
    > security, where the login defined in sqlserver is a nt account.
    >
    > you created a nt account in sqlsever (sqlserver standard login do not
    > have a domain), so you must connect using windows authentication. this
    > means vs2005 must be running as the domain user you want to use in
    > sqlserver.
    >
    > -- bruce (sqlwork.com)
    >
    > david wrote:
    > > Last week I asked a question about connection to database from client machine
    > > (developer machine). I have changed the database security setup for "SQL
    > > Server and Windows" under (local)Windows NT node of Enterprise Manager.
    > > However, I could not setup a database connection to Server from Client using
    > > Server Explorer of Visual Studio 2005. The detail is in the following.
    > >
    > > Configuration of server and client:
    > >
    > > Server: Windows Server 2000, SQL Server 2000
    > > Authentication method: Active Directory Users and Computers (It is my first
    > > time to use it)
    > > User acount MyName with Admin role
    > > User in database: domainName\MyName
    > > SQL Server database security setup: "SQL Server and Windows" under
    > > (local)Windows NT node
    > >
    > > Client: Windows XP pro, Visual Studio 2005 pro
    > >
    > > Operation of database connection:
    > >
    > > 1. Open Server Explorer on Visual Studio.
    > > 2. Add connection
    > > 3. Select Microsoft SQL Server and Continue
    > > 4. Select Server name: Server computer name
    > > 5. Select "use SQL Server authentication"
    > > 6. Type in User Name: "DomainName\MyName" or "MyNmae"
    > > 7. Type in User password: my windows server password
    > > 8. Test Connection
    > > 9. Error message: Login fails for user 'MyName' (or 'DomainName\MyName')
    > >
    > > Thanks for any help
    > >
    > > David
    > >
    > >
    > >
    > >
    > >
    > >
    > >

    >


+ Reply to Thread

Similar Threads

  1. Replies: 2
    Last Post: 07-18-2007, 02:20 PM
  2. Development Environment setup?
    By Application Development in forum DOTNET
    Replies: 2
    Last Post: 05-02-2007, 06:55 AM
  3. Setup for Development environment?
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 04-27-2007, 02:58 PM
  4. Coomerece Server development environment on Windows XP Professiona
    By Application Development in forum Commerce server
    Replies: 0
    Last Post: 08-01-2006, 03:39 AM
  5. Unable to connect to Access 2000 database
    By Application Development in forum Inetserver
    Replies: 5
    Last Post: 03-03-2005, 05:55 PM