Hi All,
I am a bit lost on this one. My web host is 123-reg and I have created a database on their host to store the data as per the Beginning ASP.NET Book by Imar. The connection strings currently configured in the web.config file are as follows:-
Code:
<connectionStrings>
<add name="PlanetWroxConnectionString1" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\PlanetWrox.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
<add name="PlanetWroxEntities" connectionString="metadata=res://*/App_Code.PlanetWrox.csdl|res://*/App_Code.PlanetWrox.ssdl|res://*/App_Code.PlanetWrox.msl;provider=System.Data.SqlClient;provider connection string="data source=.\SQLEXPRESS;attachdbfilename=|DataDirectory|\PlanetWrox.mdf;integrated security=True;user instance=True;multipleactiveresultsets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
</connectionStrings>
Nothing new there really, but below is the connection information I have been provided by 123-reg for connecting to there web database. There are 3 options which are:-
Connection string (ASP.net)
Code:
<appSettings>
<add key="ConnectionString" value="Server=ATLAS-SQL-07; Database=bionatureagricultur_XXXXXX_db1; User Id=ubio_XXXXXX_0001; Password=XXXXXXXX" />
</appSettings>
Connection string (classic ASP: OLE)
Code:
myConnectionString="Provider=sqloledb;DataSource=ATLAS-SQL-07; Initial Catalog=bionatureagricultur_XXXXXX_db1; User Id=ubio_XXXXXX_0001; Password=XXXXXXXX;"
Connection string (classic ASP: ADO)
Code:
myConnectionString="Driver={SQL Server};Server=ATLAS-SQL-07;Database=bionatureagricultur_XXXXXX_db1;User Id=ubio_XXXXXX_0001;Password=XXXXXXXX;"
With still being new to ASP and only really knowing what Imar has taught me so far I have no idea where to start in modifying the original connection strings to accommodate the information from 123-reg.
Can anyone therefore give me any advice as to where to begin?
Thanks in advance for any help.
Kind regards,
Ian Ryder.