Вы находитесь на странице: 1из 2

Tutorial Para hacer funcionar Visual Studio 2008 con SQL Express 2008 En primer lugar el Error 26:

es debido a que el conxionString est mal, en mi caso fuel que el nombre de instancia de mi servidor es SQLEXPRESS2008 y no SQLEXPRESS, eso se define al instalar SQL 2008, pero tambin podemos verlo en el SQL Server Configuration Manager , el que est entre parentencis es el nombre de instancia del servidor,

que tambin Para Evitar el Error de compatibilidad de versiones debe ir en Visual Studio para que utilice el SQLExpress 2008 y no otro, se logra esto accediendo a Herramienta -> Opciones -> (la casilla de mostrar todas las opciones debe estar tildada)->Herramienta Para Base de Datos ->Conexin de Datos y colocar el nombre de la instancia del servidor.

Ejemplo en el web.config : <appSettings> <add key="ConnectionString" value="Data Source=.\SQLEXPRESS2008;AttachDbFilename=|DataDirectory| \OXIGENPC.mdf;Integrated Security=True;User Instance=True "/> </appSettings>

Y en el App_code/conexion.cs quedar: private static string _stringConexion = ConfigurationSettings.AppSettings["ConnectionString"]; private static Type _tipoParametro = typeof(SqlParameter);

Instaladores: SQL Express 2008 with Management tools: http://download.microsoft.com/download/5/5/8/558522e0-2150-47e2-8f52ff4d9c3645df/SQLEXPRWT_x86_ENU.exe

By Luis Paniagua.

Вам также может понравиться