This is my technical area for troubleshooting and learning new programming skills and much more. Here, you will find answers on a wide range of technologies such as AI, Machine Learning, OpenAI, Databricks, ASP.NET, C#, Python, Microsoft Access, MySQL, Amazon Web Services, SQL Server, PL/SQL, JD Edwards, SAS, Salesforce, APIs, MVC, and many others. Please feel free to visit and join the discussion!
Monday, January 19, 2009
Count Record using asp.net C# , count(*)
SqlConnection cnn = new SqlConnection("server=DBSERVER;User id=USER;password=PASSWORD;database=DB"); SqlCommand cmd = new SqlCommand("Select count(*) from abctest", cnn); cnn.Open(); Response.Write(cmd.ExecuteScalar().ToString());
No comments:
Post a Comment