MS SQL 2008 Connectivity
I have SQL 2008 as back end and .Net exe as front end. When I try to generate the connection file, the system does not at all detect the SQL 2008 Server (it detects SQL 2005 Server). At client side we are running Win XP SP-2 and Win XP SP-3.
Can I get some solution at the earliest?
Hello,
Thank you for your post! I would suggest creating a new thread for your question in the (SQL Server Developer Center > SQL Server Forums > .NET Framework inside SQL Server ) forum located here: (http://social.msdn.microsoft.com/Forums/en-US/sqlnetfx/threads).
Hope that would be helpful.
Have a great day!
Thanks & regards,
Ashawani
Tier 2 Application Support
Server and Tools Online Engineering Live Services Team
Similar Messages
-
I have done plenty of connections to SQL from UCCX 8.x using the JTDS sourceforge driver.
The documentation (uccx 9 administration guide) talks about using the "Microsoft SQL Server native Client 10.0 Driver" for SQL 2008. Is there a JAR file that works for this? I don't any reference to anything new in the dropdown for driver class name.Looks like this comes down to documentation that has been wrong since version 8.0(1). I found it in the 9.0(2) admin guide.
Bug: CSCto12196 states that the MS SQL Server Native Client 10 Driver SHOULD read JDTS 1.2.5
Doens't help with my problem ultimatley, but for those who were confused as me about that little gem in the docs... -
Cf builder 2.0.1 has MS SQL 2008 connection error
when i try to create Apptacular generation with Mssql 2008 and msAccess : on CfBuilder2.0.1
An Error has occured.
Message:Element IDENTITY.IDENTITY is undefined in a CFML structure referenced as part of an expression.
Details:
this issue written on Github by the apptacular app creator, and has some solutions(not clearly described as solution) and app writers solution didnt worked for me...
I need correct solution, if its possible by correct files?(2 years ago this product was same condition and purchased it 2013 february, its has still same error...)???FIX FOR SQL SERVER ONLY!!!
I wrote this simple script to get the names of all the system views in SQL server - I'm sure M$ add new tables and as Terry appears to no longer develop apptacular he won;t be aware of the new views. Simply run the script and copy and paste the list of views it creates. Instructions will be displayed after running the script........
<cfdbinfo name="dbi" datasource="yourdatasource" type="Tables">
<cfquery name="dbi" dbtype="query" >
select * from dbi where table_type='VIEW'
</cfquery>
<cfoutput>
Copy the quoted values below and paste them at the bottom of /handlers/cfc/db/datasource.cfc just below the last excludedTableList (About line 455)<br><br>
excludedTableList = excludedTableList & ",#replace(listQualify(valuelist(dbi.table_name), "'"), ",'", ", '", "all")#";
</cfoutput>
Hope it helps -
Dg4odbc, unixODBC, freeTDS - connection problems to MS SQL 2008
I am trying to set up a database link between my 64bit Oracle 11g running on CentOS 6.2 and my MS SQL 2008 server running on MS Windows server 2003. I have installed the following -
freeTDS - version 0.91 (64 bit)
unixODBC - version 2.3.1 (64 bit)
I have successfully configured ODBC and freeTDS so that I can connect using isql and query my MSSQL database. The problem I am having is connecting Oracle to MSSQL, I am sure it is a simple configuration error but I have been going round in circles with this and hope someone can help!
freetds.conf
[global]
timeout = 10
connect timeout = 10
text size = 64512
[CERM]
host = 192.168.xxx.xxx
port = 1101
tds version = 7.2
instance = SSLSQLDB
dump file = /tmp/dump.log
odbc.ini
[ODBC Data Sources]
CERM=TDS connection
[CERM]
Servername = CERM
Description = TDS connection
Driver = /usr/local/lib/libtdsodbc.so
UsageCount = 1
FileUsage = 1
[ODBC]
Trace=255
odbcinst.ini
[TDS]
Description = FreeTDS driver for MS SQL
Driver = /usr/local/lib/libtdsodbc.so
Setup = /usr/lib64/libtdsS.so
Trace = Yes
TraceFile = /tmp/freetd.log
FileUsage = 1
[FreeTDS]
Description = FreeTDS driver for MS SQL
Driver = /usr/local/lib/libtdsodbc.so
Setup = /usr/lib64/libtdsS.so
Trace = Yes
TraceFile = /tmp/freetd.log
FileUsage = 1
(Because I have put the actual path to the driver in the odbc.ini file I don;t believe the odbcinst.ini file is actually used)
inithscerm.ora
# This is a sample agent init file containing the HS parameters that
# are needed for an ODBC Agent.
# HS init parameters
HS_FDS_CONNECT_INFO=CERM
HS_FDS_TRACE_LEVEL=255
#HS_FDS_TRACE_FILE_NAME = /tmp/hsodbcsql.trc
HS_FDS_SHAREABLE_NAME=/usr/local/lib/libodbc.so
HS_FDS_SUPPORT_STATISTICS=FALSE
set ODBCINI=/usr/local/etc/odbc.ini
(my odbc.ini file is located in /usr/local/etc)
listener.ora
# listener.ora Network Configuration File: /usr/oracle/product/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = ssl-oracle.domain)(PORT = 1521))
ADR_BASE_LISTENER = /usr/oracle
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC=
(SID_NAME=hscerm)
(ORACLE_HOME=/usr/oracle/product)
(PROGRAM=dg4odbc)
(ENVS=LD_LIBRARY_PATH = /usr/local/lib:$ORACLE_HOME/lib)
(SID_DESC=
(SID_NAME=PROD)
(ORACLE_HOME=/usr/oracle/product)
tnsnames.ora
# tnsnames.ora Network Configuration File: /usr/oracle/product/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
PROD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ssl-oracle.domain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PROD.DOMAIN)
hscerm=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=ssl-oracle.domain)(PORT=1521))
(CONNECT_DATA= (SID=hscerm))
(HS=OK)
right - I can tnsping my hscerm instance and that returns ok so I'm fairly sure the configuration is fine for both tnsnames.ora and listener.ora. I can isql connect to the ODBC defined name for the the MSSQL database. but when I create a database link in Oracle and then test it I get the following trace output :-
[ODBC][14030][1339512618.356535][SQLSetConnectAttrW.c][332]
Entry:
Connection = 0x2054640
Attribute = SQL_ATTR_AUTOCOMMIT
Value = (nil)
StrLen = -5
[ODBC][14030][1339512618.356616][SQLSetConnectAttrW.c][616]
Exit:[SQL_SUCCESS]
[ODBC][14030][1339512618.356984][SQLDriverConnectW.c][290]
Entry:
Connection = 0x2054640
Window Hdl = (nil)
Str In = [DNCR;I=APDagj20][length = 30]
Str Out = 0x2053408
Str Out Max = 1024
Str Out Ptr = 0x7fff6d305770
Completion = 0
[ODBC][14030][1339512618.357030][SQLDriverConnectW.c][500]Error: IM002
[ODBC][14030][1339512618.357115][SQLGetDiagRecW.c][508]
Entry:
Connection = 0x2054640
Rec Number = 1
SQLState = 0x7fff6d3053d0
Native = 0x7fff6d3051c4
Message Text = 0x7fff6d3051d0
Buffer Length = 510
Text Len Ptr = 0x7fff6d305420
[ODBC][14030][1339512618.357153][SQLGetDiagRecW.c][550]
Exit:[SQL_SUCCESS]
SQLState = IM002
Native = 0x7fff6d3051c4 -> 0
Message Text = [[unixODBC][Driver Manager]Data source name not found, and no default driver specified]
[ODBC][14030][1339512618.357197][SQLGetDiagRecW.c][508]
Entry:
Connection = 0x2054640
Rec Number = 2
SQLState = 0x7fff6d3053d0
Native = 0x7fff6d3051c4
Message Text = 0x7fff6d3051d0
Buffer Length = 510
Text Len Ptr = 0x7fff6d305420
[ODBC][14030][1339512618.357228][SQLGetDiagRecW.c][550]
Exit:[SQL_NO_DATA]
[ODBC][14030][1339512618.357291][SQLDisconnect.c][208]
Entry:
Connection = 0x2054640
[ODBC][14030][1339512618.357321][SQLDisconnect.c][237]Error: 08003
[ODBC][14030][1339512618.357387][SQLFreeHandle.c][284]
Entry:
Handle Type = 2
Input Handle = 0x2054640
Now I can clearly see the error "Data source name not found, and no default driver specified" which according to all the documentation means that the entry HS_FDS_CONNECT_INFO=CERM does not match the entry in my odbc.ini file ([CERM]) but for the life of me I can;t see why they don;t match ??
Any help greatly received.Yeah I verified with isql but I have changed the odbc.ini file as you suggested -
[root@ssl-oracle ~]# more /usr/local/etc/odbc.ini
[ODBC Data Sources]
CERM=TDS connection
[CERM]
Server = 192.168.xxx.xxx
Driver = /usr/local/lib/libtdsodbc.so
Database = sqlb00
Port = 1101
TDS_Version = 8.0
QuotedId = YES
[ODBC]
Trace=255
[root@ssl-oracle admin]# more inithscerm.ora
# This is a sample agent init file containing the HS parameters that
# are needed for an ODBC Agent.
# HS init parameters
HS_FDS_CONNECT_INFO=CERM
HS_FDS_TRACE_LEVEL=255
#HS_FDS_TRACE_FILE_NAME = /tmp/hsodbcsql.trc
HS_FDS_SHAREABLE_NAME=/usr/local/lib/libodbc.so
HS_FDS_SUPPORT_STATISTICS=FALSE
HS_LANGUAGE=american_america.we8mswin1252
HS_NLS_NCHAR=UCS2
set ODBCINI=/usr/local/etc/odbc.ini
[root@ssl-oracle admin]# osql -S CERM -U sa -P supersecretpassword
checking shared odbc libraries linked to isql for default directories...
trying /tmp/sql ... no
trying /tmp/sql ... no
trying /usr/loc ... no
trying /tmp/sql.log ... no
trying /home ... no
trying /.odbc.ini ... no
trying /usr/local/etc ... OK
checking odbc.ini files
cannot read "/root/.odbc.ini"
reading /usr/local/etc/odbc.ini
[CERM] found in /usr/local/etc/odbc.ini
found this section:
[CERM]
Server = 192.168.xxx.xxx
Driver = /usr/local/lib/libtdsodbc.so
Database = sqlb00
Port = 1101
TDS_Version = 8.0
QuotedId = YES
looking for driver for DSN [CERM] in /usr/local/etc/odbc.ini
found driver line: " Driver = /usr/local/lib/libtdsodbc.so"
driver "/usr/local/lib/libtdsodbc.so" found for [CERM] in odbc.ini
found driver named "/usr/local/lib/libtdsodbc.so"
/usr/local/lib/libtdsodbc.so is an executable file
"Server" found, not using freetds.conf
Server is "192.168.xxx.xxx"
looking up hostname for ip address 192.168.xxx.xxx
Configuration looks OK. Connection details:
DSN: CERM
odbc.ini: /usr/local/etc/odbc.ini
Driver: /usr/local/lib/libtdsodbc.so
Server hostname: ssl-database.domain
Address: 192.168.xxx.xxx
Attempting connection as sa ...
+ isql CERM sa supersecretpassword -v
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
SQL>
sql.log
[ODBC][31473][1339581606.488571][SQLSetConnectAttr.c][396]
Entry:
Connection = 0x26c2a30
Attribute = SQL_ATTR_AUTOCOMMIT
Value = (nil)
StrLen = -5
[ODBC][31473][1339581606.488638][SQLSetConnectAttr.c][681]
Exit:[SQL_SUCCESS]
[ODBC][31473][1339581606.488924][SQLDriverConnect.c][726]
Entry:
Connection = 0x26c2a30
Window Hdl = (nil)
Str In = [DSN=CERM;UID=SA;PWD=**********][length = 30]
Str Out = 0x26c4b18
Str Out Max = 1024
Str Out Ptr = 0x7fff12846560
Completion = 0
UNICODE Using encoding ASCII 'ISO8859-1' and UNICODE 'UCS-2LE'
DIAG [01000] [FreeTDS][SQL Server]Unknown host machine name.
DIAG [08001] [FreeTDS][SQL Server]Unable to connect to data source
[ODBC][31473][1339581606.491276][SQLDriverConnect.c][1353]
Exit:[SQL_ERROR]
[ODBC][31473][1339581606.491358][SQLGetDiagRec.c][680]
Entry:
Connection = 0x26c2a30
Rec Number = 1
SQLState = 0x7fff128461c0
Native = 0x7fff12845fb4
Message Text = 0x7fff12845fc0
Buffer Length = 510
Text Len Ptr = 0x7fff12846210
[ODBC][31473][1339581606.491395][SQLGetDiagRec.c][717]
Exit:[SQL_SUCCESS]
SQLState = 08001
Native = 0x7fff12845fb4 -> 0
Message Text = [[unixODBC][FreeTDS][SQL Server]Unable to connect to data source]
[ODBC][31473][1339581606.491442][SQLGetDiagRec.c][680]
Entry:
Connection = 0x26c2a30
Rec Number = 2
SQLState = 0x7fff128461c0
Native = 0x7fff12845fb4
Message Text = 0x7fff12845fc0
Buffer Length = 510
Text Len Ptr = 0x7fff12846210
[ODBC][31473][1339581606.491493][SQLGetDiagRec.c][717]
Exit:[SQL_SUCCESS]
SQLState = 01000
Native = 0x7fff12845fb4 -> 20013
Message Text = [[unixODBC][FreeTDS][SQL Server]Unknown host machine name.]
[ODBC][31473][1339581606.491528][SQLGetDiagRec.c][680]
Entry:
Connection = 0x26c2a30
Rec Number = 3
SQLState = 0x7fff128461c0
Native = 0x7fff12845fb4
Message Text = 0x7fff12845fc0
Buffer Length = 510
Text Len Ptr = 0x7fff12846210
[ODBC][31473][1339581606.491558][SQLGetDiagRec.c][717]
Exit:[SQL_NO_DATA]
[ODBC][31473][1339581606.491623][SQLDisconnect.c][208]
Entry:
Connection = 0x26c2a30
[ODBC][31473][1339581606.491652][SQLDisconnect.c][237]Error: 08003
[ODBC][31473][1339581606.491719][SQLFreeHandle.c][284]
Entry:
Handle Type = 2
Input Handle = 0x26c2a30
[ODBC][31473][1339581606.491750][SQLFreeHandle.c][333]
Exit:[SQL_SUCCESS]
[ODBC][31473][1339581606.493083][SQLFreeHandle.c][219]
Entry:
Handle Type = 1
Input Handle = 0x26abfe0
I can also ping both the hostname and ip address of the MSSQL server. -
Cannot connect to MS SQL 2008 R2 locally or remotely.
When I try to connect to my SQL 2008 I get the following error:
TITLE: Connect to Server
Cannot connect to <machinename>.
ADDITIONAL INFORMATION:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)
I have a SQL 2000 instance, and a SQL 2008 R2 instance, running on Windows Server 2008 R2. The sql 2000 instance is functioning correctly, as is the management studio. I can connect to other SQL 2008 servers, just not my local one.
Named pipes and TCPIP are both enabled. The SQL Browser service is running, as is the SQL Server service.
Any assistance would be greatly appreciated.Hello,
Please see the following post:
http://blogs.msdn.com/b/sql_protocols/archive/2007/03/31/named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server.aspx
Error 53 means the instance is not reachable. Since the SQL Server 2008 instance is a named instance, verify the dynamic port is not blocked by Windows firewall. Verify again TCP/IP and Named Pipes are enabled.
http://msdn.microsoft.com/en-us/library/ms191294.aspx
Hope
this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Hello ,
I have a scenario where I have to send/receive data from MES system. Current version of MES SQL is 2005.
Now client has upgraded it to SQL 2008.
We have installed JDBC 2.0 drivers :
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=99B21B65-E98F-4A61-B811-19912601FDC9&displaylang=en
PI version : 7.1
JRE version : 1.5
But we are unable to connect to the database ,
Also pasting the JDBC parameters that we are using ,
JDBC Driver : com.microsoft.sqlserver.jdbc.SQLServerDriver
Connection : jdbc:sqlserver://172.51.1.83:1433;databaseName=Tirisano
Error Message while connecting :
Exception: 'Error when attempting to get processing resources: com.sap.aii.af.lib.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Can not establish connection:: UnsupportedClassVersionError: Bad version number in .class file'.
com.sap.aii.mapping.lookup.LookupException: Error when calling an adapter by using the communication channel JDBC_Test (Party: *, Service: BC_Test, Object ID: 7d8d2928a753332faf9c0d278401585e) XI AF API call failed. Module exception: (No information available). Cause Exception: 'Error when attempting to get processing resources: com.sap.aii.af.lib.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Can not establish connection:: UnsupportedClassVersionError: Bad version number in .class file'.
Has someone worked on this ?
SayaleeDear Sayalee,
Were you able to resolve this issue ? I am facing the same issue with our clients system . Please let me know .
Thanks & Regards,
Sandeep -
Sample Servlet code that connects to Microsoft SQL 2008
Does anybody have sample Servlet code that connects to a Microsoft SQL 2008 Resource Pool?
Thank you.JDBC is used to talk to databases. Not database utilities. As an example SSIS is not a database.
So the question would be is the 2008 "Resource Governor" (of which "Resource Pools" are part) a utility or a database entity?
[http://technet.microsoft.com/en-us/library/bb933866.aspx]
I would guess that it isn't a database entity.
Thus the only way to access it is if a database entity allows you do access it. And for that you would need to look for SQL Server system proc(s). -
Cannot see new SQL 2008 R2 Express instance on Small Business Server 2011!
Hi,
As it is stated on the subject line, I'm having a problem after I did a new install of SQL 2008 R2 Express and put a new instance on SBS 2011.
I'm developing a new program using SQL 2008 in C# and VB.Net. I have SQL 2008 R2 Express installed on my computer called "MSQL8R2EDATA" on my PC. Now I need to deploy it on SBS 2011 so I can do some testing on other workstations.
I'm currently running Windows 7, 64 bit, and it's named STEVE-PC. The SBS 2011 is named SERVER1, and it's 64 bit as well.
After installation on SERVER1 (SBS 2011), I then fired up SQL Server Configuration Manager and enabled Named Pipes, TCP/IP, and VIA.
After I've completed the SQL Configuration on SERVER1, I went back on my PC (STEVE-PC) and I tried to use Management Studio to connect to the new instance MSQL8R2EDATA on SBS 2011, only problem is, I only see the computer name, not the new instance
I've installed.
Back on SBS 2011 (SERVER1), I've verified that all the protocols are enabled, and the SQL Server Browser is automatically loaded and currently running, as well the MSQL8R2EDATA instance is automatically loaded and running, yet I still cannot see
it from my PC (STEVE-PC). I even switched from dynamic ports to a static port of 64719 (that was what the MSQL8R2EDATA was listening on that port when it was dynamic), and then added new rules to the Windows Firewall for program of the SQLSERVR.EXE, and
for UDP and TCP for port 64719 to "Allow All Connections" for Domain, Private, and Public; yet I still cannot connect SERVER1\MSQL8R2EDATA. I even disabled the firewall and then trying to connect once again to SBS 2001 and it still fails.
In case you're wondering, I left it on port 64719 since there are other active SQL Servers on SBS 2011 (SharePoint, SBSMonitoring, and ACT7).
Interestingly, when I run Management Studio on SBS 2011, I can see STEVE-PC\MSQL8R2EDATA and I'm able to log in and connect to it.
So what's going on here?!? Why am I able to connect to STEVE-PC which is Windows 7 64 from SBS 2011 (SERVER1), but I cannot connect from my computer to that instance on SBS 2011??
I really could use some big time help on this.
EDIT: Sorry for the confusion, but on the Windows Firewall (WF.msc), I did add new rules for incoming connections on:
Program incoming connections to SQLSERVR.EXE
TCP Port 64719
UDP Port 64719
EDIT: To further assist, I have Management Studio installed on the SBS 2011, and I can locally log in and connect to the MSQL8R2DATA on SERVER1 with success. I even tried tcp:SERVER1\MSQL8R2DATA and again it is successful log-in and connection.
Thanks in advance!
SteveHi,
Thanks for the response, but I have a question:
Installing SQL Express or SQL Server is not recommended on SBS
2011 because it is a DC, however technically it will work.
I'm a newbie when it comes to SBS 2011 and I'm taking a crash course on the subject. Can you explain to me what you mean by "DC"? Also, why
isn't recommended to install a new instance on SBS 2011?
As I also stated, I've added "New Rules" to the Windows Firewall to allow incoming connections on port 64719 for both TCP and UDP, and I also allowed incoming connections for SQLSERVR.EXE but no joy to connect to the SERVER1\MSQL8R2EDATA.
And yes, I can log-in and connect locally on SERVER1 using Management Studio with success. I even used tcp:SERVER1\MSQL8R2EDATA with the same success. It's my workstation STEVE-PC that fails. If that fails, then the rest of the workstations are going to fail.
Are you suggesting that I put the SQL Server 2008 Express on another workstation and just allow to to be
accessed that way? -
After reinstalling Windows Server 2008 R2 EE my SQL 2008 R2 Sp2 Instances have some connection issues.
The server were installed under the same hostname, but he got a new sid in my active directory.
On the server there one DB Engine MSSQLSERVER, two named Reporting Services for MS crm 4.0 and SCOM and one Analysis Services Instance.
The DB Engine will collect Data from another DB, before writing to Analysis Services.
Here are the problems on the server:
When I connect via SSMS remotly, I sometimes get this error: Failed to connect to server <hostname> ... Named Pipes Provider, error 40 - Could not open a connection to SQL Server - Error 5
Both RS Instances have many event log errors like "Report Server (Instance) cannot connect to the report server database.". RS Reports are working fine, but sometimes the rendering is taking a long
time.
The DB Engine Agent Job to collect Data sometimes throw the following error: An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult:
0x80004005 Description: "Unable to complete login process due to delay in opening server connection". End Error Error: 2013-12-10 06:03:40.41 Code: 0xC00291EC
User use Excel to connect to the Cube on my server. Often they got timeout errors. When they connect again it will work.
Are there any solutons on this?
Thanks a lot!Hello,
The server were installed under the same hostname, but he got a new sid in my active directory.
Did you connect to SQL Server instance with Windows authentication? Since the SID of domain account is changed, the SQL Server instace may cannot verify the login account which stored in the master with old SID. In that case, please try to connect
SQL Server with SQL authentication and then readd the domian as login the instance.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
Data Services 4.0 installation with MS SQL 2008
hey guys,
I am trying to install data services 4.0 on a windows server with MS SQL database as the repository database. So, my plan was to install MS SQL 2008 first, then IPS, then data services. But i am facing a problem in installation of MS SQL itself. I installed MS SQL with following features - database engine, client tools and management tools. The installation process was smooth and the sql server services (server and agent) both startup just fine. I installed a custom instance for the same.
But problem is when I open the management studio and try to connect to the database engine, it does not connect, I choose database engine as the server type, local hostname as the server name and windows authentication as the authentican type but it fails with the following error:
TITLE: Connect to Server
Cannot connect to <myservername>.
ADDITIONAL INFORMATION:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)
For help, click: http://go.microsoft.com/fwlink?ProdName=MicrosoftSQLServer&EvtSrc=MSSQLServer&EvtID=53&LinkId=20476
BUTTONS:
OK
Any clues as to what is causing this ??? Or is it normal at this stage of installation ?? I am confused. I have already tried to reinstall the server, no good, nothing in the event logs either.
Thanks,
RSresolved via following:
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 is 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 want to configure.
If the TCP Dynamic Ports dialog box contains 0, indicating the Database Engine is listening on dynamic ports, delete the 0.u201D
Once I deleted those zeros and put in 1433 for TCP ports on each IP address, voila! -
Calling a stored procedure on SQL 2008 server
This might be easy one, but I tried different things just cannot get it to work.
I am trying to call a stored procedure in SQL 2008 R2 server using Type 4 driver (sqljdbc4.jar) with JR.
The stored procedure basically has one input and two outputs
ALTER PROCEDURE [dbo].[usp_Example_Master]
@XMLResponse as varchar(max),
@ERROR_NUMBER as int OUTPUT,
@ERROR_MESSAGE as varchar(300) OUTPUT
as
My program.
Connection connection =null
CallableStatement cs =null;
connection = DriverManager.getConnection(url, username, password);
cs = connection.prepareCall("{call dbo.usp_Example_Master(?,?,?)}");
cs.setString(1,requestStr);
cs.registerOutParameter(2, Types.INTEGER);
cs.registerOutParameter(3, Types.VARCHAR);
cs.execute();
============
Error: The output parameter 1 was not registered for output.
But if I added cs.registerOutParameter(1, Types.VARCHAR);
Error: The formal parameter "@XMLResponse" was not declared as an OUTPUT parameter, but the actual parameter passed in requested output
==========
Appreciate any help !Ok. I have an alternative to get it to work now.
Instead of using index number, I am using the parameter name now. It works as expected and more intuitive any way.
Ex.
cs.setString("XMLResponse",req);
cs.registerOutParameter("ERROR_NUMER",Type.INTEGER);
Edited by: 903857 on Dec 21, 2011 2:45 PM -
Security issue in SQL Server replication in SQL 2008 Express edition
Hi,
I am trying to do merge replication through web sync in SQL server 2008 express edition. i tried the merge replication using RMO with C# code but no luck. i am getting the security related error.
my Publisher and distribution are on SQL server 2008 R2 Standard edition. machine name "Printserver",
I created subscription on SQL server 2008 express edition.
I hosted the web service for merge syncronization on another machine named "ANUJVMWIN7".
I installed SSL cerificate on all the machine (server, hosted server and subscriber machine.)
here is the error description.
The upload message to be sent to Publisher ‘PRINTSERVER’ is being generated
The merge process is using Exchange ID ’0B23EBE2-D502-4D92-A9A1-88B8F738CFFC’ for this web synchronization session.
A security error occurred
A security error occurred
The Merge Agent could not connect to the URL ‘https://ANUJVMWIN7.prospecta.in/WebSyncTest/replisapi.dll’ during Web synchronization. Please verify that the URL, Internet login credentials and proxy server settings are correct and that the Web server is reachable.
The same process i tested with the SQL server 2008 standard edition and all the things are working fine. i could able to merge the databases but no luck with SQL 2008 express edition.
Please help.
Thanks
Anuj Sharma
Thanks Anuj Sharma Software EngineerHi Brandon,
I am not using self signed certificate. I installed SSL certificate provided by RapidSSL CA. This certificate is installed on my publisher machine ("Printserver"),
web hosting machine ("ANUJVMWIN7") and my subscriber machine as well.
Here are the certificate details which i installed on each machine.
Thanks
Anuj Sharma
Thanks Anuj Sharma Software Engineer -
SQL 2008 Problem Calling an SP on an Oracle 10G Linked Server
Hi everyone
I've read through a number of posts on many sites about this issue but haven't found anything that has helped me so far. The machine I'm using is running Microsoft SQL Server 2008 64bit and the linked server I've created to Oracle 10G is using OraOLEDB.Oracle. If I test the connection in SQL Management Studio it succeeds and for any queries I have using OpenQuery to select from the Oracle DB I have no problem getting results.
The Oracle 32bit client and 64bit client versions are installed on the machine.
My problem is that I need to exec an Oracle SP which in turn inserts into various Oracle tables. I previously had this all working fine on 32bit SQL Server 2000 installation connected to Oracle 10G. Using the same code in SQL Server 2008 I get the following error:
Msg 7357, Level 16, State 2, Line 1
Cannot process the object "{CALL INTF.INTF_TW_PO_REQ_INTERFACE.MAIN(NULL, 15.000000, 0.000000, 'BLPO0099998', 'BLPO0099998', '', '', 39804, 21883, 'BLPO0099998', 249, 1, 950, 'Main', 190506, 37336, '1', TO_DATE( '20090706','YYYYMMDD' ), TO_DATE( '20090706','YYYYMMDD' ), 'INCOMPLETE',37336, {RESULTSET 1, P_Success})}". The OLE DB provider "OraOLEDB.Oracle" for linked server "ORACLE" indicates that either the object has no columns or the current user does not have permissions on that object
The call is made by the following piece of code in SQL:
SET @execCmd = N'SELECT
P_Success
FROM
OPENQUERY( ORACLE, '''+ @oracleCmd + ''')';
EXECUTE (@execCmd);
Where @oracleCmd = {CALL INTF.INTF_TW_PO_REQ_INTERFACE.MAIN(NULL, 15.000000, 0.000000, ''BLPO0099998'', ''BLPO0099998'', '''', '''', 39804, 21883, ''BLPO0099998'', 249, 1, 950, ''Main'', 190506, 37336, ''1'', TO_DATE( ''20090706'',''YYYYMMDD'' ), TO_DATE( ''20090706'',''YYYYMMDD'' ), ''INCOMPLETE'',37336, {RESULTSET 1, P_Success})}
I also tried using the below snippet from another post I found and got no joy either.
declare @result varchar(255)
exec ('BEGIN
?:= your_SP_Name(''arg1'', ''arg2'', etc);
END;
',@result OUTPUT) at your_LinkedServerName;
select @result;
OLE DB provider "OraOLEDB.Oracle" for linked server "ORACLE" returned message "ORA-06550: line 3, column 7:
PLS-00222: no function with name 'INTF_TW_PO_REQ_INTERFACE' exists in this scope
ORA-06550: line 3, column 1:
PL/SQL: Statement ignored".
I can't figure out why it doesn't work in SQL 2008 when it worked fine in SQL 2000 - PLEASE HELP!
Thank you
Alida HopeWhy development on 10g and production on 8i? Either both should be 8i or both should be 10g.
If you will keep production on 8i and development on 10g then you cannot stop such errors as there are features that are enabled by default in 10g and both the versions have very big differences.
Just go ahead and install 8i. -
ColdFusion 9 Fails after SQL 2008 Cluster Failover
All,
I have a ColdFusion 9 app server that seems to be failing when my SQL 2008 cluster fails over to the passive node. By failing, my IIS server does not respond to any .cfm requests about 4-5 minutes after the failover. It serves out static and .asp pages just fine. Restarting ColdFusion server service and rebooting the server itself does not fix the problem. The only fix is to fail the SQL cluster back to the original node.
Specs are as follows:
SQL - SQL 2008 SP1 64-bit active/passive cluster VM
CF - CF9 running on Windows 2008 SP2 64-bit VM
ErickProblem solved. We had a linked server defined in SQL that pointed to an Oracle instance. We could successfully run the "Test Connection" in SQL Management Studio for the linked server when our SQL 2008 cluster was on node 1. However, we got an "OraOLEDBpus10.dll: The specified module could not be found" error message when trying to test the connection when the cluster was on node 2. The fix was to add the Oracle folder path to the Windows PATH environment variable on node 2. The Oracle installer is supposed to do this automatically, so we don't know why it was missing.
The reason CF would become unresponsive was that we had a template with a query that used the linked server. The purpose of this template was to monitor the status of the linked server. Using CF Server Monitor, we were able to see active requests to that template which would keep running and not terminate even though we set a timeout value in CF Admin.
Erick -
Problems install SCCM 2012 with remote sql 2008 r2 sp2
I am having issues installing sccm 2012 on a remote sql 2008 r2 sp2 server on a seperate instance.
I get the error "The network path was not found"
if i point it at the primary instance it will let me continue but i cannot install sccm into that instance.
I have turned off dynamic ports and set a static port but I do not see where i can enter that in the installer.
I cannot seem to verify is the ssb port is working correctly or not.
my account is local admin on both servers and a sql sysadm.
There is no firewall between servers.
Any suggestions?
Regards
DonSPN is setup to AUTO register and is working. remote sql is not a cluster. Windows firewall on both servers is disabled. Sql browser is enabled and started. we have a group for system center that contains site servers and this group
is in the local admin of both servers and sysadm inside of sql server.
Why we are consolidating all or our lesser sql servers into a larger one.
Snipt of the log.
12/12/2012 2:57:37 PM: ConfigMgrSetupWizard Error: 1 : Exception message: [The network path was not found.
], Exception details: [System.IO.IOException: The network path was not found.
Server stack trace:
at Microsoft.Win32.RegistryKey.Win32ErrorStatic(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hKey, String machineName)
at Microsoft.SystemCenter.ConfigMgr.Setup.DatabaseUtility.GetSqlConnection(String databaseName, String serverName, Boolean encrypt)
at Microsoft.SystemCenter.ConfigMgr.Setup.DatabaseUtility.CheckSqlConnection(String serverName, String instanceName)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at Microsoft.SystemCenter.ConfigMgr.Setup.CheckSqlAsync.EndInvoke(IAsyncResult result)
at Microsoft.SystemCenter.ConfigMgr.Setup.DatabasePage.ValidatePage()
at Microsoft.SystemCenter.ConfigMgr.SetupFramework.WizardForm.ActivatePage(String pageId, Boolean goingNext)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)].
12/12/2012 3:01:42 PM: ConfigMgrSetupWizard Information: 1 : Creating SQL connection to database ADMIN\master on server YSQL030.srf.local.
12/12/2012 3:01:42 PM: ConfigMgrSetupWizard Error: 1 : Exception message: [The network path was not found.
], Exception details: [System.IO.IOException: The network path was not found.
Maybe you are looking for
-
My ipad is not showing all my music or videos
Looking for help with my iPad 2. I have iTunes 11.1.5.5 on my Sony Vaio VPCSA laptop running Windows 7. When I connect my iPad 2 and open iTunes, I can select my iPad from the menu column on the left and see 8 movies, all my music, and play lists.
-
How can I make space in my full HD finding the FATTY folders?
Hi everybody... I have my 80G HD almost full, only 1.1G free. This happened suddenly without me doing nothing. I know I have to have at least 25% free. So I started checking my folders to choose which delete. The biggest one is iTunes with 3.5G. I RE
-
(I don't think I can set up an iCloud account on my computer because my macbook is too old to update to an operating system that supports iCloud, but could set it up on my brother's computer or something if it would be helpful.) This is just really f
-
Can't install Adobe Photoshop elements 4 anymore. Why?
Greetings! I tried to open a post with the support team, but they said that the support for my product was no longer available. I'll copy the post I posted to the support: After not using Adobe photoshop elements 4 for a year, i decided to install it
-
Problem with PO smartform display
Hi All, I've developed a Purchase Order Template using Smartform. In NACE I've assignd the smartform name for a new output type. Smartform isworking properly. But while executing ME21n transaction I'm not getting my smartform template. In TNAPR table