473,320 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

where do we put the codes for connection to databse while coding

after creating the class in C# do we put the codes in the class created or in default "programs.cs" class???
Jul 15 '14 #1
0 1077

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: VK | last post by:
Dear All: We are in the processing of building a new web site using VB.NET and SQL2000 I had a question about WHERE to store the connection string for SQL dB - in an include file or...
2
by: Maziar Aflatoun | last post by:
Hi guys, I'm using Windows authentication to connect to SQL Server 2000. On my computer the connection is fine. Now if I move it to a remote server, how to I hard code my Username/Password in...
7
by: Phil | last post by:
Hi all, 1st post here so................:-) I am using VS.Net and coding in VB. I am following some examples from a book that shows a connection string as:- sqlcnn = new sqlconnection("data...
9
by: Scott Ribe | last post by:
OK, I'm using a pool of worker threads that each have a connection (from my own software, no PHP or anything like that involved), and a connection is in a state where all queries fail. Looking back...
7
by: Lau Lei Cheong | last post by:
Hello, Actually I think I should have had asked it long before, but somehow I haven't. Here's the scenerio: Say we have a few pages in an ASP.NET project, each of them needs to connect to...
3
by: jamesp | last post by:
Hello, Could someone tell me whether there are software or sample codes for perl coding to query from userid /password protected website? Thank you very much for your help. - James -
3
gauravgmbhr
by: gauravgmbhr | last post by:
Hi all can some one refer me any book or website where i can get to read bout coding guidelines , so that it can be tested easily using PHPUnit
17
by: John Salerno | last post by:
Let me see if this question even makes sense...I'm reading Core Python Programming and I jumped ahead to the more specific topics like network programming. I plan to follow along with the example...
0
gautam tarade
by: gautam tarade | last post by:
HI All, I have created 1 table in open office database. 2 fields: user name and password i want to take 2 labels ,2 text boxes ...for name and password on HTML page. Also 2 operations are...
0
by: sasithar | last post by:
hi... we have a lost focus in VB.NET ,i need the lost focus in .net ,i have two textbox ,and one button,in the first textbox i enter one value,if i press tab ,in the second textbox automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.