Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to connet to SQL Server newbie?
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00940862
Message ID:
00941025
Vues:
16
Thank you so much for your help!

>The syntax of the connection string varies with the data source and with the data provider. Even with the same data source but with a different data provider, the syntax changes. For example, to connect to a SQL Server database in .NET, you can use the SQL Server .NET data provider (the preferred method with the best performance) but you can also use the OLE DB .NET data provider or even through the ODBC .NET data provider. Each has differences. The easiest thing to do is to stick with the syntax that I gave you to connect using SQL Server authentication. This will use the SQL Server .NET data provider and give you the fastest connection with the least amount of overhead.
>
>As for Enterprise Manager, it does not ask you for your username and password because the connection to you database in Enterprise Manager has saved that information (right-click on the name of your server in Enterprise Manager and select Edit SQL Server Registration Properties to see this).
>
>To see if you have mixed mode security, right click on the name of your server in Enterprise Manager and select Properties. Then select the security tab and look at the Authentication setting. You want SQL Server and Windows selected.
"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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform