Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
UWK ADO

UWK ADO

Ratings: (0)|Views: 0 |Likes:
Published by Jibs Khan

More info:

Published by: Jibs Khan on Aug 15, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

08/15/2011

pdf

text

original

 
ADO.Net---------------------SqlQuerys------------------------------------------Select * from TableName or ViewNameInsert Into TableName(colname,colname)values('calvalue','colvalue')UPdate TableNameset ColumnName='Value', ColumnName='Value'---------------------------------------ConnectionString---------Data Source=myServerAddress;Initial Catalog=myDataBase;UserId=myUsername;Password=myPassword;SqlConnection cn = new SqlConnection("DataSource=-SERVER\\express;Initial Catalog=GIS;Integrated Security=True");;----------------------------------DisconnectedAdo.net-------------------------------------xxxConnection cn = new xxxConnection();xxxDataAdapter da = new xxxDataAdapter("Select * from",cn);DataSet ds = new DataSet();da.Fill(ds);---------------- Data will be loaded in Dataset(ds) NOw you can change data-----------------------After Change Data in Ds to save data In database -----ds.AcceptChanges();da.Update(ds);----------------------------------connectedAdo.net-------------------------------------xxxConnection cn = new xxxConnection();xxxCommand cmd = new xxxCommand("SqlQuery",cn);try{//Select CommandSqlCommand cmd = new SqlCommand("Select * From app_users", cn);//Check Connection State and Open itif (cn.State != System.Data.ConnectionState.Open) { cn.Open(); }//Executereader to fatch data;SqlDataReader reader = cmd.ExecuteReader();//Read Data Till Last Record from Whilewhile (reader.Read()){Console.WriteLine(reader[1].ToString());}}

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->