473,320 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

SQL server does not exits....

16
i have 1 new .aspx page where i run on my local host it can run normally but when i run at another computer it show the error:



here is my connection:
Expand|Select|Wrap|Line Numbers
  1.             conn5 = New SqlConnection(ConnStr)
  2.             cmd5 = New SqlCommand(lsSQLSTRX, conn5)
  3.             adp5 = New SqlDataAdapter(cmd5)
  4.             lds5 = New DataSet
  5.             DT5 = New DataTable
  6.             adp5.Fill(lds5, "x")
  7.             DT5 = lds5.Tables(0)
  8.  
  9. ConnStr = "data source=" & Trim(lsSAL_SERVER) & ";initial catalog=" & Trim(lsSAL_DATABASE) & ";password=" & Trim(lsSAL_PASSWORD) & ";user id=" & Trim(lsSAL_USERID) & ";"    
  10.  
anyone know please help me...thanks...
Feb 7 '09 #1
4 1836
ck9663
2,878 Expert 2GB
You have to connect to your sql server from your web server. Your connection string does not include your server name/setting. so it's looking for a local server or the server residing in the same box.

-- CK
Feb 8 '09 #2
lily86
16
thanks for your reply... but can i know how to write the code with include the server.....
Feb 8 '09 #3
ck9663
2,878 Expert 2GB
Here are some useful links


Connection Strings

DSN-Less Connections
Feb 13 '09 #4
lily86
16
thanks...i get the solution....
Mar 4 '09 #5

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

Similar topics

0
by: Tess | last post by:
Hi, Long time reader, first time poster... Any help is appreciated. I have a few questions regarding Winform controls embedded within an html page. For more info please see the appendix. Now,...
4
by: banz | last post by:
Hello I have a problem to resolve: I wrote a Perlscript which caches data from a server (local on my machine) I would like to have a other connection to a remote server but I don't know how to...
1
by: Del | last post by:
We have a MS SQL Server 2000 application for our shipping system. We have created a front end application using MS Access for our order analyst. The front end application allows the analyst to...
0
by: jwogdn | last post by:
I have a VB program that uses DAO and MS Jet to access an MS Access database on and a server that runs Windows XP Pro. Some client machines are running windows 98. On these, windows 98, machines...
3
by: ferbar | last post by:
Hello all, This may sound pretty basic stuff.. but I'm working on a socket example whose client seems to work fine, but the server doesn't send to the client the expected result. The problem is...
29
by: keredil | last post by:
Hi, Will the memory allocated by malloc get released when program exits? I guess it will since when the program exits, the OS will free all the memory (global, stack, heap) used by this...
2
by: Stephen Brown | last post by:
We've been using dotNet for a couple of years now and have been updating our live server by just overwriting (Explorer drag and drop) the aspx and assembly files until we had some errors reported...
10
by: Steve | last post by:
I want to make a web application that will run on my home server and would like to be able to have the web application interact with another, winforms application. For example, let's say I wanted...
0
by: alikim | last post by:
Hi, I'm trying to create a network game where the server part is a cgi script and the client is a flash embedded into an html page. Data exchange is performed via sockets. Now I'm using the...
4
tdw
by: tdw | last post by:
Hi all, This is an Access question, but it may spill over into requiring non-Access solutions. Please let me know if I should look for this answer elsewhere (and if you have suggestions on where...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.