Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server, localhost and Win XP Pro
Message
From
09/12/2004 21:18:48
 
 
To
09/12/2004 08:45:26
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00967548
Message ID:
00968197
Views:
22
Hi Bill,

I've got WinXP SP2, and SQL Server 2000 on my box at home, and this connection string works for me:

Data Source=(local);Initial Catalog=< database_name>User ID=< user_name>;Password=< password>"

HTH,
Phil


>Hi Craig,
>
>Pretty sure I tried most of the obvious forms, "localhost", "(localhost)", "(local)", etc. but will give it another shot.
>
>Bill
>
>>Have you tried "(local)"
>>
>>
>>>When developing on my Win2K machine at work, I can use the "(localhost)" identifier in the SQL Server connection string in Web.config for connecting which works well and is handy for all local development.
>>>
>>>However, this does not work on my Win XP Pro machine at home. It seems to require the actual machine name for connecting. Is this correct or is there a "localhost" designator that works on Win XP?
>>>
>>>Thanks,
>>>Bill
Phil
_____________________________
Phil Miles
http://www.philmiles.com
phil@philmiles.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform