connection string

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2009
Posts: 9
Reputation: Digvijaysinh is an unknown quantity at this point 
Solved Threads: 0
Digvijaysinh Digvijaysinh is offline Offline
Newbie Poster

connection string

 
0
  #1
Feb 14th, 2009
Hii
everybody,
i want to make connection of my window application in c# and asp.net with
remote sql server 2005 then how can i make connectionstring and connection with remote database? please help me on this topic.
also if suppose connection is established, then how we can show the data of table of remote
server database in datagridview of our application.
thanx in advance!
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 514
Reputation: techniner is an unknown quantity at this point 
Solved Threads: 19
techniner techniner is offline Offline
Posting Pro

Re: connection string

 
0
  #2
Feb 14th, 2009
Using standard security:
  1. Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;

Using Trusted:
  1. Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;


Just curious, why aren't you using the data source tools in Visual Studio to basically drag and drop your connection and display data grid?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC