User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 422,412 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,047 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser: Programming Forums
Views: 705 | Replies: 1
Reply
Join Date: Jun 2008
Posts: 4
Reputation: Siten0308 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Siten0308 Siten0308 is offline Offline
Newbie Poster

SQL database wont attach to my C# program

  #1  
Jun 25th, 2008
Hello,

Right now i am running SQL 2005 server and using Visual studio C# 2008 to program. I sadly have a Windows Vista professional, 320gbhd, 2gb ram, intel duel core processor, The problem is on C# you can attach a database to your program to retrive or import information from the user to the database and have C# make a nice gui interface to interact with which i am trying to do, however the steps i am taking in C# is column called data, add data source, choose type, SQL, browse to the MDF file or database, attach it but when i click ok, it thinks or gives me the hour glass then it finally says An error has occured while establing a connection to the server. when connecting to sql 2005, this failure may be caused by the fact that under default settings sql does not allot remote connection." i checked the management and area configuration and checked remote and local settings enabled everything except via on protocal and remote connections, made sure it allows local and remote connections and still the same error message, i have administrative rights on this pc, everything is all local, what am i doing wrong?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 762
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 59
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: SQL database wont attach to my C# program

  #2  
Jun 27th, 2008
Right click on Visual Studio and select run as administrator
Last edited by RamyMahrous : Jun 27th, 2008 at 4:49 pm.
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MS SQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the MS SQL Forum

All times are GMT -4. The time now is 9:28 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC