|
-
Create Database Connection in the C#.net
hello all,
I have database named 'Marketing', and want to bound DropDownList control with it using 'add connection' dialog box in the C#.net.
I gave datasource: 'Microsoft SQL Server Database File (SqlClient)'. And when I give DataBase file name as 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\Marketing_Data.MDF', I get error while testing the connection:
"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that
under default settings SQL Server dose not allow remote connections. (Provider:SQL Network Interfaces, error: 26-Error Locating Server/Instance specified)".
So what DataBase File name I should give here for completing the database binding?
Thanks
Similar Threads
-
By borceivanovski in forum Java
Replies: 1
Last Post: 04-27-2005, 05:35 PM
-
By karthikeyan in forum VB Classic
Replies: 1
Last Post: 11-18-2002, 08:45 AM
-
Replies: 1
Last Post: 11-27-2001, 06:53 AM
-
By Vaughan in forum Database
Replies: 0
Last Post: 06-28-2001, 03:08 PM
-
By Steve in forum Careers
Replies: 0
Last Post: 04-25-2001, 06:51 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks