How do I move my database?
i using vwd 2005 express, sql 2005 express. web hosting company supports asp 2.0 , sql server 2005, have put sql on database server, separate application server. published "hello world" test application, but my database application failed after displaying logon page, presumably when first tried connect database.
vwd has created database within application folder (app\app_data\aspnetdb.mdf) , created configuration string in web.config: -
<
add name="connectionstring" connectionstring="data source=.\sqlexpress;attachdbfilename=|datadirectory|\aspnetdb.mdf;integrated security=true;user instance=true" providername="system.data.sqlclient" />this works fine on local development server, naturally fails when application copied web host, , database can no longer run application sub-folder. sql 2000 problem have been simple fix. have created database in host db server. have backed development database, , restored target database. have changed connect string, , have been ok.
how development database target database sql 2005 express? can't use backup/restore, since there no backup within vwd 2005 express, , although there backup within management studio express (mse) need database mse first. tried opening mdf file, mse wouldn't recognise this. can't find way of exporting database - equivalent of sql 2000's dts not available within mse!!!!!!!!! i tried installing eval. version of full management studio, install failed because "there no upgrade path".
once that's sorted (if can sorted - may have go sql 2000), can find out write in configuration string?
thank you, robert barnes
| robert barnes wrote: | |
|
it same sql server 2005... express system using user instances develop under. can use management studio tools , attach database file server, set can database..... have database ftp hosting database server , restore database host server... last need change connection string talk server.
<add name="connectionstring" connectionstring="data source=<dbservername>;initial catalog=<databasename>;integrated security=true;user instance=true" providername="system.data.sqlclient" />
if using sql logons...
<add name="connectionstring" connectionstring="data source=<dbservername>;initial catalog=<databasename>;user=<userid>;password=<password>" providername="system.data.sqlclient" />
SQL Server > SQL Server Express
Comments
Post a Comment