VB.NET - Need Connectionstrings to connect SQL Server using VB.Net in Windows Applications.(Not Web Application)

Asked By Janardhan Bonthu
17-Nov-08 07:53 AM
Need Connectionstrings to connect SQL Server using VB.Net in Windows Applications. (Not Web Application)

SQL Server  Connection strings  SQL Server Connection strings

17-Nov-08 07:56 AM
Check these links:
http://connectionstrings.com/?carrier=sqlserver2005
http://connectionstrings.com/?carrier=sqlserver

re  re

17-Nov-08 11:55 PM

use this

Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
 
and also u can get any connection string for different situation from here
Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;

String  String

18-Nov-08 01:11 AM


hi,

U can refer the following Connection String

gstrConnstring = "Server= AP-185\\SQLEXPRESS;Database = Bulkmail;trusted_connection=true;";



Like this we can have the connection string the Windows application..


Regards
Anil Pandey
Connection Strings  Connection Strings
17-Feb-09 02:05 AM

This is are the connection string that i have, just choose what you need.

Standard Security
Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
 
 
Standard Security alternative syntax
This connection string produces the same result as the previous one. The reason to include it is to point out that some connection string keywords have many equivalents.
Server=myServerAddress;Database=myDataBase;User ID=myUsername;Password=myPassword;Trusted_Connection=False;
 
 
Trusted Connection
Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;
 
 
Trusted Connection alternative syntax
This connection string produce the same result as the previous one. The reason to include it is to point out that some connection string keywords have many equivalents.
Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;
Use serverName\instanceName as Data Source to use a specific SQL Server instance. Please note that the multiple SQL Server instances feature is available only from SQL Server version 2000 and not in any previous versions.
 
Connecting to an SQL Server instance
The syntax of specifying the server instance in the value of the server key is the same for all connection strings for SQL Server.
Server=myServerName\theInstanceName;Database=myDataBase;Trusted_Connection=True;
 
 
Trusted Connection from a CE device
Often a Windows CE device is not authenticated and logged in to a domain. To use SSPI or trusted connection / authentication from a CE device, use this connection string.
Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;User ID=myDomain\myUsername;Password=myPassword;
Note that this will only work on a CE device.
 
Connect via an IP address
Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword;
DBMSSOCN=TCP/IP. This is how to use TCP/IP instead of Named Pipes. At the end of the Data Source is the port to use. 1433 is the default port for SQL Server.
 
Specifying packet size
Server=myServerAddress;Database=myDataBase;User ID=myUsername;Password=myPassword;Trusted_Connection=False;Packet Size=4096;
Create New Account
help
Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B)What is a types? (B) What is concept of Boxing and Unboxing ? (B) What is the difference between VB.NET and C#? (I) what is the difference between System exceptions and Application exceptions? (I)What is CODE Access security? (I)What is a satellite assembly? (A) How to prevent my .NET DLL to be Daemon threads and how can a thread be created as Daemon? (A) How is shared data managed in threading? (I) Can we use events with threading? (A) How can we know objects in Remoting? (A) What are the ways in which client can create object on server in CAO model? (A) Are CAO stateful in nature? (A) To create objects in CAO using Viewstate for state management? (B) How can you use Hidden frames to cache client data ? (I) What are benefits and limitations of using Hidden frames? (I) What are benefits and
creating a fully functional application of any kind. I'm developing a web application using VB.Net (web application), and Microsoft SQL Server 2003 for the database. I have done a virtual server on my computer to store the database and the web page. I'm having troubles I will tank any tutorial or help about these topic. Tanks. Assuming u may use SQL as ur DB. . these are the ways u can connect to the DB. ODBC Standard Security Driver = {SQL Server};Server = myServerAddress;Database = myDataBase;Uid = myUsername;Pwd = myPassword; Trusted connection Driver = {SQL
connection string how do write connection string vb &sql server 2008 r2 You need to right conenction string like below one Dim con As New ADODB.Connection con.ConnectionString = "Provider = SQLNCLI10;" _ & "Server = (local);" _ & "Database = AdventureWorks2008R2;" _ & "Integrated Security = SSPI;" _ & "DataTypeCompatibility = 80;" _ & "MARS Connection = True;" con.Open <? xml version = " 1.0 " encoding utf-8 " ?> < configuration > < appSettings > < add key = " name " value = " Data Source = . \ SQLEXPRESS;AttachDbFilename = | DataDirectory | \ Database.mdf;Integrated Security = True;User Instance = True " / > < / appSettings > < / configuration > string s = ConfigurationSettings .AppSettings[ "name" ].ToString(); C# / VB.NET
Application Role hi, my question is simple, how to connect SQL server 2005 with Application Roll. for examlple, I have VB.Net, and i want to connect that application to SQL Server 2005 via Application Roll. as i have already created application roll in database. Thanks in advanced. u don't need to Roll when u conneciton with sql server by your application u just need to specify connection string propery as Standard Security Data