Connection string - VisualCron - Forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Dark_Light
17 years ago
How should the connection string look? I cant get it to work
Sponsor
Forum information
Support
17 years ago
It depends..check out http://www.connectionstrings.com/ 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Dark_Light
17 years ago
it says: Provider=sqloledb;Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;

Mine looks like: "Provider=Microsoft.Jet.OLEDB.4.0;Password= ;User ID= ; Data Source=" & Server.MapPath("c:/inetpub/wwwrot/browsergame/db/db12.mdb")

I don't know what's wrong...
Support
17 years ago
Server.MapPath is a ASP.NET function and cannot be used in a connection string. I would create the connection string in the ODBC/OLEDB editor in Administrive tools. Then you can use the DSN name instead.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Dark_Light
17 years ago
administrative tools? in visualCron?
Support
17 years ago
No, control panel in windows
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Dark_Light
17 years ago
how do I find the relevant path? File-DSN?
Support
17 years ago
You use system dsn and use the name you want. You should put the name you use into VisualCron.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Dark_Light
17 years ago
what driver should I pick?
Support
17 years ago
I don't know what database you use but probably the Microsoft Access driver.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Dark_Light
17 years ago
what should the provider tag contain? what's SQLOLEDB?
Support
17 years ago
Actually I don't know as I am no expert on sql strings. But if you can't find it here: http://www.connectionstrings.com/  I would test to use original string that you posted but with the absolute path to the .mdb file (and not use the ASP.NET function).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
mars
17 years ago
Hi, I have a little hint for you. With an UDL-File you can easy build connectionstrings.
Link to MSDN: http://msdn.microsoft.com/en-us/library/e38h511e (VS.71).aspx

After saving the UDL-File you can open the File with a notepad and copy the connectionstring in the SQL Task.
Scroll to Top