By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,659 Members | 1,714 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,659 IT Pros & Developers. It's quick & easy.

server database

P: 26
if I create username and password to the sql server through these statment

USE <database name> GO

CREATE USER <new user name> FOR LOGIN <login name> ; GO

what will be the connection string on that case..I mean the connection string u have to mention database...will it be the master the connection string will be

string conntemp = (@"Data Source=.\SQLEXPRESS;Database = master;Integrated Security=True;Connect Timeout=30;User Instance=True;");

one other question...

how display the avialabe database on the server on order to let the user choose between them ?

and how to display the avialabe server in order to connect to any of them?
Mar 11 '09 #1
Share this Question
Share on Google+
1 Reply

Expert 2.5K+
P: 2,878
Here's the oen for database and one for servers

-- CK
Mar 12 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.