Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Microsoft SQL Server connection

Author  Topic 

Alessandro
Starting Member

14 Posts

Posted - 2010-05-06 : 14:59:40
I would create The database is a Microsoft SQL Server database with
the following specs:
- hostname: localhost
- username/password: dbuser/dbpassword
- database name: clients
- tables: client_info

How can I create, with sqlexpress, a database in localhost?
Wich role do I need for dbuser to extract data from clients in asp.net ?

Alessandro
Starting Member

14 Posts

Posted - 2010-05-06 : 21:19:19
I do again:

Database server: LOCALHOST\SQLEXPRESS
Database Name: clients
Database User Name: dbuser
Database Password: dbpassword

I would like that Database server: LOCALHOST
without sqlexpress. Is it possible?
Where do I have to work?
On the code, on Microsoft SQL Management or SQL server configuration?

Go to Top of Page

Alessandro
Starting Member

14 Posts

Posted - 2010-05-07 : 10:21:02
any ideas?
Go to Top of Page

Peter99
Constraint Violating Yak Guru

498 Posts

Posted - 2010-05-07 : 16:26:04
try query analyzer
Go to Top of Page

Alessandro
Starting Member

14 Posts

Posted - 2010-05-08 : 13:51:39
in sqlexpress there is not any query analyzer
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-05-08 : 16:20:48
You wouldn't use Query Analyer anyway for this.

To refer to your database server as LOCALHOST instead of LOCALHOST\SQLEXPRESS, you can create an alias in SQL Server Configuration Manager. Make sure you look up the port for the SQLEXPRESS instance so that you specify that in the alias.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Alessandro
Starting Member

14 Posts

Posted - 2010-05-09 : 13:25:52
Thank you, it works.
But if I try the connection I see:
Login failed for user 'dbuser'. The user is not associated with a trusted SQL Server connection.
Go to Top of Page

Alessandro
Starting Member

14 Posts

Posted - 2010-05-09 : 13:47:31
I have solved the problem :-)
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-05-09 : 17:07:57


Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -