DataSource Controls :: Deploying SQL Database To Local IIS
Mar 20, 2010
I am wriyng an ASP website for my use on my local PC.
I have setup IIS and eveything works OK apart from accessing my SQL database. As I'm new to this I did not realise that you need to change the connnection string to reflect the place where the DB will be.
Having tried various options like http://localhost/ & db name, without succes I'm looking for some help.
View 8 Replies
Similar Messages:
Mar 2, 2010
I'm trying to figure out if it's possible to transfer records from SQL central database (who has a public IP address) into SQL local database (who doesn't have a public IP)?
or if it's not possible can I use a centralized website instead to pass some data into the local website? (but i'm not sure if it will have some security concerns)..
View 3 Replies
Jan 13, 2010
I had a database on a development server of which I am not the owner. The connection string was:
Dim MM_cnnTraining_STRING
MM_cnnTraining_STRING = "Provider=SQLOLEDB.1;Password=xxx;Persist Security Info=True;User ID=xxx;Initial Catalog=Training;Data Source=xxx"
I copied this database to my local machine, In services MSSQL is set to logon with my computer username and password, I have no idea if this affects anything.Also the local database which I can view in MSSQL Server Management Studio, I can connect by Windows Authentication only. The database copied there seems to have maintained the same permissions.Im completely confused. I finally was able to copy to my local machine but now can not connect. I am using dreamweaver, but using the connection string above.
View 7 Replies
May 17, 2010
My hosting company provider MS SQL Express as part of my hosting package, they have provided me with both the name and IP address of the server running MS SQL Express.
I have created a database on this server via management studio and when I create a connection string like this (connectionString="Data Source=ServerName/IP;Persist Security Info=True;User ID=xxx;Password=xxx") my application works fine.
But if I create a local database file and try to attach this with a connection string like this (connectionString="Data SourceServerName/IP; AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=True;User Instance = True ; Trusted_Connection=Yes) my application doesn't work.
Therefore my questions are:-
Is there something wrong with my connection string? Can you use a local database file within a production environment?
View 8 Replies
Jun 9, 2010
In remote db, I can be able to connect ms sql db as localhost in my connection string like below,
<
add
name="ConnectionString"
connectionString="Data
Source=localhost;Initial Catalog=DBServer;Persist Security Info=True;User ID=sa;Password=*****"
providerName="System.Data.SqlClient"
/>
This is running in server and its working fine.
If i want to make any changes in db structure or need to modify any data values, i have to login remotely to my server and has to open sql server management studio do db change or value editing stuffs. Its really getting iritating when the remote machine looks slow.
I just want to know how to configure the db hostname like dbname.domainname.com or mssql.domainname.com in server, so that we can open the server db in local using sql server management studio.
The application installed in windows server 2008 and using IIS 7.0 & SQL Server 2008
I have only little knowledge in server.
View 6 Replies
Jun 10, 2010
while i was adding my aspx pages(framwk2.0) to a html website on IIS 5.1, I GET THE following error
XML Parsing Error: not well-formed Location: file:///C:/Documents%20and%20Settings/Administrator/Desktop/Site/Login.aspx Line Number 1, Column 2:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="_Default" %>
View 2 Replies
Jul 1, 2010
I am using LocalReport class to render reports locally and then converting reports to pdf format and displaying to user. This works fine on my local machine but gettting error 'Object reference not set to an instance of an object' when deployed to the development site. Do we need to install anything on the host server for localreports to work correctly?
View 2 Replies
Jan 12, 2010
I want to copy a database on a development server to my local server. I am not the server administrator but I have rights to the database. Soon after the wizard Executes the SQL Server Agent Job it fails and the error message says:
The job failed. Check the event log on the destination server for details.
Where do I find this log? Also what could be the problem?
View 3 Replies
Apr 23, 2010
I am in the process of moving all of my aspnet Web Apps developed with VS 2010, and SQL Server 2008 to a new hardware box and consolidating them. I am expecting to have 3 boxes running, one for the ASPNet App, One for SQL Server databases, and one for the ASP State Server. I have a few questions.I am looking at the following configuration:1. ) Is it practicle to have my aspnet application totally loaded in ram (using a ramdisk) on my aspnet box, and since I will be storing the session state in a different box, would the aspnet box ever have a read/wriite to the disk drives other than when the application has been loaded. In other words, does the WEb App load in memory like an Windows App does, or are only pieces of it loaded in ram and then others parts of the web app as the web pages are accessed.
View 1 Replies
Jun 14, 2010
I don't know, is this a right question to ask but my question is like is
1:- In my system sometimes i use sqlexpress(server name ".SqlExpress") and sometimes i use full version of sql server (server name "(local)").
2: What i wanted to do that is if i am using sqlexpress then server name should be passed as .SqlExpress and if i am sql server then sever name should be passed as (local).
View 2 Replies
Jan 18, 2010
I've created a SQL stored proc and want to change it to use a local variable to reduce process time..
Major lines of my SP:
[Code]....
I've been trying to use a variable for AVG(AA.Count) so that I don't have to process it three times,
[Code]....
=> this stored proc does not work, and I am not too sure where I should declare my local variable to use it in SELECT statement..
View 9 Replies
Mar 13, 2010
I am developing a website with ASP.NET pages that uses an SQL Server database with LINQ to SQL. I am using Visual Studio's Web Developer along with SQL Server 2008 (Developer Edition) database tables on my personal PC to develop this software. When ready, I intend to transfer the compiled web pages to a web hosting service with an SQL server database that is identical to the database on my PC.
I now have a version of my website deployed on a web hosting service at: [URL] and all of my database tables duplicated at the remote SQL server. However, this version of my website does not work with the database yet. I realize that I can have the VS Server Explorer connect to both databases, but I do not know if the web pages on my PC can use both databases interactively.
I am asking how I can develop my website to use the local SQL Server database and then have the deployed pages use the remote SQL Server database with LINQ to SQL. Do I need to create one version that works with the local database and another deployable version that works with the remote database? What should I do?
View 5 Replies
Aug 16, 2010
On my web page I'm trying to manage a tabular control of some kind that supports inserting. The data will be inserted locally on the page, with no connection to any kind of DB. The inserted data will exist only on this page and will be lost after navigatingto another page.A table that shows all the added rows and has an empty row for inserting is perfect.
View 5 Replies
Mar 15, 2010
I have a page that has been working for sometime and now getting this error..
String was not recognized as a valid Boolean.
Im was working on a How-To document of the pages for our VP and now i cant get to page 2 to continue the document.
I have recently added 2 new radiobuttonlists(rel and relst) and im sure its one of them thats causing the issue. But sicne i cant debug not sure which one is failing. Here is my insert code and the error is occuring on the Line 376:
cmd.ExecuteNonQuery();
The fields for the radiobuttons are all setup as BIT in SQL. They all have default values of 0. They are all setup NOT TO ALLOW NULLS.
[Code]....
View 2 Replies
Apr 19, 2010
i've written a small application using asp.net and sql server express.
my question is after checking the application in the visual studio environment how can i get it to work in a way that
users that are working on the same network as me could use it to?
i've changed the user instances option in the web.config file to false, and from the info i found so far i understand that security measures are to be applied, but i just couldn't get it to work...
View 2 Replies
Mar 3, 2011
On my local machine I have created a database driven website. All is working well on my local machine.
Now I want to upload it to my Arvixe Hosting. How do I do that from Visual Studio 2010 Keeping in mind I have a Database too ?
Do I need to manually create a Database on the Server ? Do I then create all the tables Manually ? Do I then populate the tables manually ? Or is it a 1 button click ?
View 10 Replies
Jun 6, 2010
I have just developed a website with VS 2008, ASP.NET 3.5. It contains a long range of pages and one contact page. The contact page is connected to a SQLExpress database, where details about all the visitors' requests are stored. The website works fine at the development environment, but when I deploy it to the internet host, the Contact page will not open any longer, due to all sorts of problems with the database. I have the database files located in the App_Data folder under the main directory for the website.
I have tried with all kinds of connection strings, setups, etc. - to no avail. I have also tried using the ISP's tool for creating a new database with the intention of copying the original database to it. But when I use the Publishing Wizard and generate a SQL script, then the Web Administration Tool for the remote database won't run the script. Now my question is, plainly: Is there any step-by-step procedure I can use, if I want a data-enabled website. It seems incredible that it has to be so frustratingly difficult. Basically, what I need, is:
* A database, located in the App_Data folder, to store all information received via the Contact.aspx page.
* All visitors of the site should be able to post messages on the Contact.aspx page.
* I have got the information from the ISP that I can connect to MSSQL via the server "host55.nethotel.ccSQLEXPRESS".
If a general procedure can be advised, and some directions about how exactly the database should be set up with authentication, rights, etc., for such a - supposedly ordinary - system, then I will be grateful for any information - or somebody who could point me in the right direction of a solution.
View 2 Replies
Jan 17, 2011
I get another error message regarding SQL database.In my project, the database for membership and roles is under App_Data, plus another DB data i created. both DBs are .mdf"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"I have my web hosting from GoDaddy, do i need to configure anything there? or is it something to do with my web application?This is my connection string in web.config:
[Code]....
View 4 Replies
Sep 1, 2010
I have production server on our intranet and we have website on remote server with its own database. Now we want to sync some tables from our local database to remote database at some interval of time. I have own idea that if data sync is fail than we should get email about that from remote database.
For above scenario I was looking some ideas from you guys and different method to do it. I know about replication of database how to do that. Can we do it by asp.net, SSIS package which will be easy.
View 3 Replies
May 4, 2010
I am using XAMPP to publish my a .net application. The server is working fine. I created a sample login.aspx file, and it works fine. I deleted the sample login file, and I build and copy all the files to the XAMPP directory. When I tried to acces the page, it gave an error message "Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. If you think this is a server error, contact the
View 8 Replies
Jul 15, 2010
I developed an application using VS2010 and now when i try to deploy it on windows XP maching running IIS 5.1 i get the database version error which says:
The database '<database file path>' cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported.
<database file path> . Create is aborted.
An attempt to attach an auto-named database for file <database file path> failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
View 3 Replies
Sep 21, 2010
I have created "DotNetNuke SQL Database Application" from the WebMatrix Gallery. Now I want to deploy it on the remote server using Web Deploy method. Without selecting SQL database, application is deployed successfully but when I select SQL database it gives following error: Publish : Error - Make sure the database connection string for the server is correct and that you have appropriate permission to access the database. (Web Deploy provider is dbFullSql).
View 2 Replies
Mar 18, 2010
I have been running a VWD 2008 express and sql server 2008 express based system both on local server and website successfully, then started getting this error message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Now I cannot run this system on either local server or website.
View 3 Replies
May 20, 2010
I need to insert a record in table which is in remote server....I am using two connection strings for local and remote....both the servers are in same workgroup only...so am able to connect the both.The problem is am filling data of local table in on dataset1 and remote server table data in another dataset dataset2..Now whil inserting a record local an error occured like "This row already belongs to another table" after googlingI found like this like "Dataset.importrow()" instead of "dataset.add()" method...then there is no errors but the inserted record is not inserting in remote server database...
View 5 Replies
Mar 23, 2010
I am unable to connect to my local instance of SQL Server 2008 Express using SQL Server Management Studio.I believe the problem is related to a change I made to the connection protocols. Before the error occurred, I had Shared Memory enabled and Named Pipes and TCP/IP disabled. I then enabled both Named Pipes and TCP/IP, and this is when I started experiencing the problem.
I have now set Named Pipes and TCP/IP back to disabled. When I try to connect to the server with SSMS (with either my SQL server sysadmin login or with windows authentication), I get the following error message:
"A connection was successfully established with the server, but then an error occurred during the login process. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.) (Microsoft SQL Server, Error: 233)"
My first question here is: why is it returning a Named Pipes error? Why isn't it using Shared Memory? It seems like it is not listening on Shared Memory for some reason?When I set Named Pipes to enabled and try to connect, I get the same error message.My windows account is does not have administrator priviliges on my computer.
View 3 Replies