473,738 Members | 11,192 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need Help Connecting to MSSQL

Hi.

I am experiencing problems connecting to MSSQL.
I'm not sure where to begin looking for the problem.
I don't know if the problem is originating with PHP or MSSQL

What should the host name be? When I mouse over MSSQL manager it says
"\\S-CIS-0042"

$db_host='local '; //IP/host of the database server
$db_login='sa'; //database login name
$db_password='* *****'; //database password
$db_name='Cheet ah'; //database name on the server

Jul 17 '05 #1
2 1725
$localhost

Jul 17 '05 #2
bi*******@gmail .com wrote:
Hi.

I am experiencing problems connecting to MSSQL.
I'm not sure where to begin looking for the problem.
I don't know if the problem is originating with PHP or MSSQL

What should the host name be? When I mouse over MSSQL manager it says
"\\S-CIS-0042"

$db_host='local '; //IP/host of the database server
$db_login='sa'; //database login name
$db_password='* *****'; //database password
$db_name='Cheet ah'; //database name on the server


Hi,

$db_host='local host'; If the database is on localy on "your" computer

or

$db_host='192.1 68.x.x'; (valid address) If the database is on a remote
computer
Greetings, Urs
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2777
by: Google Mike | last post by:
I just found out from someone named Frank M. Kromann in one of the other PHP forum websites that I don't have to recompile PHP on Linux in order to add a database connector. I've been pulling my hair out on this issue for several days now, so I wish to publicly thank Frank M. Kromann, whereever he is. He didn't leave a valid reply email to me, but he's alright in my book. Let's say you have a beautiful Linux and PHP install. Everything...
3
2307
by: John Fabiani | last post by:
Hi, I'm hoping someone on the list has connected to sybase/MsSQL with something that works with DBAPI 2.0 from a linux box (SUSE 9.2) because I can't seem to get it done. I found Object Craft's python code that uses FreeTDS. But I can't get it compiled. The code is looking for "sybdb.h" (first error) - of course I don't have "sybdb.h". It is not in Object Crafts code nor in the FreeTDS source. I'm guessing that I need sybase develop...
2
15666
by: Pippen | last post by:
I'm currently trying to access data from a Cache DB using MSSQL. I have linked the Cache server through an ODBC connection. I can see in the Linked Server expansion all the tables in Cache for the File(?) I want to access. Here is my problem: Normally to access a linked sever I would do the following: select * from ServerName.DatabaseName.dbo.TableName
9
5840
by: Advo | last post by:
Im having major problems trying to connect to a mssql database thats hosted on our server. I've got the ip, username, password and database name, yet no matter what i try, I cant seem to connect. I've trawled the net for hours looking for code, has anyone got any that definately works, or just a simple way I can check the connection. Thanks
1
1911
by: brosner | last post by:
I installed MSSQL 2000 on my desktop (running NT 2000). No problem. I created an adp and attached it to a database within MSSQL 2000, no problem. When I go into MS Access, on another PC (running Windows XP Pro) on the same network, and try to create a using 'Project(Existing Data)' and connect it to MSSQL 2000 on my desktop, I fill in the Data Link Properties '1. Select or enter server name', no problem, '2. I click on Use Windows NT...
1
13814
by: bg_ie | last post by:
Hi, I like to develope an application which uses a MsSQL database. I believe that C# works really well with MsSQL. To start with, I'd like to host the sql server locally on my machine as I develop, but later I'd like to be able to host it on a server and have multiple instances of the application access the server. I have installed SQL Server 2005 Express Edition on my machine but was never prompted for a user name or anything like...
0
1090
by: acb7621 | last post by:
Hi every1, Ive just created a database in MSSQL 2000. Ive created all the tables and inserted demo records it compiles completely. I am now trying to connect to the database with PHP through the IIS but it does not display anything at all. I have some normal 'echo' code to check that PHP is fine, and THAT displays ... but it seems i can't even connect but i don't even get an error message! I'm running PHP 5, IIS 5 and MSSQL 2000 on the...
6
1642
by: Joe Adams | last post by:
I am attempting to reinstall from a windows gone bad problem. XP had "died" and unable boot into os, so there was no backup or copy database made. Have installed new hdd. copied most all of the old hdd to a "backup" folder on new hdd. I know of the program files ms sql data subdir. System state. XP professional , not sharing on network, so is like standalone pc. sql is 8.0 ( the downloaded version that was part of the installation of a...
10
4094
by: khalid galal | last post by:
Hi, i am having a problem with connecting ASP with MSSQL SEVER 2005 EXPRESS EDITION, i am writing ASP code using javascript. look at this peace of code: var myConnect = "Provider=SQLNCLI;Data Source=.\SQLEXPRESS;Initial Catalog=quiz;User ID=factory1;Password = 123;"; var ConnectObj = Server.CreateObject("ADODB.Connection"); var RS = Server.CreateObject("ADODB.Recordset"); var sql="select * from .dbo.Question"; ...
0
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9476
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9335
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.