0

Hello. How can i know the data source of my sql 2008?
Dim strconnection As String = "Data Source=.............;Initial Catalog=DatabaseConnection;Integrated Security=True;"
How am i suppose to know the the data source?
i it my computer name?

4
Contributors
4
Replies
18
Views
4 Years
Discussion Span
Last Post by ryanjayson
0

'SQL Connection String
sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\yourdatabase.mdb"

0

If your using MySQL then use standard Connector:

Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;

on your code:

Dim strconnection As String = "Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;"

For more connectionString reference visit here

Edited by ryanjayson

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.