473,396 Members | 1,683 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,396 software developers and data experts.

problem connecting to sql server when I run from another PC

Hi, I'm working on a window based application. It's running just fine from
my machine where the SQL server is installed. I tried running from another
PC on the network by creating a shortcut to the application's .exe file and I
got error message about not alble to access SQL server because user 'null'
and that it's not a trusted connection. Can someone tell me how to correct
this problem?

string conStr = @"Server=Support\NetSDK; user id=tis;
password=tis;Integrated Security = SSPI; database = VMS";
conDB = new SqlConnection(conStr);

Thanks, Alpha
Nov 17 '05 #1
2 1566
Hello Alpha,
Try following:
1. Make sure that Support machine is visible from the server you running
your application from.
2. Remove "Integrated Security = SSPI;" from connection string.
3. Make sure that 1433 port is not blocked ( by firewall ot other software)

Hope it helps,
Oleg
Hi, I'm working on a window based application. It's running just fine
from my machine where the SQL server is installed. I tried running
from another PC on the network by creating a shortcut to the
application's .exe file and I got error message about not alble to
access SQL server because user 'null' and that it's not a trusted
connection. Can someone tell me how to correct this problem?

string conStr = @"Server=Support\NetSDK; user id=tis;
password=tis;Integrated Security = SSPI; database = VMS"; conDB = new
SqlConnection(conStr);

Thanks, Alpha

Nov 17 '05 #2
I removed the "Integrated Security = SSPI;" and it works. Thank you.

"Oleg Kap" wrote:
Hello Alpha,
Try following:
1. Make sure that Support machine is visible from the server you running
your application from.
2. Remove "Integrated Security = SSPI;" from connection string.
3. Make sure that 1433 port is not blocked ( by firewall ot other software)

Hope it helps,
Oleg
Hi, I'm working on a window based application. It's running just fine
from my machine where the SQL server is installed. I tried running
from another PC on the network by creating a shortcut to the
application's .exe file and I got error message about not alble to
access SQL server because user 'null' and that it's not a trusted
connection. Can someone tell me how to correct this problem?

string conStr = @"Server=Support\NetSDK; user id=tis;
password=tis;Integrated Security = SSPI; database = VMS"; conDB = new
SqlConnection(conStr);

Thanks, Alpha


Nov 17 '05 #3

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

Similar topics

3
by: W Akthar | last post by:
Hi I am trying to create a windows service which queries SQL Server on timed intervals and depending on the results send appointments to Outlook. The problem lies when I try to create an...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
0
by: richard | last post by:
OS: Winxp and Win2003 Visual Basic.NET 2003 MS-SQL Server 2000 hey all I am a newbie in vb.net but i have managed to build a simple chat server in vb.net using socket and a client connecting...
2
by: John | last post by:
Hi I was working fine with create user wizard and the default membership provider. I have now customised the membership provider as per attached web.config. The create user wizard picks up the...
4
by: snowweb | last post by:
I am trying to implement a CSS hierarchical unfolding menu on a site. The thing is, it needs to be dynamically populated from the results of a database query. I previously had the menu working but...
2
by: shapper | last post by:
Hello, I added some profile properties to my web.config file. Then I started to use my profile properties in a page class and I get an error: An error has occurred while establishing a...
9
by: darthghandi | last post by:
I am trying to create a server application using asynchronous sockets. I run into a problem when I try to connect to my server using a non-.net program. I can establish the connection, and send...
1
by: Vikram S | last post by:
Hi All, I have an ASP.NET 2.0 web application on a web server and a separate machine for SQL Server 2000 Database. I am using a Connectionstring based on Sql Authentication to connect to the...
0
by: riyazrasheed1234 | last post by:
Hi guys, Any one is there to help me? I have problem remotely connecting SQL 2005 thru my VB Aplication. I have set it to allow remote connections and use TCP IP and have opened TCP port...
2
by: orandov | last post by:
Hi, I am having a problem connecting my .net applications from the application server to the database server. When I run the application from my windows xp (sp2) box it works fine. When I try to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.