Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to connet to SQL Server newbie?
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
How to connet to SQL Server newbie?
Miscellaneous
Thread ID:
00940862
Message ID:
00940862
Views:
57
My first attempt to connect to SQL Server from .NET so please be gentle <g>.

The SQL Server I am trying to connect is on my pc. I tried the following syntax for connection string:
string strConn = "server=(local);database=MyDatabase;integrated security=true;";
I am getting an error when trying to Open the connection. The error is:
Login failed for user 'NOTEBOOK\ASPNET'
"NOTEBOOK" is the name of my PC. What am I not specifying in the connection string?

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform