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
Hi
I have a doubt . How to attach the database name ?
u mean to create database name?
vb.net 2008 and sql 2000
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)
search
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
undying_emolove@yahoo.com
+639081805286
LIFE RUNS ON CODE :)
Add new comment