Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 December 18th, 2007, 04:47 AM
Registered User
 
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default accesing server name in c# forms

hi all

i have made a databse on MS SQL Server.
i want to know how we get a server name(Microsoft SQL server)in C# forms when i m making a connection to them.
i m writing a following line:
SQLConnection conn=new SQLConnection("server name");

please reply

thanks

 
Old December 18th, 2007, 05:03 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Everything you could possibly want to know about connection strings:

http://www.connectionstrings.com/?carrier=sqlserver

/- Sam Judson : Wrox Technical Editor -/
 
Old January 3rd, 2008, 08:15 AM
Authorized User
 
Join Date: Jul 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mujahidkhaleel
Default

You may need code as well, here is the link for ASP.NET 1.0 server side database access information.

http://www.dotnetjunkies.com/quickst...ataaccess.aspx

Mujahid Khaleel
Web designing, development, E-commerce applications.





Similar Threads
Thread Thread Starter Forum Replies Last Post
accesing database from server navneet_upr02 C# 2 January 3rd, 2008 08:12 AM
How to interpret checkboxes on server-side forms Ravie Javascript How-To 0 May 24th, 2007 01:10 PM
Accesing COM+ components from c# txerra General .NET 2 June 24th, 2005 05:23 AM
Accesing Com+ components from c# txerra C# 1 June 22nd, 2005 06:10 AM
Accesing secured IIS server ichbin Beginning PHP 1 December 10th, 2004 05:19 AM





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