Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 26th, 2007, 09:16 AM
Registered User
 
Join Date: Feb 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default C# and SQL express 2005, multi-user access ??

i created a database on my local computer and then i moved to a computer in my local network. I changed the app.config file to point to the computer where the DB is on (server computer) and i made a user account as a DBowner to this DB on the server computer (incase ur wonderin, I deactivated the firewall on the server computer). When i tried to connect to the DB using SQL server Management studio express using the username and password given at the server computer, i logged perfectly. but using my developed program i always connect to the local DB not the one on the server WHYyyy ???
 Plz help
 
Old February 26th, 2007, 09:46 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Ummm i am not sure what you are saying. Are you saying that in one instance you are connecting through the server and then in the other instance you are trying to connect directly to the database file?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html

Discussion:
http://p2p.wrox.com/topic.asp?TOPIC_ID=56429
 
Old February 26th, 2007, 09:52 AM
Registered User
 
Join Date: Feb 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i just want to connect to a database on another computer .... can u help me ??

 
Old February 26th, 2007, 10:02 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Unless its a Database file (Access or Excel) you must connect through a SERVER to your database. For example, if i take an .MDF file for one of my Sql Server databases and try to connect directly to it, I can't do it as my SQL server defines my users and permissions.

There may be a work around to this, but I do not know of one.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html

Discussion:
http://p2p.wrox.com/topic.asp?TOPIC_ID=56429
 
Old February 27th, 2007, 04:43 AM
Registered User
 
Join Date: Feb 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i am using sql server 2005 express(on the server computer), and i am connecting thruogh it. I gave the sql server a constant IP and i enabled the TCP/IP protocol, and i connected to it easily using my "sql Server management studio express", but how can i make my developed program stop connecting to the local database and connect to the server ???
by the way i also changed my app.config file

any help ??






Similar Threads
Thread Thread Starter Forum Replies Last Post
MSDE or SQL 2005 EXPRESS? angelboy C# 2005 2 June 19th, 2007 12:10 AM
connect to SQL EXPRESS 2005 angelboy C# 2005 0 June 8th, 2007 01:34 PM
SQL 2005 Express Edition Maxxim SQL Language 2 February 5th, 2007 05:19 PM
SQL Express 2005 Tremmorkeep BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 July 20th, 2006 04:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.