WHAT IS A SYNTAX FOR CONNECTION STRING TO CONNECT TO A SQL SERVER EXPRESS DATABASE USING SILVERLIGHT ?

James Smith

Total Post:79

Points:395
Posted by  James Smith
 1947  View(s)
Ratings:
Rate this:
  1. James Smith

    Post:79

    Points:395
    What is a syntax for connection string to connect to a SQL Server Express database using Silverlight ?

    There are number of options and most common one is to user LINQ to SQL classes and connections string will be auto generated by Framework. If you want to use direct connection you can use following string:
    var connectionString = @"Driver={SQL Server}; Server={MACHINE_NAMESQLEXPRESS}; Database=StoreCatalog; Trusted_Connection=Yes;";

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!