SQL Connection and Commands

Salam to all: I creat this application in VB.NET 2008 using SQL server 2008. By this application you can learn SQL Connection and (Add, Delete, Update , Search etc) commnds. Thanks. Enjoy.

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted byAnonymous (not verified)on Thu, 08/19/2010 - 15:13

I have a doubt . How to attach the database name ? u mean to create database name?
Submitted byAnonymous (not verified)on Sun, 10/10/2010 - 13:59

hi dear iam happy to join this site and than u every u done. after that iam interesting to help me creating searching botton in vb.net 2008 and sql 2000 by searching id if exists. this is problem code Dim sqlconection As New SqlConnection("Data Source=123-pc;Initial Catalog=glorious;User ID=sa") Dim sqlcommand As New SqlCommand Dim objDataAdapter As New SqlDataAdapter( _ "SELECT * From store where store_id=txt1.text", sqlconection)

try the hasrows function.. Dim cn as new sqlconnection("connectionstring") dim cmd as sqlcommand dim dr as sqldatareader cmd = new sqlcommand("select * from store where store_id = txt1.text ", cn) dr = cmd.executereader dr.read if dr.hasrows then 'if the id is existing msgbox "ID already Exist!" else 'go insert here end if dr.close Cedrick R. Blas BSCS IV www.nwu.edu.ph [email protected] +639081805286 LIFE RUNS ON CODE :)
Submitted byAnonymous (not verified)on Mon, 02/18/2013 - 07:51

Sorry my friends.... Its been long time that i came back to this site again with new ideas and new programming techniques. If u people have any problem with my programming u can contact me at ([email protected] , [email protected] , Skype mark.mai50 or Mobile, +447425251586) Thanx all my dear friends.
Submitted bykennedy50on Fri, 04/11/2014 - 22:03

very useful for both students and others

Add new comment