SQL server weird connection problem-Pls help
I m using SQL server 2005 express. My default logon mode setting is set to-SQL server authentication and I can logon to using SQL server management studio express always. I enabled TCP/IP from SQL server configuration manager. The sqljdbc.jar (JDBC driver) is set correctly in classpath and 1433 port is allowed in windows firewall. YET, I can�t connect to sql server using the following code-
import java.sql.*; public class testconn { Statement stmt; Connection con = null; String driver = "jdbc:sqlserver://"; String server = "localhost:1433;"; String db = "database=IDLC-Customer;"; String user = "userName=Tanvir;"; String pwd = "password=abcd;"; String connectName = driver + server + db + user + pwd; testconn() { try { Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); con= DriverManager.getConnection(connectName); stmt=con.createStatement(); if(!con.isClosed()) System.out.println("Successfully connected to " + "SQL server using TCP/IP..."); } catch(Exception e) { System.err.println("Exception: " + e); } finally { try { if(con != null) con.close(); } catch(SQLException e) {} } } public static void main(String args[]) { testconn tc=new testconn(); } }
My host name is- Tanvir. So, in management studio express the server name is shown- TANVIR\SQLEXPRESS
When I run the code it says-The TCP/IP connection to the host has failed.
Java.net.connectException:Connection Refused: Connect
One more thing, though 1433 port is allowed in windows firewall, I can�t connect to that port using telnet (e.g. telnet <server_host> 1433).I even disabled firewall and tried but in vain. PLEASE help me brother.
masijade. wrote:
Then you, seemingly, have not configured your SQL server properly, or you have not "activated" that configuration.
(don't ask because I don't know how, or even if, you do it that way with SQL Server).
But, not being able to connect with telnet, means that nothing is listening on that port. What does the netstat command tell you?Brother,as u know that sql server use the default port 1433 even if i don't mention it.And I tried disabling my firewall and antivirus but yet I cant connect.I searched the ports using "Advanced port scanner" but the port 1433 is neither in its open ports list nor in closed port list. WHat can I do now.The port 1433 is by default used by sql server.So even if I dont mention it or set it, it should work.Isn't it? I m getting out of my mind, pls help .
Similar Messages
-
MS SQL Server 2000 connectivity problems
Hello everyone,
I'm having problems connecting my application to MS SQL Server 2000. I am making a desktop application that is going to read and update a database I have created in MS SQL Server 2000. The problem is I cannot connect to the database from the application. Here are the details:
I have only created a GUI for one table so far. I have created one other class that is used for connecting to the database.
The GUI class is called Products.java and I have created it in Netbeans. The other class is called ConnectClass.java. In the constructor of the Products.java (GUI class), I instantiate an object of ConnectClass. That object in turn tries to establish a connection to the database. Here is the code of the constructor of the Products.java class (GUI class).
public class Products extends javax.swing.JFrame {
private ConnectClass connect1; // declaring the reference variable for ConnectClass
/** Creates new form Products */
public Products() {
initComponents();
connect1 = new ConnectClass(); // instantiating the ConnectClass
The code of ConnectClass.java is as follows:
import java.sql.*;
public class ConnectClass {
Connection connection;
Statement statement;
public ConnectClass()
try
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=assignment2;User=root;Password=sa");
statement = connection.createStatement();
catch(SQLException sqle)
System.err.println("Error creating connection");
catch(ClassNotFoundException cnfe)
System.err.println(cnfe.toString());
When I run the application I expect that the database should be connected at least. However I get the following message in Netbeans output window:
run:
java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
BUILD SUCCESSFUL (total time: 6 seconds)
I am using Windows XP Home Edition SP3
The JDBC driver I am using is: Microsoft® SQL Server® 2000 Driver for JDBC™ Service Pack 3
The name of the database I have created in MS SQL Server 2000 is: assignment2
I have given the following settings in the CLASSPATH environment variable: .;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar
I don't know what is wrong. Any help would be GREATLY appreciated. If you want to know something more please ask me.
RegardsAce1111111 wrote:
Thanks for the answers. I put the jar file in the jdk/jre/lib/ext folderWhich is exactly what you should not do. That folder is for language extensions, which a Driver is not. Why does everybody find it so hard to take the time to learn the language basics?
and the driver was finally detected but then the program would not connect to the database.Did you configure the server properly. Per default it is not configured to accept network connections.
I tried jtds driver too. I was so frustrated that I installed MySQL instead. Put the jar file in jre/lib/ext folder and then gave the URL and to my relief the database connected. Maybe there are some settings that need to be configured in MS SQL before it can connect. But I could not get it to connect :(The manual would contain that info, btw. -
MS SQL Server 2005 connection problem?
Hi all,
I am a beginner in these things, so be patient please. I have established database connection with my MS SQL 2005 server with a 3rd party JDBC driver. Testing databasae connection was successfull, but there are no tables from my created database in JDeveloper. Instead of my tables there are some for me unknown tables. Can anybody help me with this problem? just ask for further information.
Here is port, that I have used to make connection. Actually I don't know, if this port is good. I get this information from my SQL server configuration manager.
http://b.imagehost.org/0592/Clipboard01.jpg
-->
http://b.imagehost.org/0592/Clipboard04.jpg
This is my simple testing database that was created in MS SQL:
http://b.imagehost.org/0592/Clipboard03-3.jpg
as you can see on the picture, my database called "skusobna" includes only one table called "osoba".
After making connection to MS SQL Server there are only these uknown tables.I don't know from where are these tables inserted, but my database with table "osoba" isn't included.
http://b.imagehost.org/0592/Clipboard02-2.jpg
All I want to do is to connect my database to JDeveloper that I can see my tables created in MS SQL.
Thanks...Here is port, that I have used to make connection. Actually I don't know, if this port is good. I get this information from my SQL server configuration manager.
http://b.imagehost.org/0592/Clipboard01.jpg
The port is correct.
-->
http://b.imagehost.org/0592/Clipboard04.jpg
The connection url is correct.
This is my simple testing database that was created in MS SQL:
http://b.imagehost.org/0592/Clipboard03-3.jpg
as you can see on the picture, my database called "skusobna" includes only one table called "osoba".
The database is correct.
After making connection to MS SQL Server there are only these uknown tables.I don't know from where are these tables inserted, but my database with table "osoba" isn't included.
http://b.imagehost.org/0592/Clipboard02-2.jpg
Click on the dbo node for the osoba table. -
SQL Server 2000 connection problems
We installed SSL certificates on both the nodes of the sql
server cluster and enabled "Forced Protocol Encryption" on db
server using SQL Server Network Utility.
After enabling that we are getting the below message. we
would like to encrypt the data passing between SQL and CF servers.
we need help in this regard
Error Message:
Operation failed on the data source named "CData".
Reason of failure "java.sql.SQLException:
[Macromedia][SQLServer JDBC Driver]No more data available to read."
Environment details:
Database Server Info:
: SQL Server 2000 sp4 (Active/passive)
windows 2003 -sp1
CF :
ColdFusion MX Version 7,0,2,142559
Edition Enterprise
Operating System Windows 2003
OS Version 5.2
JVM Details
Java Version 1.4.2_11
Java Vendor Sun Microsystems Inc.
Java Vendor URL
http://java.sun.com/
Java Home E:\javaSDK\j2sdk1.4.2_11\jre
Java File Encoding Cp1252
Java Default Locale en_USColdFusion does not yet support encrypted datasource
connection, so this is I believe a reason why you are getting the
error message. -
JSTL - SQL Server Database Connectivity problem
Hi All
I am trying to implement DB connection using JSTL sql tag using the following code :-
<c:set value="jdbc:sqlserver://localhost;databaseName=Studentreg;user=sa;password=pass" var="URL"/>
<sql:setDataSource driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="${URL}" user="sa" password="pass" var="stc"/>
But I am getting the error :-
exception
javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
root cause
javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
But when I am trying to implement the same using the jdbc-odbc driver It work fine. This is the code:-
<sql:setDataSource driver="sun.jdbc.odbc.JdbcOdbcDriver" url="jdbc:odbc:dsn_name" user="sa" password="pass" var="stc"/>
Please help me in this regards
Thanks in Advance
Sulfikkarjava.sql.SQLException: No suitable driverMeans that it can not find the JDBC driver in the classpath.
Make sure your Database driver is in your WEB-INF/lib directory, or [TOMCAT]/common/lib directory (or equivalent)
Cheers,
evnafets -
Java - SQL Server 2000 Connectivity
hi all. i m looking for help in Java - SQL Server 2000 Connectivity.i worked on Java- Oracle & Java - MS Access format.now i m looking to work on Java - SQL Server 2000. I m using JBuilder 2005. can any1 help me how to make any change(configuration) in my SQL Server.thanx in advance.
http://www.jguru.com/forums/JBuilder is hopeless. ihvn;t get good replies from them.i downloaded the JDBC driver from microsoft and added the JAR files (3 files) and tried the following code:
import java.sql.*;
* Microsoft SQL Server JDBC test program
public class Test {
public Test() throws Exception {
// Get connection
DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
//Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://<Host>:1433",<"UID>","<PWD>");
// Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://GMC01:1433;DatabaseName=MoonDB");
Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://Moon:1433;DatabaseName=MoonDB");
if (connection != null) {
System.out.println();
System.out.println("Successfully connected");
System.out.println();
// Meta data
DatabaseMetaData meta = connection.getMetaData();
System.out.println("\nDriver Information");
System.out.println("Driver Name: "
+ meta.getDriverName());
System.out.println("Driver Version: "
+ meta.getDriverVersion());
System.out.println("\nDatabase Information ");
System.out.println("Database Name: "
+ meta.getDatabaseProductName());
System.out.println("Database Version: "+
meta.getDatabaseProductVersion());
} // Test
public static void main (String args[]) throws Exception {
Test test = new Test();
it run without any error and then showed fatal exception as below:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at Test.<init>(Test.java:11)
at Test.main(Test.java:31)
Exception in thread "main"
where's the problem?can any1 try to solve this plz. -
Hi everyone,
I am new to SQL server....I am learning C# programming using visual studio 2013 . And I want to learn SQL database language to create and practice C# database project....My computer meets all the hardware requirement for SQL installation (i.e. My computer
has window 7 OS , 80 GB freen HD and 6 GB RAM. ) Therefore I download Microsoft SQL server express 2012 try to install it in my computer (which already has visual studio).
But during installation of SQL server I have problem ...it says
the server doesn't respond in timely fashion. When I research about it everyone were saying uninstall sql and reinstall again. I uninstall and re install but still having same problem...
The database engine also not installed displaying same error.
I don't know how can i install sql server 2012 to use with visual studio in same computer.
Can somebody please help with SQL installation please ?
It will be great help.
Many thanks in advance
regards
rashHi
my summary file is :
Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2146232832
Start time: 2015-04-06 11:34:18
End time: 2015-04-06 19:04:46
Requested action: Install
Setup completed with required actions for features.
Troubleshooting information for those features:
Next step for SQLEngine: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for DQ: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for FullText: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for Replication: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for IS: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for RS: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for AS: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Machine Properties:
Machine name: RASHA-VAIO
Machine processor count: 4
OS version: Windows 7
OS service pack: Service Pack 1
OS region: United States
OS language: English (United States)
OS architecture: x64
Process architecture: 64 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature
Language Edition Version Clustered
SQL Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS Database Engine Services 1033
Express Edition 10.1.2531.0 No
SQL Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS SQL Server Replication 1033
Express Edition 10.1.2531.0 No
Package properties:
Description: Microsoft SQL Server 2012 Service Pack 1
ProductName: SQL Server 2012
Type: RTM
Version: 11
SPLevel: 0
Installation location: E:\x64\setup\
Installation edition: Enterprise
Product Update Status:
None discovered.
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: false
AGTSVCACCOUNT: NT Service\SQLSERVERAGENT
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Manual
ASBACKUPDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Config
ASDATADIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Data
ASLOGDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Log
ASPROVIDERMSOLAP: 1
ASSERVERMODE: TABULAR
ASSVCACCOUNT: NT Service\MSSQLServerOLAPService
ASSVCPASSWORD: <empty>
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: RASHA-VAIO\RASHA
ASTEMPDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Temp
BROWSERSVCSTARTUPTYPE: Disabled
CLTCTLRNAME: MAIN
CLTRESULTDIR: C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\ResultDir\
CLTSTARTUPTYPE: Manual
CLTSVCACCOUNT: NT Service\SQL Server Distributed Replay Client
CLTSVCPASSWORD: <empty>
CLTWORKINGDIR: C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\WorkingDir\
COMMFABRICENCRYPTION: 0
COMMFABRICNETWORKLEVEL: 0
COMMFABRICPORT: 0
CONFIGURATIONFILE: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20150406_112342\ConfigurationFile.ini
CTLRSTARTUPTYPE: Manual
CTLRSVCACCOUNT: NT Service\SQL Server Distributed Replay Controller
CTLRSVCPASSWORD: <empty>
CTLRUSERS: RASHA-VAIO\RASHA
ENABLERANU: false
ENU: true
ERRORREPORTING: false
FEATURES: SQLENGINE, REPLICATION, FULLTEXT, DQ, AS, RS, RS_SHP, RS_SHPWFE, DQC, BIDS, CONN, IS, BC, SDK, BOL, SSMS, ADV_SSMS, DREPLAY_CTLR, DREPLAY_CLT, SNAC_SDK, MDS
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: NT Service\MSSQLFDLauncher
FTSVCPASSWORD: <empty>
HELP: false
IACCEPTSQLSERVERLICENSETERMS: false
INDICATEPROGRESS: false
INSTALLSHAREDDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: C:\Program Files (x86)\Microsoft SQL Server\
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files\Microsoft SQL Server\
INSTANCEID: MSSQLSERVER
INSTANCENAME: MSSQLSERVER
ISSVCACCOUNT: NT Service\MsDtsServer110
ISSVCPASSWORD: <empty>
ISSVCSTARTUPTYPE: Automatic
MATRIXCMBRICKCOMMPORT: 0
MATRIXCMSERVERNAME: <empty>
MATRIXNAME: <empty>
NPENABLED: 0
PID: *****
QUIET: false
QUIETSIMPLE: false
ROLE: <empty>
RSINSTALLMODE: FilesOnlyMode
RSSHPINSTALLMODE: SharePointFilesOnlyMode
RSSVCACCOUNT: NT Service\ReportServer
RSSVCPASSWORD: <empty>
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: SQL
SQLBACKUPDIR: <empty>
SQLCOLLATION: Latin1_General_CI_AS
SQLSVCACCOUNT: NT Service\MSSQLSERVER
SQLSVCPASSWORD: <empty>
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: RASHA-VAIO\RASHA
SQLTEMPDBDIR: <empty>
SQLTEMPDBLOGDIR: <empty>
SQLUSERDBDIR: <empty>
SQLUSERDBLOGDIR: <empty>
SQMREPORTING: false
TCPENABLED: 1
UIMODE: Normal
UpdateEnabled: true
UpdateSource: MU
X86: false
Configuration file: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20150406_112342\ConfigurationFile.ini
Detailed results:
Feature: Management Tools - Complete
Status: Passed
Feature: Client Tools Connectivity
Status: Passed
Feature: Client Tools SDK
Status: Passed
Feature: Client Tools Backwards Compatibility
Status: Passed
Feature: Management Tools - Basic
Status: Passed
Feature: SQL Server Data Tools
Status: Passed
Feature: Database Engine Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x80004005
Error description: The service did not respond to the start or control request in a timely fashion.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: Data Quality Services
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x80004005
Error description: The service did not respond to the start or control request in a timely fashion.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: Full-Text and Semantic Extractions for Search
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x80004005
Error description: The service did not respond to the start or control request in a timely fashion.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: SQL Server Replication
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x80004005
Error description: The service did not respond to the start or control request in a timely fashion.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: Master Data Services
Status: Passed
Feature: Distributed Replay Client
Status: Passed
Feature: Distributed Replay Controller
Status: Passed
Feature: Integration Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Integration Services
Component error code: 0x84BB0001
Error description: The service did not respond to the start or control request in a timely fashion.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: Data Quality Client
Status: Passed
Feature: Reporting Services - Native
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Reporting Services
Component error code: 0x84BB0001
Error description: The service did not respond to the start or control request in a timely fashion.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
Feature: Analysis Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Analysis Services
Component error code: 0x80131600
Error description: The service could not be started. Reason: The service did not respond to the start or control request in a timely fashion.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0x88A466B0%400x857354B0&EvtType=0x88A466B0%400x857354B0
Feature: Reporting Services - SharePoint
Status: Passed
Feature: Reporting Services Add-in for SharePoint Products
Status: Passed
Feature: SQL Browser
Status: Passed
Feature: Documentation Components
Status: Passed
Feature: SQL Writer
Status: Passed
Feature: SQL Client Connectivity
Status: Passed
Feature: SQL Client Connectivity SDK
Status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20150406_112342\SystemConfigurationCheck_Report.htm
I hope it will help you to figure out ...i dont know how to solve this issue ..i have un install and re install more than 5 times.
thank you -
Urgent: Sessions problem pls help me
Hi all,
Its already late to post this problem.pls help me urgently.
I have a servlet & two jsp's. first i request servlet, it processes something and forwards request to my first jsp. In that jsp on a button click, i'm displaying a new popup by calling showModalDialog. this dialog gets data from the same servlet but it forwards to my second jsp.(second jsp can be seen in dialog)
Now if i submit form from my second(dialog) jsp, the servlet reports that session has expired. I tried a lot but invain. any one who helps me is appreciated well by all of our forum.
waiting 4 u r reply,It could be that you have cookies turned off and you're not using URL Rewriting.
In J2EE, the first time your browser makes a request to the server, the server responds and appends a SESSION_ID parameter to the request as well as storing a cookie with the SESSION_ID.
The second time your browser makes a request, the server checks for the cookie. If it doesn't exist it checks for the parameter. If neither exist the server assumes its the first time your browser has made a request and behaves as describe in the previous paragraph.
In your case when you submit the form if you have disabled cookies and the action attribute doesn't have the SESSION_ID paramter appended to the url, the browser will assume it's a first request. The user will not be logged in, hence your session has expired error.
To fix this you need to encode the URL in your JSP. You can use the struts html:rewrite tag or the HttpServletReponse.encodeURL method, or if you're using JSP 2.0 the JSTL c:url tag. -
Hi,
while running jsp page i m getting error as follows:
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt..
what is this error...
what should i do to solve this problem...
plz let me know what is this error & how to solve this...
Thanx in advance....Why don't you do a search in google with the excpetion?
If you cannot then try this link
[http://www.idssoftware.com/faq-e.html] -
CF8 & MSDE SQL Server DSN Connection Error SOLVED!!!
Getting the following error trying to add a CF DSN to SQL
Server?
Connection verification failed for data source:
datasource_name
java.sql.SQLException: [Macromedia][SQLServer JDBC
Driver]Error establishing socket to host and port: localhost:1433.
Reason: Connection refused: connect
The root cause was that: java.sql.SQLException:
[Macromedia][SQLServer JDBC Driver]Error establishing socket to
host and port: localhost:1433. Reason: Connection refused: connect
There are several steps in order to make ColdFusion 8 and
MSDE SQL 2005 Server
1. TCP/IP is not enabled by default. When looking in SQL
Server Configuration Manager it appears TCP/IP is enabled by there
is a second place that it has to be enabled.
2. The TCP/IP port is dynamically assigned each time the
service is started, if they are no errors it the port number stays
the same but if there is an error the port number is dynamically
changed the next time the service starts.
3. You have to add your dsn login username and password to
the database in order to connect without using the sa username and
password.
Steps to get DSN setup correctly.
1. Open SQL Server Configuration Manager
2. Expand the SQL Server 2005 Network Configuration Group
3. Click on Protocols for SQLEXPRESS
4. Right click TCP/IP in the right pane and select properties
5. On the protocol tab under enabled set to yes and apply.
6. Disable dynamic port assignments by following the
instruction below:
If enabled, the default instance of the Microsoft SQL Server
Database Engine listens on TCP port 1433. Named instances of the
SQL Server Database Engine and SQL Server Compact Edition are
configured for dynamic ports, which means they select an available
port when the SQL Server service is started. When connecting to a
named instance through a firewall, configure the Database Engine to
listen on a specific port, so that the appropriate port can be
opened in the firewall.
To assign a TCP/IP port number to the SQL Server Database
Engine
In SQL Server Configuration Manager, in the console pane,
expand SQL Server 2005 Network Configuration, expand Protocols for
<instance name>, and then double-click TCP/IP.
In the TCP/IP Properties dialog box, on the IP Addresses tab,
several IP addresses appear, in the format IP1, IP2, up to IPAll.
One of these are for the IP address of the loopback adapter,
127.0.0.1. Additional IP addresses appear for each IP Address on
the computer. Right-click each address, and then click Properties
to identify the IP address that you wish to configure.
If the TCP Dynamic Ports dialog box contains 0, indicating
the Database Engine is listening on dynamic ports, delete the 0.
In the IPn Properties area box, in the TCP Port box, type the
port number you wish this IP address to listen on, and then click
OK.
In the console pane, click SQL Server 2005 Services.
In the details pane, right-click SQL Server (<instance
name>) and then click restart, to stop and restart SQL
Server.
7. Open Microsoft SQL Server Management Studio Express
8. Connect to your local copy of SQL Server
9. Expand the Security group
10. Right click login. Select new login.
12. Enter the dsn login name you want.
11. Choose SQL Server Authetication.
12. Enter the dsn password you want twice.
13. Disable user must change password at next login
14. Choose default database if you like.
15. Click User Mappings in left pane.
16. Click databases you want login to have access to.
17. Click ok.
You should now be able to add your CF DSN using localhost for
server and the port number you put in earlier. Default port number
is 1433.
You can view which port number SQL is listening to at this
registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL
Server\SQLEXPRESS\MSSQLServer\SuperSocketNetLib\Tcp
tcpport
You can test connectivity to the sql server by typing telnet
localhost 1433 or the port number you selected at a command prompt.
You should get a blank screen not an error.
Hope this helps, I spent 3 hours figuring it out.
DavidI'm running into the same error with CFMX 7 and SQL 2000. The
port is set correctly (1433) in SQL, but it just can't communicate
successfully. SQL reside on a seperate server. Any thoughts?
Chris -
MS SQL Server ODBC Connection On Linux
Hi All,
I am badly stuck with configuration of MS SQL Server ODBC connection on SUSE Linux 10. I am almost tried everything I got from SAP notes but still getting ODBC Lib Data Direct drivers could not be loaded IES 10901.
ENV: SAP BO 4.0 SP7, MS SQL SRV 2008
Here is what I have tried so far:
1) Modified env.sh under /install_dir/sap_bobj/setup and added the line in bold.
":${BOBJEDIR}enterprise_xi40/linux_x64/odbc/lib:${BOBJEDIR}enterprise_xi40/$SOFTWAREPATH32/odbc/lib"
The line should look like this
LIBRARYPATH="$LIBDIR:$LIBDIR32:$WCSCOMPONENTDIR:$PLUGINDIST/auth/secEnterprise:${CRPEPATH64}:${CRPEPATH}:${MWHOME}:$PLUGINDIST/desktop/CrystalEnterprise.Report:
${BOBJEDIR}enterprise_xi40/$SOFTWAREPATH32/ras:${BOBJEDIR}mysql/lib:${BOBJEDIR}enterprise_xi40/linux_x64/odbc/lib:${BOBJEDIR}enterprise_xi40/$SOFTWAREPATH32/odbc/lib”
2) We have .odbc.ini file in the home directory of our BO user on linux. Added following DSN entry (Same DSN is created on client and odbc connection has been created on the universe using this DSN:
boeadm01:~> vi .odbc.ini
[DSN_NAME]
Driver=/opt/sapboe/sap_bobj/enterprise_xi40/linux_x64/odbc/lib/CRsqls24.so
Description=DataDirect 6.0 SQL Server Native Wire Protocol
HostName=SQL Server Hostname
Database=SQL DB Name
QuotedId=Yes
AnsiNPW=No
3) We then added the environment variables and LIBPATH in BO user .profile file.
boeadm01:~> vi .profile
#Sql Server Environment
ODBCINI=$HOME/.odbc.ini
export ODBCINI
LD_LIBRARY_PATH=/opt/sapboe/sap_bobj/enterprise_xi40/linux_x64/odbc/lib
export LD_LIBRARY_PATH
4) Did echo to check the LIBPATH
boeadm01:~> echo $LD_LIBRARY_PATH
/opt/sapboe/sap_bobj/enterprise_xi40/linux_x64/odbc/lib
5) Modified sqlsrv.sbo under /install_dir/sap_bobj/enterprise_xi40/dataAccess/connectionServer/odbc
<Parameter Name="Use DataDirect OEM Driver" Platform="Unix">Yes</Parameter>
6) Restarted BO node.
Tried creating a new webi report and got the error mentioned above.
Please help!!!
Thanks,
AnshulHi Anshul,
Please refer the below KBA & SCN thread regarding your issue.
Data Direct ODBC Drivers for SAP BusinessObjects Data Services
Link:
http://scn.sap.com/docs/DOC-8898
Business Objects XIR2 Link:
Link:
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/50eca18b-d13e-2b10-a8ab-9738927177d6?quicklink=index&overridelayout=true
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/20e11153-5c3f-2b10-f9be-974dc4749fd8?quicklink=index&overridelayout=true
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/70eabcba-5c64-2b10-6db2-ae28ae4d1295?quicklink=index&overridelayout=true
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/4039c80b-6b3f-2b10-64a4-e8e591292e89?quicklink=index&overridelayout=true
KBA:
1291142 - Web Intelligence reporting using DataDirect drivers in Unix
1292899 - Data Direct Drivers for Crystal Report in Unix environment
SQL Server ODBC Driver for Linux/Unix Getting Started Tutorial
Link:
http://www.easysoft.com/products/data_access/odbc-sql-server-driver/getting-started.html
Step by Step: Setting up Linux ODBC driver for SQL Server
Link:
http://blogs.technet.com/b/sqlman/archive/2012/08/03/step-by-step-setting-up-linux-odbc-driver-for-sql-server.aspx
Microsoft SQL Server ODBC driver for Linux
Link:
http://www.codesynthesis.com/~boris/blog/2011/12/02/microsoft-sql-server-odbc-driver-linux/
Thanks,
Daya -
How to solve this problem, pls help when, I try to see remote camera system(spec dvr) from home. The Error I get is "Dual streaming is required for HTML viewing"
I had the same probelm and found that the problem lies with 64bit programs such as safari and microsoft internet explorer. I have resolved the issue on my PC based server by using a 32 bit ie and same on my mac by using the same running windows under parallels.
So far the problem with the 64 bit side of it is still to be resolved.
Hope this helps and gets you guys up and running until suchtime a 64 bit solution is found.
Craig -
Boot problem == pls HELP
I have use the utility disk and format the machintos drive , and use Extended (Journaled , Encrypted) , it ask me for a password (typed the password, confirmed the password - done) , after that i tried to install a fresh copy of Lion (i waited to be downloded from apple.com - done) after that it said that the fresh copy it will be installed and it will reboot by itself -> done ... from here the problem it's starting .... now my macbook air , it dosent start anymore it keep showming me, instaid of the apple sign from the start , a sign like the one from ghost busters (but without the ghost in it ) , i have tried to boot from cd , from usb , nothing dosent seams to be working.
If anyone know a solution to this problem, pls HELP! Thank you in advance...
p.s. before i had 2 hard drives that show up when i press the ALT button (machintos hd and utility drive, or something like that) now.. the only thing that it's showing me is : mac os base system , and if i try to use partition magic or something else, from a usb, it will tell me something about a bootguard , but i don't know how to insert the password.Glad your issue is fixed. Thanks for the update!
Click if you want to Thank someone. If Problem is resolved, so that others can make use of it. -
when I accept a incoming call face time says connecting but it cannot connect. Pls help me.
A slow Internet connection in between both parties is a typical reason for the connection taking "forever".
-
SQL Server Database Connectivity with Visual Studio 2012 - Help Needed
Hello,
I am having Visual Studio 2012 and SQL Developer 4.0 installed on my system with Windows 8 - 64bit
I want to shift a VS project with an SQL database connectivity to another new Laptop (above mentioned) ...
I have the project opened in VS without bieng connected to the database..
I have a backup file of the database (which needs to be restored to a new created database on SQL Developer)
The problem:
I am unable to create a server connection in SQL Developer which will allow me to create a new database followed by the recovery from backup file.
I am getting the following error message when I try to create a connection:
Status: Faliure - IO error: The network adapter could not establish a connection
Please help me in setting up a server connection and adding a new sql databaseThe error message seemed unfamiliar to me and since I had never heard of SQL Developer before, I went to Google. Google might be pulling my legs, but it appears that SQL Developer is related to Oracle. This forum is devoted to SQL Server, so you are in the
wrong place.
Try finding a forum for SQL Developer.
Erland Sommarskog, SQL Server MVP, [email protected]
Maybe you are looking for
-
DB_UNIQUE_NAME vs DB_NAME in standby databases of ASM file systems
Question : Do we need to have the db_unique_name paramter set differently in standby database compared to db_name in standby . Problem we are facing : Here is the little background Primary Server : SERVER1 db_name : VENKAT db_unique_name
-
SAP HR - Qualification (IT 0024) - how to get them?
Hi Gurus, I'm starting to work on SAP HR and i'm finding some difficulties with infotypes. My main problem, at the moments, are Qualifications (infotype 24). I need to read all the qualifications for a Personnel number i got from input. I think that
-
Can't sign in to VS because IE is blocked at our company
Hi all, I can't sign in to VS Express 2013 to update my trial license. The problem seems to be that when I try to sign in there opens a striped down IE window with an error message that it can't connect to the internet so I can't login to my outlook
-
Please tell me How to access the COS NAMING?
In COS Naming, I create a new context as follows: Initial context | QuerryApp (a new Context) | OrderQuery (a object) But I don't know how to access the "OrderQuery"(using jdk 1.3.1). Please help me!! email: [email protected]
-
Urgent!!, what is my unique instance name?
I've installed Infrastructure, now I'm adding forms but when installing forms I get an error: enter a unique instance name for this Oracle9iAS and ias_admin password. I tried the SID, the service name, and I'm still getting the error. Carlos