₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,381 members, 8,511,580 topics. Date: Monday, 02 November 2026 at 12:05 AM

Toggle theme

Problem Setting Up Database On A Live Website - Webmasters - Nairaland

Nairaland Forum › Science/Technology › Webmasters › Problem Setting Up Database On A Live Website (768 Views)

1 Reply (Go Down)

Problem Setting Up Database On A Live Website by fatezy(op): 3:55pm On Jan 06, 2011
Good day. Pls, I have a site which I developed. during the testing stage, I had no problem with the data base connection with everything working seamlessly. I used a connection string similar to this - "name="me" connectionString="Data Source=.\sqlexpress;Initial Catalog=them;Integrated Security=True" providerName="System.Data.SqlClient".
I have successfully created the database on the site but it is giving me an error message that the sqlserver was not found or is accessible. Please help.
Re: Problem Setting Up Database On A Live Website by jjjkkkooo: 9:58pm On Jan 07, 2011
What is the DBMS u are using and what tool are u using to upload? cpanel, filezilla etc?
Re: Problem Setting Up Database On A Live Website by viewspro: 11:11am On Jan 10, 2011
I think the problem is with your connectionstring.

On the live sever: you would need to use something like the following:
Data Source=SERVERNAME/IPADDRESS;Initial Catalog=DBNAME;User ID=USERNAME;Password=YOURPASSWORD

Like you mentioned that you have successfully created the database on the live server, then you need to update the parameter in the connectionstring above to the correct settings:
SERVERNAME/IPADDRESS: the name of the server or ip address of the server you created the database
DBNAME: name of the database you created.
USERNAME: the username your host gave you (except it a dedicated server, then you would need to create a user)
YOURPASSWORD: the password you used in login to the DB

Let know how it went!
Re: Problem Setting Up Database On A Live Website by fatezy(op): 10:41am On Jan 11, 2011
Thanks for your reply. The problem was indeed with the connection string.
Ha to change the datasource to localhost and set the username and password. Thanks for the reply
1 Reply

Help On Creating A Live Video Streaming Website • Database On Dw8 • Setting Up Wamp Server To Run On Local Area Network • 2 • 3 • 4

Please Review This Site • Buy You Bulk Smsm@ 1.2ok • Web Master Needed Urgently