My SQL and MSSQL Database Connection string
Posted Date Unknown 0 Comment

Introduction

Connection string means , a string of parameters that is required to establish a connection to the Remote/Local database .It will contain  Database User name , Password,DB Server Host name etc

Description

Some hosting servers , the database will be on another server , so we need to put that server name/ servers IP . Else we just put the db server as local host .
User name- is the Username created with DB
Eg :  ASP.net C# with MS SQL 2008
con.ConnectionString = "server=localhost;database=DB_MLIFE;uid=sa;pwd=admin";
Where con is the object of connection
private  SqlConnection con = new SqlConnection();

My SQL with php Connection string

mysql_connect(servername,username,password);

<?php
$con = mysql_connect("localhost","John","admin123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

// some code
?>

See All Responses Below...
Author
Message Rating
Posted on:
Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Comments
   Design  HTML
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

TekTipsDownload
GateExam
Academic Projects
TekTipsExperts



 
Site optimized for IE7, 1280 X 768 and above. Copyright © 2010 - 2018 KTS InfoTech
Site Developed Using KTS WebCloud