Visual basic 2013 and sql server 2014

now a days I am using visual basic 2013 front end and sql sever back end
I want that when I enter custID on vb form in a textbox and press enter all the relevant record of the entered cutID get display on the respective textbox. Please do help me sen code on my email is [email protected]
I am using the following code:-
Private Sub txtCno_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles
txtCNo.KeyDown
        If e.KeyCode = Keys.Enter Then
            cn.Open()
            Dim cmd As New SqlCommand("SELET * FROM course WHERE cno=" & Val(txtCNo.Text))
            cmd.ExecuteNonQuery()
            cn.Close()
            txtCNo.Text = ""
            txtName.Text = ""
            txtNoDay.Text = ""
        End If
    End Sub

Hi hrjafri,
As the issue is more related to Visual Basic programming, I would like to recommend you post the question in the Visual Basic forum at 
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral . It is appropriate and more experts will assist you.
Additionally, there are a related article and a similar thread for your reference.
How To Use A Database In Your Program
http://bytes.com/topic/net/insights/635615-how-use-database-your-program
Retriving data from sql server into textbox
https://social.msdn.microsoft.com/Forums/vstudio/en-US/f405a590-eda3-454e-a486-f90042c32c48/retriving-data-from-sql-server-into-textbox-using-visual-basic-2008?forum=vbgeneral
Thanks,
Lydia Zhang

