Need help connecting a MS Sql Database in CF Administrator
Good morning,
I`m hoping someone out there can help me.
I simply want to add a MS SQL datasource within Coldfusion Administrator.
I have connected to it successfully with Sql Server Management Studio, using Windows Authentication.
I`m assuming I need to use Windows Authentication to connect within Coldfusion Administrator
How do I fill out these fields then:
because I am getting this error:
Connection verification failed for data source: test
java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket. Unknown host: local
The root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket. Unknown host: local
I have also tried it with localhost as opposed to local.
Please help?
Thanks;
Rhonda
I believe you DON'T.
ColdFusion, by default, does not run as any type of user that would work with Windows Authentication. It can be set up to do so, through the windows services panel. You configure the ColdFusion service(s) to "Log On As" some windows domain account with the desired permissions. This is normally done to allow CFML code to access network resources for file operations and the like.
But, I don't know if that is good enough for a connection to a SQL server. I've never had to deal with it myself (I have operations and database administrators types who deal with this for me). But I have read many many times on forums like this that the default security configuration of SQL server does not work with ColdFusion. That one has to set up an alternate configuration in SQL, TCP/IP I think?
Similar Messages
-
Dw cs5 with existing wordpress site hosted on yahoo need help connecting to existing remote database
I am having trouble establishing a database connection. I can connect with test databases but am having trouble using dreamweaver wtih my existing wordpress website. Am I able to use dreamweaver to edit and live view my changes before uploading the changed files to my live site? Am I able to access my existing wordpress database with dreaweaver? I have imported it to my testing server/database but still seem to be having trouble establishing a connection with it (think maybe my folder hierarchy might be off).
macintosh HD/Applications/MAMP/htdocs/nwm/wp/index.php
"nwm" is the name of the folder that I have copied all of my site files to and the folder I have dreamweaver pointing to. "wp" is what I have all of the wordpress files in (the ones I copied from my yahoo server - including all my current theme files etc.)
I am trying to put the info into the mysql connection dialog box:
Connection Name: Testing (i am assuming this name is for my benefit only and doesn't actually matter)
MySQL Server: mysql
User Name: *****
Password: *****
Database: wp
and am getting this message
MySQL Error#: 2013
Lost connection to MySQL server at 'reading initial communication packet', system error 61
did some google seaches of the error. Tried turning off the firewall, and the advance tab allow mysql incoming (there were 2 one was allow one was not allow. I changed both to allow)
Cant really find anything on yahoo to help me out. Looked in phpmyadmin database named wp: wp_users to get the username and password (which due to previous look for help - I think the password was encrypted cuz it looked like a bunch of mumbo jumbo and am fairly certain I know the correct password).
Any help would be greatly appreciated!! I spent $50 on live chat last night trying to resolve the issue only to find out at the end that the guy really didn't understand my problem and doesn't have dreamweaver. I have also watched countless videos on Lynda.com and have been thru forum after forum. While this problem is only a couple weeks old since I just got CS5. I have been having trouble making any headway learning php since I cant seem to make it past the set up parts. I have done the php / mysql essential training on lynda.com with relative success except that I really dont want to work with any more exercise files so I didn't go on to the beyond the basics. I recently went thru most of the Dreamweaver CS5 and Wordpress 3. Also did the first 4 chapters of Dreamweaver CS5 with PHP and MySQL. I need to start integrating things into my live sites. I am also trying to work my way thru the learning php, mysql, javascript book by o'reily media by robin nixon (as fun as reading a math text book) can't get thru it since I can't relate any of it to my current sites/needs
I am on MacBookPro OSX 10.6.6
Installed MAMP to specification on all 20 tutorials I have tried including lynda.com
Tested the testing server and is working
Just installed dreamweaver cs5
have been using wordpress online to create and edit posts (recently upgraded to 3.? whatever the latest update was online which I believe update the files on my yahoo server?)
Have also installed wordpress on my computer (several times thru each tutorial trying to get this right.)
Am I expecting the impossible?If wordpress controls it's own connection why am I unable to use the live view. I have synced the remote site to my local computer so all the files should be just as they are online with the exception of the DB which contains most of the content.
I have done all of those steps. I have even exported the database from inside internet phpmyadmin and imported into computer phpmyadmin. When I hit live view I get one of couple of errors.
1. "One is that the dynamic related files could not be displayed due to an internal server error"
At some point I was able to view some sample files inside dreamweaver. But I would like to be able to view my real site files. I was able to "connect" to the local databases (not the copy of my real one - I think that maybe that was because it is somehow nested inside another db an am going try to reimport to new location). And then I changed the host/username/password trying to deal with the internal server error. Now instead I get the cannot connect to the database Error 2016 or whatever from the origianl post. Also, I am using yahoo if that matters and all I can find about what their server name is: mysql - is that correct?
I have been thru this so many times with so many different tutorials I am losing track of what is what.
2. Can I access my remote database within dreamweaver? I do not want to create dummy files (seems to be a waste of time). And while if it had worked exporting/importing a duplicate on to my computer would have satisfied me for a little while it also seems some what counter productive. Since every post and page is different if I were doing a daily updates etc how would I be able to change the formating or design of them if I can't access the remote files. Would I re- import everytime I want to work on it to get current database?
I am trying to be clear. I listed all the specs I could think as listed in your "how to get help fast post" (yes I read that at least twice too) of all of the steps and possible reasons for my problems. I also thought that the forum was on a seperate site so I didn't think it would count as a duplicate. I am frustrated to tears and am feeling incredibly stupid that after all this time and all these tutorials yes you are right I obviously am not understanding what is going on which is why I am on this forum. -
Need help connecting a remote MySql database from Iphone
Hi, i need to connect to a remote MySql DataBase in windows from IPhone but..... i'm a noob with Xcode and Objective-C.
Can someone help me or explain me the way to do it plz?
Message was edited by: Krovax87
Message was edited by: Krovax87I do not think MCPKit will help you on the iPhone. It is just an Objective-C wrapper around the standard mysql libraries which are not available for the iPhone. Your best bet would be to post on the mysql forums and see if you can get any help.
You can try extracting the mysql client library source code into a separate static library project, and see if you can get it to build for the iPhone. -
Oracle 10.2 on AIX -- need to connect to remote SQL server by dblink
oracle 10.2 on AIX -- need to connect to remote SQL server by dblink
i didn't see a odbc diectory in our oracle home path. how do i know odbc driver is installed in the oracle on our AIX server.
If it is there, do i just need to modify the odbc.ini and then the inithsodbc.ora, linster.ora, tnsnammes.ora files, or am I missing something
Appreciate your response
Edited by: user10876711 on May 12, 2011 9:18 AM
Edited by: user10876711 on May 12, 2011 9:18 AMwhen you want to connect from Oracle to a SQl Server you need the Oracle Gateway (HSODBC or even better Dg4ODBC) and a FOREIGN ODBC DRIVER for your foreign database - a SQL Server ODBC driver. You have to get this driver from a 3rd party vendor - Oracle does not offer any foreign ODBC drivers.
So before being able to use DG4ODBC/HSODBC you need to install from a 3rd paryt vendor a SQL Server ODBC driver. Commercial vendrs are for example Data Direct, Openlink or Easysoft.
On Unix ODBC drivers commonly also require a driver manager. If the ODBC driver vendor does not ship one with the ODBC driver you can get it from www.unixodbc.org -
Need help Connecting Crystal Reports 8.5 with GBS Agency Expert 6.7.6c
Need help Connecting Crystal Reports 8.5 with GBS Agency Expert 6.7.6c. I need assistance on connecting these together so I can run a report. I am not an IT person so if someone could dumb it down it would be great.
Thanks,
NBGHealthHello,
I assume GBS Agency Expert 6.7.6c is some sort of database or data source? If you have an ODBC driver then create or use a System DSN to the database. Then you can create a report using that DSN.
Otherwise I suggest you contact the makers of GBS Agency Expert 6.7.6c and ask them how to connect to the database.
Let them know CR is ANSII 92 ODBC 3 compliant.
Thank you
Don -
Connecting to local SQL database
I have tried everything to connect to a SQL database which is
located on the same machine I'm using for development. Is there any
special way of doing this. I tried to create a new connection in
every way possible and I can't seem to be able to establish a
connection. i would appreciate your input with this problem.
Thank you,
MarequiAnd posting your connection string would be helpful.
Nancy Gill
Adobe Community Expert
BLOG:
http://www.dmxwishes.com/blog.asp
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
A Beginner's
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web Development
"David Alcala - Adobe" <[email protected]>
wrote in message
news:efe94f$cia$[email protected]..
> Are you using MS SQL Server? If so, what version?
>
> What server model are you using (ASP, ColdFusion, PHP,
etc.)?
>
> How have you filled out the DW database connection
dialog box so far?
>
> What error(s) are you seeing? Is the error in DW or in
the browser?
>
> --
> David Alcala
> Adobe Product Support
> -
Connecting to a SQL database on my website.
Hello,
I'm trying to create a login form that connects to a SQL database that's placed on my website. My problem is that I don't know how to connect to the database. Let's take these for an example:
Server the database is on: 10.246.16.159:3306
Database name: rhythmcheaters_
Database section: phpbb_users
Database password : 1A2b3C4dFollowing Example will May help You..
Try to design userinterface as like this..
Double on Login button a new method will be generated write the following code under that method..
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Configuration;
using System.Security.Cryptography;
namespace windowsloginapp
public partial class login : Form
public string userName, Password;
public int usercount;
public login()
InitializeComponent();
private void button1_Click(object sender, EventArgs e)
userName = textBox1.Text;
Password = textBox2.Text;
if (userName == "" && Password == "")
MessageBox.Show("Please Enter User Name and Password");
else
string scn = ConfigurationManager.ConnectionStrings["Myconn"].ConnectionString.ToString();
SqlConnection cn = new SqlConnection(scn);
cn.Open();
SqlCommand cmd = new SqlCommand("SP_logapp", cn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@Username", userName);
cmd.Parameters.AddWithValue("@Password", Password);
int usercount =(Int32) cmd.ExecuteScalar();
if (usercount == 1)
this.Hide();
Welcome w1 = new Welcome(userName);
w1.Show();
else
//login lg = new login();
//lg.Show();
MessageBox.Show("Not a Valid UserName and Password");
cn.Close();
APP.Config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<add name="Myconn" connectionString="Data Source=10.246.16.159:3306;Initial
Catalog=rhythmcheaters_; user ID=phpbb_users;Password=1A2b3C4d;Integrated
security=sspi" providerName="system.data.sqlclient" />
</connectionStrings>
</configuration>
Create database with the same name of(rhythmcheaters_) and declare 2 variables as username and password....
Insert some into that table...Do the same web application also..........It
will work...
Thanks & Regards RAJENDRAN M -
What's a better connection to an SQL database? ODBC or OLE DB
NEw user here, but what would be a preferred way of connecting to my SQL database? So far I have option of using ODBC (RDO) connection or OLE DB(ADO) connection. I'm not sure what the differences or when to use one or the other.
ThanksI like OLE DB for the simply because it's "portable". With OLE DB the connection info is stored in the report. With ODBC, the report is using a system dsn connection. It means that if you want to send it to another user / computer, you also have to make sure the other computer has the same ODBC connection.
In terms of performance... I've used both and have never seen a difference.
Jason -
Need help connecting a windows network printer to my Mac (Xerox Phaser 3600) over a windows home network.
My Mac runs lion and the windows desktop runs Windows XP
I have tried for a few hours or so to connect my mac to this printer over a home network.
For your information it does work when connected directly to my mac using a USB Cable.
If there is no soultion could I have help getting the drivers for a Dell All-in-One Photo 926In most cases you can connect to the Windows shared printer from the Mac. But there is a dependence on the Mac driver being compatible. For many consumer inkjets, the vendor created driver cannot be used for this type of connection so you need to look at alternative drivers, such as Gutenprint or PrintFab. If you can tell us which brand and model of printer you have shared from Windows then we can answer your question with the preferred procedure on the Mac.
-
Need help connecting my iPhone 6 to my MacBook Pro to stream the internet
Need help connecting my iPhone 6 to my MacBook Pro to stream the internet
Turn on Personal Hotspot on your iPhone, select WiFi, set a password. Then select your hotspot on your MacBook Pro and sign in.
-
Query regarding connecting dashboards with SQL DATABASE using WSDT
Hello Sir,
I am trying to connect dashboards with Sql database via WSDT, but i have encountered the same problem as described in your SAP community blog (SAP Web Service Design Tool: From web service creation to Xcelsius consumption).
when i tried connecting CR server with WSDT ,it still shows that total number of available licenses is 0.
What can be done to solve this issue.
for your detail reference, we are using CRS NUL version's 60 days Evaluation keys and same with Xcelsius Departmental edition.
I would really appreciate, if you revert back to my mail as soon as possibleWhich version of Crystal Reports are you using? The regular ReportDocument SDK probably isn't robust enough to handle this, unless you create a connection using that connection string at design-time which you don't change at runtime. You might be able to add those properties using the in-proc RAS SDK, though. This is available with CRXI R2 as of SP2, and CR2008.
-
I need help connecting to my WiFi. I purchased a new router and am having trouble connecting.
your gonna want to contact your internet service provider for the best info on setting that router up. but for connecting to wifi on the iphone, ipad, and ipod
go to
settings > wifi
then choose your connection and enter the password -
Need help connecting to my home Wireless Network
I need help connecting my LaserJer M1212nf MFP to my home wirless network. I would like to use Apple's AirPrint, and be able to print from my iPad.
I've spent a few hours following the directions I found on the manuals through hp.com and I've had no luck. I've already unistalled and reinstalled the printer. I've also updated the firmware. If anyone can provide assistance I would greatly appreciate it. Thank you!This is NOT a wireless printer (see product spec: http://www.shopping.hp.com/shopping/pdf/ce841a.pdf), you can NOT add the printer to the wireless network. This printer do support LAN connection, so if your wireless router has LAN ports, you can added it to your home network by connecting a network cable from the printer to a LAN port on the router. You need then reinstall the printer as a network printer, to use airprint.
======================================================================================
* I am an HP employee. *
** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **
***Click on White “Kudos” STAR to say thanks!*** -
I need help connecting my iPhone and computer together.
I need help connecting my iPhone to computer
Howdy sprinklemk,
Welcome to Apple Support Communities.
Take a look at the iPhone User Guide, it answers your question about how to connect your iPhone to your computer and provides additional information that you may find helpful.
http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
You may need to connect iPhone to your computer in order to complete activation. Connecting iPhone to your computer also lets you sync photos and other content to iPhone from your computer, using iTunes. See Sync with iTunes on page 18.
To use iPhone with your computer, you need:
An Internet connection for your computer (broadband is recommended)
A Mac or a PC with a USB 2.0 or 3.0 port, and one of the following operating systems:
OS X version 10.6.8 or later
Windows 8, Windows 7, Windows Vista, or Windows XP Home or Professional with Service Pack 3 or later
Connect iPhone to your computer. Use the Lightning to USB Cable (iPhone 5 or later) or 30-pin the other device.
Cheers,
-Jason -
Connecting to a Mysql database using CF Administrator and DW
I can't create a mysql datasource in CF Administrator.
If I use the following datasource settings in CF
Administrator:
JDBC URL: jdbc:mysql://localhost:3306/test
Drive Class: MySQL Connector J
AND (note the emphasis) I set my local and remote folders in
my DW site local folder, remote folder and testing server folders
all to C:\CFusionMX\db\, I can connect to my mysql database in CF
Administrator.
However, with these DW site folder settings, DW doesn't
recognize any databases (Access or Mysql) at all.
When I change my DW site folder settings to 'wwwroot'
(e.g.local folder C:\CFusionMX\db\' is changed to
'C:\CFusionMX\wwwroot') DW now lists all my CF Administrator
databases.
The problem is CF Administrator can't connect to my Mysql
data sources. It gives me the error:
"Connection verification failed for data source: javaserver
[]java.sql.SQLException: SQLException occurred in JDBCPool
while attempting to connect, please check your username, password,
URL, and other connectivity info.
The root cause was that: java.sql.SQLException: SQLException
occurred in JDBCPool while attempting to connect, please check your
username, password, URL, and other connectivity info"
I've tried changing the 3306 port to 8500, but this doesn't
help.
My java path and connector file is:
C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar,
Is this a ID/password problem? I've tried both 'root' and
leaving the ID field in the CF Administrator add data source block,
both to no avail. I don't have a password set in Mysql for 'root'
either.
Any help would be gratefully appreciated. I've been working
on this for weeks and keep running into one problem after another.
Thanks a million in advance.
Sincerely,
Graham A. Kerby1) ensure mysql server is running
2) there are numerous tutorials for mysql installation out
there
3) there are good free mysql admin tools out there
4) use both the above to verify your mysql installation is
correct
5) please tell me you do have your zonealarm DISABLED
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
Maybe you are looking for
-
Error while trying to delete user in OIM 11gR1
Hi, When I try to delete the user from OIM console by clicking on 'Delete User' button, I get the following error: "The Delete operation failed. Bulk Orchestration not yet implmented" on the cosole. Kindly help in resolving the issue. Regards
-
Hello, I have two Linux servers running Oracle using a DAS for storage. The other day the cables were swapped to attach the one server's DAS to the other and vice versa. The databases were not shutdown first. The cables were then swapped back to thei
-
Hi all F4 in alv grid with restricted value -- no solution from forum
hi all i have developed report using alv grid using FM (important). i have a field xyz which is input/output enabled in alv grid output. this field is attached with f4 help. my requirement is to get or read the row in alv grid when user press f4 on t
-
Visual Web JSF: Rendering a checkbox group with some checkboxes preselected
Dear Sirs and Madams, I am a Visual Web JSF newbie and have been humbled by this one issue: I have User value objects which hold a List attribute of what user privileges they have. Am trying to render a checkbox group of user privileges for a chosen
-
No capacity demands for specified mode
Hi, experts! During CIFed planned orders ECC to APO, system generated message: No capacity demands for specified mode Message no. /SAPAPO/OM_ERROR094 What is the problem? Thanks!