Home > DeveloperSection > Interviews > What is a syntax for connection string to connect to a SQL Server Express database using Silverlight ?

Posted on    May-23-2011 4:45 AM

 SilverLight SilverLight 
 1 Answer(s)
  1894  View(s)
Rate this:

James Smith

Total Post:79

Posted on    May-23-2011 12:00 AM

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;";

Don't want to miss updates? Please click the below button!

Follow MindStick