Similar Messages

  • Upgrade DTSX packages from VS 2010 with SQL Server 2008 to VS 2013 and SQL Server 2014

    Hello everyone,
    I’m very new to SSIS world. I’ve been assigned a task to upgrade the existing packages running in VS 2010 with SQL Server 2008 to VS 2013 and SQL Server 2014. And then submit the migration report to my client.
    On very quick search at Google, I've found the following link. It seems like I just need to open the existing SSIS project in VS 2013 and follow the wizard.
    https://msdn.microsoft.com/en-us/library/cc280547.aspx
    Can anybody please advise, are there any other things need to be taken care while doing this up gradation process?
    Please share your experience.
    Any help would be much appreciated.
    Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com

    Hello Arthur,
    Thank you for the response.
    I just got an access of the packages. They are of VS 2008 and not 2010.
    Do you know how to upgrade VS 2008 packaged to VS 2013?
    When I tried to open the solution file in VS 2013, it says "incompatible".
    Any help would be much appreciated.
    Thanks,
    Ankit
    Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com

  • SharePoint 2013 and SQL Server 2014

    Does SharePoint 2013 supports SQL Server 2014 for Reporting Services, PowerPivot

    Yes it does (or rather, SSRS 2014/PowerPivot 2014 support SharePoint 2013). They also support SharePoint 2010.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Power Pivot Configuration error while refreshing connection on excel sheet for SharePoint 2013 and Sql server 2014 using BISM file connection

    I am getting following error while refreshing connection on excel sheet in power pivot gallery,
    my scenario,
    using BISM file connection to create and  refresh power pivot excel sheet in power pivot gallery
    throws error and we have sql server 2014 CU6 updated installed plus sharepoint 2013. i checked following msolap110.dll is available in our environment but assembly
    Microsoft.AnalysisServices.ChannelTransport is not available. 
    i found error in event viewer,
    "Activation context generation failed for "C:\Program Files\Microsoft Analysis
    Services\AS OLEDB\110\msolap110.dll". Dependent Assembly
    Microsoft.AnalysisServices.ChannelTransport,processorArchitecture="MSIL",publicKeyToken="89845dcd8080cc91",version="11.0.0.0" could
    not be found. Please use sxstrace.exe for detailed diagnosis.
    what should i do to fix it?
    Thanks for help.
    Deepak Patel

    Rebecca,
    yes, this is issue i am getting.
    Activation
    context generation failed for "C:\Program
    Files\Microsoft Analysis Services\AS OLEDB\110\msolap110.dll".
    Dependent AssemblyMicrosoft.AnalysisServices.ChannelTransport,processorArchitecture="MSIL",publicKeyToken="89845dcd8080cc91",version="11.0.0.0" could
    not be found. Please use sxstrace.exe for detailed diagnosis.
    let me know if you can find fix for it.
    THanks,

  • Power Pivot Configuration error while refreshing connection on excel sheet for SharePoint 2013 and Sql server 2014

    we are getting error while refreshing connection on excel sheet which containing data from data source in form of power pivot.
    error is "An error occurred during an attempt to establish a connection to the external data source. The following connections failed to refresh:"
    I am confused about Configuring the Analysis Service in SharePoint Mode.
    What account should be used for Configuring the Analysis Service in SharePoint Mode?
    what are the steps and what permissions are required and where to add it?
    can you please explain in detail so i can make sure about my account permission properly in my environment?
    Do we need to install Analysis service on sharepoint server box or not? if yes, then what are steps to follow it?
    it is mentioned here to have two services are running under manages services under sharepoint central,
    https://msdn.microsoft.com/en-us/library/jj682085.aspx#bkmk_verify_powerpivot
    but we don't have SQL Server Analysis Services
    running under  Manage
    services on server.
    what need to be done here to fix this issue ?
    Thanks,
    Deepak Patel

    Hi Deepak,
    We are currently looking into this issue and will give you an update as soon as possible.
    Thank you for your understanding and support.
    Meanwhile, could you please check if there is any related ULS log for help troubleshoot the issue when error occurs.
    http://social.technet.microsoft.com/wiki/contents/articles/3870.troubleshoot-powerpivot-data-refresh.aspx
    http://blogs.technet.com/b/excel_services__powerpivot_for_sharepoint_support_blog/archive/2013/04/02/powerpivot-for-sharepoint-manual-data-refresh-failing.aspx
    Thanks
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Which Laptop is good for VS 2012/2013 and SQL SERVER 2008 R2 /2012 ?

    Hi,
    I am planing to buy a laptop.
    I am gonna be using mostly for Visual sStudio 2013 and Sql Server 2012 .
    my budget is $1000.
    confuse between DELL/ HP / LENOVO..!!!
    please help.

    This is only a personal taste of mine:
    I prefer to work in Virtual Machines. In fact I did set up a VM just for my programming. This has the advantage that games and other stuff are not slowed down by SQL Server Services and similiar stuff.
    This also allows me to quickly make a small virtual networks with multiple clients if I need to test some client/server stuff.
    Plus I am also a bit of an adminstrator and prefer to test stuff in VM's before I try them in the real world.
    I prefer using Virtual Box for Virtual Machines, so one thing of big importance was support for VT-X/AMD-V. Without them Virtual Box cannot run x64 guests even on a x64 host system.
    Otherwise I wanted Windows 8 (so I could finally learn to live with it/learn programming for it's UI). And of big importance was an upgrade of gaming ability (my old one had difficulty/impossibility to run most current games).
    So I bought a x64, Win8 Gaming Laptop with 8 GiB RAM (so I can run 3-6 Windows 7 hosts in paralell) and looked that the CPU supported Hardware Virtualsiation.
    Otherwise pretty much every current laptop will work. x64 OS might be prefereable, as .NET has some limitations under x32/x86 OS (like the
    2 GiB limit). Multicore (2 or more) is pretty much the state of the art (are there still any single core CPU's out there?).
    It of course needs to be a Windows (7 or 8) to support VS. New Laptops should have UEFI (all that are sold with Windows 8 have).
    If you do not need a lot of storage, using a SSD instead of a HDD will propably speed up startups (Windows, Programms) and compilation times a lot (those are disk-heavy operations) - but I only know that it should and heard of people who have them.
    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.

  • Unable to connect to report server - on Win 8.1 and SQL Server 2014

    unable to connect to report server on  Win 8.1 and SQL Server 2014 version
    Microsoft SQL Server 2014 - 12.0.2000.8 (Intel X86)
        Feb 20 2014 19:20:46
        Copyright (c) Microsoft Corporation
        Express Edition on Windows NT 6.3 <X64> (Build 9600: ) (WOW64)
     Thanks

    Hi,
    I suggest you check out the following article for the steps of installing
    Database Engine Services and SQL Server Reporting Service.
    http://msdn.microsoft.com/en-us/library/ms143711.aspx
    Best Regards,
    Tracy
    Tracy Cai
    TechNet Community Support

  • SharePoint 2013 and SQL Server AlwaysOn - HA

    Hi guys,
    Please help!
    I need to setup SP13 server on SQL 2012 AlwaysOn (on sql01 and sql02). The HA AlwaysOn group already configured by DB team on these 2 replica with and called SP_AOAG  alias
    My question is can I use this alias to setup SharePoint  or I need to configure the HA AlwaysOn group for SgharePoint  as suggested in the article below:
    http://blogs.msdn.com/b/sambetts/archive/2013/04/24/sharepoint-2013-and-sql-server-alwayson-high-availability-sharepoint.aspx
    Any advice greatly appreciated . 
    BalaiP

    You do not want to use a SQL Alias with an AG Listener. Just point SharePoint straight at the AG Listener. You will need to manually add any accounts to non-primary instances. You do not need to add them to individual databases, of course. You will also
    need to manually set MAXDOP to 1 on non-primary instances.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to configure workflow manager 1.0 ? Scenario "sharepoint 2013 and sql server 2012 workflow manager in one server" .

    i have sharepoint 2013 and sql server 2012 in one server . how to configure workflow manager 1.0 on the same server ?

    Please follow below technet article :
    http://technet.microsoft.com/en-us/library/jj658588(v=office.15).aspx
    Installing and Configuring Workflow Manager 1.0 (Step by Step)
    Note: The steps in this article apply to SharePoint Server 2013.
    The SharePoint 2013 Workflow platform is not supported in SharePoint Foundation 2013.
    If my contribution helps you, please click Mark As Answer on that post and
    Vote as Helpful
    Thanks, ShankarSingh(MCP)

  • Installing BAM with Biztalk Server 2013 and SQL server 2012

    Hello All,
    I have to work on BAM with BizTalk Server 2013 and SQL server 2012 , is BAM already comes with BizTalk server installation ?
    Will I needs to explicitly install that ? from where I can get the installer for BAM ?
    What else I will needs to work on BAM ?
    Note : I want to handle Exceptions in BAM ....how to do that ?
    Thanks,
    Nitin.
    Thanks and Regards, Nilesh Thakur.

    Hi,
    BAM is available with BizTalk, all you need is to select it and install .
    Refer the
    Installation Guide available on MSDN or follow the blog: http://sandroaspbiztalkblog.wordpress.com/2013/05/05/biztalk-2013-installation-and-configuration-important-considerations-before-set-up-the-server-part-1/
    Maheshkumar S Tiwari|User
    Page|Blog|BizTalk
    Server : Scheduling Orchestration using Trigger Message

  • Visual Studio 2013 Versus SQL Server

    Hello:
    I have just installed Visual Studio 2013 and I would like to upgrade my SQL Server from 2005 Express. I have downloaded SQL 2012 but I cannot get Mangement Studio to download (apparently others have had this problem as well). I was attempting the download
    at MS Download Center.
    Can I use SQL Server 2014 with Visual Studio 2013? And does the management studio download as well?
    Thanks.

    Hi Developer Dude,
    Thank you for posting in MSND forum.
    >>Can I use SQL Server 2014 with Visual Studio 2013? And does the management studio download as well?
    Based on your issue, I think that the Cor's suggestion is really helpful for you.
    In addition, I know that the since the VS2013 and SQL Server are different products, we can install them individually on your machine.
    So you could try to download and install the SQL Server 2014 individually on your machine, please download it:
    https://www.microsoft.com/en-in/download/details.aspx?id=42299
    In the download page, I know that the SQL Server 2014 Express is include the management studio like the following screen shot.
    So after you installed the SQL Server 2014 Express, the management studio will be installed by default.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Installation of SCCM 2012 R2 and SQL Server 2014 error

    Hello All,
    I am attempting to setup SQL Server 2014 and SCCM 2012 R2 but I keep running into an error stating that "Configuration Manager requires Microsoft SQL Server
    2008 SP2 w/ CU9........ all the way up to Microsoft SQL Server 2012 with CU2 or higher." I am using all evaluation versions for this configuration as we are looking to test and evaluate the products. I was trying it with SQL 2014 because I was running
    into the same error with SQL 2012 and according to "http://blogs.technet.com/b/configmgrteam/archive/2015/03/30/updated-sc2012-configmgr-sp1-and-sc2012r2-configmgr-support-sql-server-2014.aspx" SQL
    2014 is supported with SCCM 2012 R2. SQL is installed locally on the same box. 
    Any suggestions would be appreciated.
    Thanks,
    Tucker
    Update: When running the Pre-Req check these are some of the failed returns.....
    SQL Server Edition: Failed: Configuration Manager primary site and central administration site don't support SQL Server Express Edition
    Not sure why it is recognizing SQL Express as this is a new machine.
    SQL Server service running account: Failed: The logon account for the SQL Server service cannot be a local user account, NT SERVICE\<sql service name> or LOCAL SERVICE.  You must configure
    the SQL Server service to use a valid domain account, NETWORK SERVICE, or LOCAL SYSTEM.
    For the SQL Service I am using a domain account created specifically for this.

    This has nothing to do with moving or restoring. The kb article says "This hotfix provides updated versions of the setup files and enables new installations
    of the System Center 2012 R2 Configuration Manager site database role and the System Center 2012 Configuration Manager SP1 site database role in Microsoft SQL Server 2014"
    Torsten Meringer | http://www.mssccmfaq.de

  • VISUAL STUDIO 2013 COMMUNITY - SQL SERVER (LocalDB)

    IM TRYING TO FIND THE WAY TO CONNECT TO THE LOCALDB\V11.0 SQL SERVER SO ICAN CREATE MY DATABASES FROM WITHIN MY VB.NET PROJECT WITHOUT HAVING TO MANUALY CREATE A DATABASE AND ASSOCIATE IT WITH THE VB.NET PROJECT
    SO FAR I'VE USED THE FOLLOWING TO BE ABLE TO CONNECT BUT
    Dim ConnectionString AsString=
    "Data Source=(LocalDB)\v11.0; "_
    + "AttachDbFilename=C:\Users\*********\documents\visual studio 2013\Projects\CreateSqlDb\CreateSqlDb\Database1.mdf;"_
    +
    "Integrated Security=True"
    and Im able to create the dababase somewhere else by executing the following sql command:
    Dim sqlStatement AsString=
         "IF EXISTS ("
    "SELECT * "&
    "FROM master..sysdatabases "&
    "WHERE Name = 'DDailyDb')"& vbCrLf & _
         "DROP DATABASE DDailyDb"&
    vbCrLf & _
    "CREATE DATABASE DDailyDb"
    I want to connect to the server on based on the master system databases so that I can avoid the manual process, Thanks in advance for your help.

    Dim ConnectionString As String= "Data Source=(LocalDB)\v11.0; "_ + "AttachDbFilename=C:\Users\...
    That's the way LocalDB works; you have to attach the database file during runtime as a database.
    If you want to have a "permanent database", then you have to use SQL Server Express and create the database there.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • SharePoint 2013 and SQL Server 2012

    Hi all, 
    I've looked around and not found a concrete answer to this question; or maybe I have and just haven't realised! Anyway.
    We've currently got a license for SharePoint 2013 Enterprise, and are working on introducing Business Intelligence capabilities, namely Power Pivot and Power View. We'd like the data to be refreshed regularly, meaning we need Power Pivot on the SQL Server.
     As Power Pivot and Power View are listed as features for SharePoint 2013 Enterprise, is it enough to have the Enterprise licence for SP2013, and use a SQL Server 2012 Standard License, installing the Power Pivot configuration tool along with the required
    SSRS for Power View? Or do we need a SQL Server 2012 BI / Enterprise License to make use of Power View and Data Refresh on SP 2013?
    I've also seen talks of installing SQL Server 2012 SP1 -- I'm new to all of this, but would having SQL Server 2012 Standard License alongside installing SP1 be sufficient for the above features?
    Many thanks for any help.

    PowerPivot/PowerView do require the BI or Enterprise editions of SQL 2012 (and yes, SQL 2012 SP1 is required for SharePoint 2013).  These instances must be installed on the SharePoint server, not the SQL Database Engine server.  You can use SQL
    Standard for the Database Engine server.
    Trevor Seward, MCC
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • System Center Operations Manager 2012 R2 and SQL Server 2014 Reporting Services

    I was able to connect SCOM12 to SQL14, however when I attempted to install Reporting Service in SCOM12 the pull down box was blank.
    I installed reporting services on the same instance of SystemCenter, when that didn't work I tried creating a new instance that only included SSRS; remote registry is also running. The drop-down box within the SCOM installer is blank.
    Is this an issue with reporting between SC12 and SQL14, yes I understand documentation says only sql server 2012 is supported, however I've seen many threads with SCOM12 and SQL12 that are having the same issues.
    Is there something I may be missing, or do I have to install SQL12 and go through the process again?

    Hi,
    As far as I know, the SCOM reporting server role should be installed on the same server where SQL reporting service installed.
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Maybe you are looking for