473,762 Members | 6,675 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MSSQL "A network-related or instance-specific error" and IIS application pool

5 New Member
Hello!

I've got web application created for MSSQL and IIS. There are two directories in this application - Scripts and WebSite. In Script there is file CreateDb.sql. I need to run it so that it can create database. I changed in that file one line into this:
CREATE DATABASE [NameOfDb] ON PRIMARY ( NAME = N'NameOfDb', FILENAME = N'F:\Inetpub\ww wroot\htdocs\We bSite\NameOfDb. mdf'
and the other part for the same directory but other filename (NameOfDb.ldf). I store the file CreateDb.sql in the directory F:\Dane\NameOfP roj\Scripts. I copied WebSite directory here F:\Inetpub\wwwr oot\htdocs\WebS ite.

:: MSSQL ::

I installed Microsoft SQL Server 2008 and run in Command Prompt:

C:\Documents and Settings\userus er>osql -Usa -Ppassword -i "F:\Data\MyAppl ication\Scripts \CreateDb.sql"
[SQL Server Native Client 10.0]Named Pipes Provider: Could not open a connection to SQL Server [2].
[SQL Server Native Client 10.0]Login timeout expired
[SQL Server Native Client 10.0]A network-related or instance-specific error has occured while establishing a connection to SQL Server. Server is not found of not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.

I found this http://www.mydigitalli fe.info/2007/10/31/error-has-occurred-while-establishing-a-connection-to-sql-server-2005-which-does-not-allow-local-and-remote-connections/ but it is for Microsoft SQL Server 2005. I don't have any SQL Server Surface Area Configuration in Configuration Tools. How to get rid of that SQL Server Native Client 10.0 error?


:: IIS ::

I entered "control Panel" -> "Administra tive Tools" -> "Internet Information Services", pressed right mouse button on "Web Sites" but I couldn't find any "Add Site", in the menu "File" neither.

So I entered directory F:\Inetpub\wwwr oot\htdocs and copied WebSite to this directory (as mentioned at the beginning of this post). The problem is that the main file is not "index.html " but "Default.as px".

I also run in Internet Explorer address 127.0.0.1. It asks me about user name and password, I enter it correctly. But then I see "The page cannot be displayed". Maybe IIS is not properly run? How to run IIS properly?

It is written in pdf documentation of this web application that I need to "create on Internet Information Services 6.0/7.0 web application. Assign application pool to the application, it is recommended for the application to have its own application pool". Maybe it is the reason that it doesn't work? How to create this application pool properly?

Greetings!
Aug 12 '09 #1
1 7840
johnyjj2
5 New Member
I followed this http://technet.microsoft.com/en-us/l...85(WS.10).aspx but when I try to "expand the local computer, right-click Application Pools, point to New, and then click Application Pool" I don't see any "Applicatio n Pools". There are only: Web Sites (Default Web Site: IISHelp, ..., admin, ... htdocs [-> WebSite], phpmyadmin), Default SMTP Virtual Server (Domains, Current Sessions). How to add application pool properly?

How to get rid of that SQL Server Native Client 10.0 error?

Greetings!
Aug 12 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
1725
by: R. Rajesh Jeba Anbiah | last post by:
I'm in need of alumni application; I can write one, but I'm running out of time. Googled and also searched in SF <http://sourceforge.net/search/?type_of_search=soft&exact=1&forum_id=0&group_id=0&atid=0&words=php%20alumni&Search=Search>. But, couldn't find anything what I really wanted: forum, internal messaging system, view profiles, posting news/job, etc. So, I'd thought of customizing any existing applications that is easy to customize....
0
2850
by: Alphamacaroon | last post by:
All, I'm wondering if anyone can help me with a strange problem I'm having. First off, here's what I'm trying to do: I'm developing a UDP network application that should allow the end user to choose the network interface they want to send and receive UDP packets on. Simple enough. If the computer has a single network card and IP address this all works
1
1504
by: Droopy | last post by:
Hi, It is more a design or architecture question but as I am using C#, I assume it is the right news group to post. I wrote a Tcp messages routing service that run on many PCs. At startup, a service must connect to all running services. Currently, I send an UDP multicast message when a service is started. All running services answer to this message and a TCP connection is created. The problem is that with UDP messages, some services...
1
22616
by: Dennis | last post by:
I use the below code to get the Network Places items. However, this requires "Late Binding". I read that you can avoid late binding by adding a reference to the Com Types in your application. Does anyone know what reference to add and what to import? Dim drives() As String Dim ob As Object = CreateObject("WScript.Network") Dim odrives As Object = ob.EnumNetworkDrives dim k as integer If odrives.count > 0 Then
1
332
by: sagenaut | last post by:
The design issue is detailed as following: One application will write data to a flat file about every hour. Once the flat file is updated, it must be transmitted to three different remote locations simultaneously. The requirement is that the three remote locations must receive the flat file at the same time within a second, or the transfer was failed, that is, it cannot be that some locations receive the flat file and the others do...
31
3563
by: damacy | last post by:
hi, there. i have a problem writing a program which can obtain ip addresses of machines running in the same local network. say, there are 4 machines present in the network; , , and and if i run my program on , it should be able to find "host names" and "ip addresses" of the other machines; , and ? i have read some threads posted on this group, however, they only work for localhost, not the entire network.
10
3327
by: CCLeasing | last post by:
How do I communicate between different user instances of my windows forms project? Im trying to write a program that will run on a network of 15 pcs. 5 of the pc's will run the admin part of the program. and the rest of the pc's will run the salesman part of the program. Both forms (the admin form, and the salesman form) at this stage are VERY simple as i'm just trying to learn the mechanics between basic
3
3385
by: radrain | last post by:
Unable to CreateObject("wscript.network") in IE7. This works fine in IE6 BUT this is now considered to be 'unsafe' and I cannot find any alternatives to getting the computer name and the UserDomain. Any suggestions? Richard
0
1139
by: kellygreer1 | last post by:
I'm writing an .ashx page that needs to be able to write files to a network share. Example: string fullPath = @"\\someserver\someshare\log.txt"; File.WriteAllText(fullPath,"test"); I seem to be running into that old Network Token issue from Classic ASP. I had solved this in the past by writing a .COM component to impersonate the same user as the requester but as a "real" token
1
1245
by: quantumkev | last post by:
Hello - We have an Access database on a network drive, and I am currently trying to figure out who may have it open. All of our PC's are Windows based, and we use Novell as our NOS. Is there any tool or utility for finding out who has an application open on a shared drive? Any advice or assistance is greatly appreciated. Q-kev
0
9554
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
9377
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
10136
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
9989
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
9925
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,...
0
6640
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();...
1
3913
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
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.