Jump to content

Confusing, Experts please....


Snooble

Recommended Posts

Hello everyone,

 

I've been looking for so long now, i have a program that needs either:

 

a connection string

 

or

 

a .udl file

 

 

This is to connect to the database. Could you please help me out...

 

If

server = sql.server.com

username = username

password = password

db = database

 

what would the connection string look like with that information.

 

Thank you,

 

Any help is MUCH appreciated.

 

Snooble

 

Link to comment
Share on other sites

SQL is a language, not a brand of database. Is it an MS SQL database?

 

Connection String:
*I'm a text box*

 

so what should i input.

 

Thanks for your help so far

 

Where are you trying to connect from?

Link to comment
Share on other sites

I'm connecting to a MySQL database held on a server online.

 

From a program called Automate.

 

It says it passes an SQL statement to the datasource via OLEDB.

 

Beneath the connection string it has the query box.

 

I just need to know how i enter the information to connect to my sql server. because there's obviously some sort of format to the string.

 

Thanks again

 

Snooble

Link to comment
Share on other sites

Thanks,

 

so i should use:

 

Provider=MySQLProv;Data Source=mydb;User Id=myUsername;Password=myPassword;

 

BUT,

 

could you please run me through the difference. As i dont know where to put the host of the sql. (eg. localhost or sql15.ifastnet.com etc)

 

Sorry to be a nightmare.. obviously the rest i understand.

 

Thank you!

 

Snooble

Link to comment
Share on other sites

:)...

 

didn't work though... i get the error (couldn't connect to database). I was connecting using localhost. checked phpmyadmin settings to get the correct username and password... and used a database that's there. and said couldn't connect... maybe you cant connect locally?

 

Any suggestions?

 

Snooble

 

 

Link to comment
Share on other sites

Sorry, your posting a few conflicting stories. How are you actually trying to connect to this database? Through PHP or this automate thing?

 

If its the later, your in the wrong forum. If its through php, post your code.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.