About 24,900 results
Open links in new tab
  1. database - retrieving data in VB from SQL - Stack Overflow

    Jan 25, 2013 · I use Visual Basic 2010 and Microsoft SQL Server 2008. I have my database and my table and i made the connection (at least i think i did) in VB using only the interface. What i want to know is how to get data from the database and use it into my VB project.

  2. Visual Basic using SQL Database - Stack Overflow

    Sep 28, 2013 · If the Add Connection dialog box appears, verify that the Data source is set to Microsoft SQL Server Database File (SqlClient). If it is not set to Microsoft SQL Server Database File (SqlClient), click Change to open the Change Data Source dialog box, click Microsoft SQL Server Database File, and then click OK.

  3. How to define a Sql Server connection string to use in VB.NET?

    Apr 21, 2013 · The Connection String Which We Are Assigning from server side will be same as that From Web config File. The Catalog: Means To Database it is followed by Username and Password And DataClient The New sql connection establishes The connection to sql server by using the credentials in the connection string..

  4. How do I create a parameterized SQL query? Why Should I?

    Stored procedures are sometimes credited with preventing SQL injection. However, most of the time you still have to call them using query parameters or they don't help. If you use stored procedures exclusively , then you can turn off permissions for SELECT, UPDATE, ALTER, CREATE, DELETE, etc (just about everything but EXEC) for the application ...

  5. How to use parameters "@" in an SQL command in VB

    Jun 21, 2012 · Named parameters behave like variables in a programming language: first, you use them in your SQL command, and then you supply their value in your VB.NET or C# program, like this: MyCommand = New SqlCommand("UPDATE SeansMessage SET Message = @TicBoxText WHERE Number = 1", dbConn) MyCommand.Parameters.AddWithValue("@TicBoxText", TicBoxText.Text)

  6. Connecting to Microsoft SQL Server from Visual Basic

    Nov 3, 2015 · I am attempting to connect to Microsoft SQL Server 2008 R2 from within Microsoft Visual Studio 2010. My connection string is as follows: connection = New SqlConnection("Server=localhost;Database=

  7. sql server - How to import sql in vb.net? - Stack Overflow

    Dec 11, 2009 · Imports System.Data Imports System.Data.SqlClient Then here's an example of how to talk to the db: Using cn As New SqlConnection("connection string here"), _ cmd As New SqlCommand("Sql statements here") cn.Open() Using rdr As SqlDataReader = cmd.ExecuteReader() While rdr.Read() ''# Do stuff with the …

  8. Insert data into SQL Server using VB .NET - Stack Overflow

    Jan 3, 2013 · install SQL Server Express (and you've already done that anyway) install SQL Server Management Studio Express. create your database in SSMS Express, give it a logical name (e.g. Database_Nuovo) connect to it using its logical database name (given when you create it on the server) - and don't mess around with physical database files and user ...

  9. SQL and Visual Studios - Passing Variables - Stack Overflow

    Apr 20, 2013 · I need help with passing variables from my Visual Basic application into SQL queries to update my database and retrieve data depending on what variable I am using. What is the correct way to do this : My database is storing an appName, appLink and clickCount.

  10. SQL Like statement not working in Visual Basic

    Mar 27, 2018 · Dim strText As String = tbRefine.Text Dim sql As String = "SELECT user_name,forename,surname,game_cash,reg_group FROM tblGame WHERE user_name LIKE '" + strSearchText + "' & '*'" Dim dsRefine As...

Refresh