Quantcast
Channel: SQL Server Data Access forum
Viewing all 4164 articles
Browse latest View live

Any plans to add socket timeout option in JDBC driver??

$
0
0
 

I have come across several threads stuck with the stack below and they are literally stuck. Other drivers (MySQL and Oracle) have options to timeout from a socket read but MS SQL driver does not seem to have that. Though the root cause of the issue might be environmental (network packet loss, firewalls etc), I would like to timeout the thread and handle it in our application (trying to make the application more resilient to environmental issues.)

 java.lang.Thread.State: RUNNABLE

at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at com.microsoft.sqlserver.jdbc.TDSChannel.read(IOBuffer.java:1525)
at com.microsoft.sqlserver.jdbc.TDSReader.readPacket(IOBuffer.java:3274)
- locked com.microsoft.sqlserver.jdbc.TDSReader@ffd8069
at com.microsoft.sqlserver.jdbc.TDSCommand.startResponse(IOBuffer.java:4433)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:386)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:338)
at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:4026)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1416)
- locked java.lang.Object@4bf975b2
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:185)



Connecting asp.net to external database

$
0
0

Hallo

I am working on web application in ASP.NET NF 4.0, linked to database MSSQL 2012 through DataSet. Application is not on web hosting, but in my windows server 2012. I have my databases in folder App_Data.

I need to connect other external application (windows form) on this database. This application (windows form) can be on other computer/server.

Can i place database ASP.NET also out of folder App_Data, in order to be accessable to other applications?

Can i connect my ASP.NET application to other databases, that are also placed on the other server?

Thank you for your help.


Connection problems on federated database system

$
0
0
I have an 8 node federated database system I am testing with a table that has been split up across all 8 nodes that is queried using a distributed partitioned view.  The problem I am having occurs when querying the tables on node 8 from any of the other nodes.  All nodes were setup at the same time with the same settings, and all are linked to one another.  I am guessing that I must have misconfigured a setting somewhere on node 8 that is causing the problem, but I can't locate it. 

Any query run on nodes 1-7 that references a table on node 8 fails with the error below after processing through all the other nodes.  Running similar queries on node 8 that access tables on nodes 1-7 run to completion without any errors.  I have checked the firewall settings on all nodes and they are identical.  Also, I am able to connect the Database Engine on node 8 from all the other nodes through the management studio.  I can't find any pertinent information in the SQL Server logs.  Any suggestions on what settings to check would be greatly appreciated.

OLE DB provider "SQLNCLI10" for linked server "ramses8" returned message
"Protocol error in TDS stream".
OLE DB provider "SQLNCLI10" for linked server "ramses8" returned message
"Communication link failure".
Msg 65535, Level 16, State 1, Line 0
Session Provider: Connection has been closed by peer [xFFFFFFFF].
OLE DB provider "SQLNCLI10" for linked server "ramses8" returned message
"Communication link failure".
Msg 65535, Level 16, State 1, Line 0
Session Provider: Connection has been closed by peer [xFFFFFFFF].
OLE DB provider "SQLNCLI10" for linked server "ramses8" returned message
"Communication link failure".
Msg 65535, Level 16, State 1, Line 0
Session Provider: Connection has been closed by peer [xFFFFFFFF].

Insert Error: Column name or number of supplied values does not match table definition.

$
0
0

I'm getting this error when I try to run my stored procedure, I have checked that the inserts matches the select, which seemed to be the issue for most of the time this question is asked. As far as I can tell they match so something else must be wrong.

Code:-


CREATE proc [dbo].[prc_ITEM_master_Customer]
as 
begin 
set nocount on
/****** Object:  Table [dbo].[tempdb..tmpWebCustomers]    Script Date: 03/05/2014 20:49:28 ******/
IF  EXISTS (SELECT * FROM tempdb.sys.objects WHERE name = 'tmpWebCustomers' AND type in (N'U'))
DROP TABLE tempdb..tmpWebCustomers

CREATE TABLE tempdb..tmpWebCustomers
(
[Customer Number] varchar(6),
[Store Number] varchar(6),
[Company Name] varchar(35),
[Email Address] varchar(75),
[Password] varchar(20),
[Contact Name] varchar(20),
[Phone] varchar(20),
[Billing Address] varchar(40),
[Billing City] varchar(30),
[Billing State] varchar(2),
[Billing Zip] varchar(10),
[Billing Country] varchar(15),
[Shipping Address] varchar(40),
[Shipping City] varchar(30),
[Shipping State] varchar(2),
[Shipping Zip] varchar(10),
[Shipping Country] varchar(15),
[Payment Terms] varchar(1),
[Prepaid Freight Amount] decimal(14,4),
[Is Preferred] bit,
[Fuel Surcharge Exempt] bit,
[Sales Tax Addback] bit,
[Broken Box Exempt] bit,
[Canada Freight Exempt] bit,
[Furniture Handling Exempt] bit,
[Create At] datetime,
[Updated At] datetime,
[Sales Rep] varchar(50),
[Sales Rep Phone] varchar(15),
[Sales Rep Email] varchar(50),
[Inside Rep] varchar(50),
[Inside Rep Email] varchar(50),
[Parent] bit
)


--Insert All Non-National Account Customers--
INSERT INTO tempdb..tmpWebCustomers
SELECT
C.CUSTNO as 'Customer Number',
'' as 'Store Number',
C.COMPANY as 'Company Name',
RTRIM(C.EMAIL) as 'Email Address',
C.MISC6 as 'Password',
C.CONTACT as 'Contact Name',
C.PHONE as 'Phone',
C.ADDRESS1 as 'Billing Address',
C.CITY as 'Billing City',
C.STATE as 'Billing State',
C.ZIP as 'Billing Zip',
C.COUNTRY as 'Billing Country',
'' as  'Shipping Address',
'' as 'Shipping City',
'' as 'Shipping State',
'' as 'Shipping Zip',
'' as 'Shipping Country',
CASE
WHEN C.PTERMS='CREDIT CARD' THEN 1
WHEN C.PTERMS='CREDIT CART ONLY' THEN 1
WHEN C.PNET=0 THEN 0
ELSE 2
END as 'Payment Terms',
C.PPFREIGHT as 'Prepaid Freight Amount',
C.PRPRICE as 'Is Preferred',
C.FSEXEMPT as 'Fuel Surcharge Exempt',
C.STADDBACK as 'Sales Tax Addback',
C.BROKEN as 'Boken Box Exempt',
C.CANADAFREIGHT as 'Canada Freight Exempt',
C.FHEXEMPT as 'Furniture Handling Exempt',
C.ADDDATE as 'Created At',
C.LCKDATE as 'Updated At',
RTRIM(R.SFIRST) +' '+ RTRIM(R.SLAST) as 'Sales Rep',
R.PHONE as 'Sales Rep Phone',
CASE
WHEN R.EMAIL='WendyH@hrpsp.com' then ''
ELSE R.EMAIL
END as 'Sales Rep Email',
RTRIM(I.SFIRST) +' '+ RTRIM(I.SLAST) as 'Inside Rep',
I.EMAIL as 'Inside Rep Email',
0
FROM tblARCUST C 
INNER JOIN tblICSLSP R ON C.SALESMN=R.SLSMN
LEFT OUTER JOIN tblICSLSP I ON R.INSIDESALES=I.SLSMN
WHERE 
C.NATION=0
AND C.ACTIVE=1
AND C.MISC6 !=''
AND C.EMAIL like '%@%'

--Populate Shipping Address Data--
UPDATE tempdb..tmpWebCustomers
SET 
[Shipping Address]=RTRIM(S.ADDRESS1),
[Shipping City]=RTRIM(S.CITY),
[Shipping State]=RTRIM(S.STATE),
[Shipping Zip]=RTRIM(S.ZIP),
[Shipping Country]=RTRIM(S.COUNTRY)
from tempdb..tmpWebCustomers W
INNER JOIN tblARCADR S ON W.[Customer Number]=S.CUSTNO
WHERE S.DEFASHIP='Y'

UPDATE tempdb..tmpWebCustomers
SET
[Shipping Address]=[Billing Address],
[Shipping City]=[Billing City],
[Shipping State]=[Billing State],
[Shipping Zip]=[Billing Zip],
[Shipping Country]=[Billing Country]
WHERE
[Shipping Address]=''

--Insert National Account Customers
INSERT INTO tempdb..tmpWebCustomers
SELECT
C.CUSTNO as 'Customer Number',
S.CSHIPNO as 'Store Number',
S.COMPANY as 'Company Name',
RTRIM(S.EMAIL) as 'Email Address',
S.MISC6 as 'Password',
S.CONTACT as 'Contact Name',
S.PHONE as 'Phone',
C.ADDRESS1 as 'Billing Address',
C.CITY as 'Billing City',
C.STATE as 'Billing State',
C.ZIP as 'Billing Zip',
C.COUNTRY as 'Billing Country',
S.ADDRESS1 as  'Shipping Address',
S.CITY as 'Shipping City',
S.STATE as 'Shipping State',
S.ZIP as 'Shipping Zip',
S.COUNTRY as 'Shipping Country',
CASE
WHEN C.PTERMS='CREDIT CARD' THEN 1
WHEN C.PTERMS='CREDIT CART ONLY' THEN 1
WHEN C.PNET=0 THEN 0
ELSE 2
END as 'Payment Terms',
C.PPFREIGHT as 'Prepaid Freight Amount',
C.PRPRICE as 'Is Preferred',
C.FSEXEMPT as 'Fuel Surcharge Exempt',
C.STADDBACK as 'Sales Tax Addback',
C.BROKEN as 'Boken Box Exempt',
C.CANADAFREIGHT as 'Canada Freight Exempt',
C.FHEXEMPT as 'Furniture Handling Exempt',
S.ADDDATE as 'Created At',
S.LCKDATE as 'Updated At',
RTRIM(R.SFIRST) +' '+ RTRIM(R.SLAST) as 'Sales Rep',
R.PHONE as 'Sales Rep Phone',
CASE
WHEN R.EMAIL='WendyH@hrpsp.com' then ''
ELSE R.EMAIL
END as 'Sales Rep Email',
RTRIM(I.SFIRST) +' '+ RTRIM(I.SLAST) as 'Inside Rep',
I.EMAIL as 'Inside Rep Email',
0
FROM tblARCUST C
INNER JOIN tblARCADR S ON C.CUSTNO=S.CUSTNO 
INNER JOIN tblICSLSP R ON C.SALESMN=R.SLSMN
LEFT OUTER JOIN tblICSLSP I ON R.INSIDESALES=I.SLSMN
WHERE 
C.NATION=1
AND C.ACTIVE=1
AND S.MISC6 !=''
AND S.EMAIL LIKE '%@%'

--Insert National Account Parents
INSERT INTO tempdb..tmpWebCustomers
SELECT
C.CUSTNO as 'Customer Number',
'' as 'Store Number',
C.COMPANY as 'Company Name',
RTRIM(C.EMAIL) as 'Email Address',
C.MISC6 as 'Password',
C.CONTACT as 'Contact Name',
C.PHONE as 'Phone',
C.ADDRESS1 as 'Billing Address',
C.CITY as 'Billing City',
C.STATE as 'Billing State',
C.ZIP as 'Billing Zip',
C.COUNTRY as 'Billing Country',
C.ADDRESS1 as  'Shipping Address',
C.CITY as 'Shipping City',
C.STATE as 'Shipping State',
C.ZIP as 'Shipping Zip',
C.COUNTRY as 'Shipping Country',
CASE
WHEN C.PTERMS='CREDIT CARD' THEN 1
WHEN C.PTERMS='CREDIT CART ONLY' THEN 1
WHEN C.PNET=0 THEN 0
ELSE 2
END as 'Payment Terms',
C.PPFREIGHT as 'Prepaid Freight Amount',
C.PRPRICE as 'Is Preferred',
C.FSEXEMPT as 'Fuel Surcharge Exempt',
C.STADDBACK as 'Sales Tax Addback',
C.BROKEN as 'Boken Box Exempt',
C.CANADAFREIGHT as 'Canada Freight Exempt',
C.FHEXEMPT as 'Furniture Handling Exempt',
C.ADDDATE as 'Created At',
C.LCKDATE as 'Updated At',
RTRIM(R.SFIRST) +' '+ RTRIM(R.SLAST) as 'Sales Rep',
R.PHONE as 'Sales Rep Phone',
CASE
WHEN R.EMAIL='WendyH@hrpsp.com' then ''
ELSE R.EMAIL
END as 'Sales Rep Email',
RTRIM(I.SFIRST) +' '+ RTRIM(I.SLAST) as 'Inside Rep',
I.EMAIL as 'Inside Rep Email',
1
FROM tblARCUST C 
INNER JOIN tblICSLSP R ON C.SALESMN=R.SLSMN
LEFT OUTER JOIN tblICSLSP I ON R.INSIDESALES=I.SLSMN
WHERE 
C.NATION=1
AND C.ACTIVE=1
AND C.MISC6 !=''
AND C.EMAIL like '%@%'

end



GO

The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Connection reset ClientConnectionId:

$
0
0

I am getting the following error while running my project in JBoss 7.1:

14:52:04,354 INFO  [com.microsoft.sqlserver.jdbc.internals.TDS.Channel] (http--0.0.0.0-9080-1) java.security path: e:\Documentum\java64\1.7.0_17\jre\lib\security
Security providers: [RsaJsse version 6.0, JsafeJCE version 6.002, SUN version 1.7, SunRsaSign version 1.7, SunEC version 1.7, SunJSSE version 1.7, SunJCE version 1.7, SunJGSS version 1.7, SunSASL version 1.7, XMLDSig version 1.0, SunPCSC version 1.7, SunMSCAPI version 1.7]
SSLContext provider info: SSL-J 6.0 JSSE Provider supporting SSLv3, TLSv1, TLSv1.1, and TLSv1.2
SSLContext provider services:
[RsaJsse: SSLContext.TLS -> com.rsa.sslj.x.cr
  aliases: [SSLv3, SSL, TLSv1, TLSv1.1, TLSv1.2]
, RsaJsse: SSLContext.Default -> com.rsa.sslj.x.B
, RsaJsse: KeyManagerFactory.X509 -> com.rsa.sslj.x.y
  aliases: [SunX509, NewSunX509, IbmX509, NewIbmX509, RsaX509]
, RsaJsse: TrustManagerFactory.X509 -> com.rsa.sslj.x.bI
  aliases: [SunX509, IbmX509, X.509, RsaX509]
, RsaJsse: TrustManagerFactory.PKIX -> com.rsa.sslj.x.cI
  aliases: [SunPKIX, IbmPKIX]
, RsaJsse: TrustManagerFactory.PKIX-SuiteB -> com.rsa.sslj.x.aj
, RsaJsse: TrustManagerFactory.PKIX-SuiteBTLS -> com.rsa.sslj.x.D
]
java.ext.dirs: e:\Documentum\java64\1.7.0_17\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
14:52:04,370 INFO  [stdout] (http--0.0.0.0-9080-1) SQL STATE: 08S01

14:52:04,370 INFO  [stdout] (http--0.0.0.0-9080-1) ERROR CODE: 0

14:52:04,370 INFO  [stdout] (http--0.0.0.0-9080-1) MESSAGE: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Connection reset ClientConnectionId:de08fc2a-4d65-4adc-af48-b255ea0988a9".

14:52:04,370 INFO  [stdout] (http--0.0.0.0-9080-1) SQL STATE: 08S01

14:52:04,370 INFO  [stdout] (http--0.0.0.0-9080-1) ERROR CODE: 0

14:52:04,370 INFO  [stdout] (http--0.0.0.0-9080-1) MESSAGE: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Connection reset ClientConnectionId:de08fc2a-4d65-4adc-af48-b255ea0988a9".

14:52:04,370 INFO  [stdout] (http--0.0.0.0-9080-1) SQL STATE: 08S01

14:52:04,370 INFO  [stdout] (http--0.0.0.0-9080-1) ERROR CODE: 0

----------------------------------------------------------------------------------------------------

I run the same code in Eclipse and it works fine.  Both environments are running JDK 1.7.

I would appreciate any help...

Access 2013 SQL syntax error for experts

$
0
0

SELECT Box_Dtl.N_Code, Box_Dtl.Box_Num, Box_Dtl.Cur_BarCount, IIf(z_nRes.rQty Is Null, 0,z_nRes.rQty) AS rQty,
Box_Dtl.Cur_BarCount - IIf(z_nRes.rQty Is Null, 0,z_nRes.rQty) AS bBal, Box_Dtl.PO, Box_Dtl.Cert, Box_Dtl.Rec_Date,
IIf(z_TotalBars.Bars Is Null, 0,z_TotalBars.Bars) AS tBars, IIf(z_TotalRes.rBars Is Null, 0,z_TotalRes.rBars) AS rBars, IIf(z_TotalBars.Bars Is Null, 0,z_TotalBars.Bars)
- IIf(z_TotalRes.rBars Is Null, 0,z_TotalRes.rBars) AS Bal, Box_Dtl.Cost_Bar, Box_Dtl.Weight, Box_Dtl.Location_Code, Box_Dtl.Notes, DEFARS
FROM ([ODBC;Description=D4;DRIVER=SQL Server;SERVER=DEVELOPMENT;Trusted_Connection=Yes;DATABASE=RawMaterial_LV].z_TotalRes
RIGHT OUTER JOIN [ODBC;Description=D4;DRIVER=SQL Server;SERVER=DEVELOPMENT;Trusted_Connection=Yes;DATABASE=RawMaterial_LV].Box_Dtl)
LEFT OUTER JOIN [ODBC;Description=D4;DRIVER=SQL Server;SERVER=DEVELOPMENT;Trusted_Connection=Yes;DATABASE=RawMaterial_LV].z_nRes ON Box_Dtl.Box_Num = z_nRes.Box
LEFT OUTER JOIN [ODBC;Description=D4;DRIVER=SQL Server;SERVER=DEVELOPMENT;Trusted_Connection=Yes;DATABASE=RawMaterial_LV].z_TotalBars ON Box_Dtl.N_Code = z_TotalBars.M_Code ON z_TotalRes.M_Code = Box_Dtl.N_Code
WHERE (Box_Dtl.Finished = 0) AND (Box_Dtl.N_Code = 'AL---2011--------T3-.6875R12')

error messagesyntax error in  FROM clause

Target principal is incorrect. Cannot generate SSPI context.

$
0
0

Hi,

I am able to connect to SQL server from a remote machine with one data card. But when i use another data card I am getting an errorThe target principal name is incorrect. Cannot generate SSPI context.

I am trying to connect using SSMS client.

Thanks

Microsoft OLE DB provider for DB2 failed to connect to DB2/NT

$
0
0

I have downloaded the latest Microsoft OLE EB provider for DB2 to connect to the DB2 on windows server with linked server. but it constantly fail with the below error message.

Test connection failed because of an error in initializing the provider. - The authentication method used is not supported by the remote system. Contact your system administrator.

any idea why this error, how can I resolve it?


power liang


Unable to complete login process due to delay in opening server connection

$
0
0

I am having an issue where some of the PCs are getting this error message when trying to run an application we developed.  The user is presented with a SQL Server Login Screen, and if you click OK the connection is made and the application runs.  This is happening at multiple locations, connecting to different servers (at the same locations).  I can tried the troubleshooting steps posted in a different article, and I have no issues connecting through ODBCAD32.EXE.

The error only happens on some of the workstations, others work fine.  The problem is happening on machines running Windows XP sp3 and Windows 7.  If I revert to the SQL Server 2000 ODBC driver, change the client configuration to Named Pipes and map a network drive to a share on the server, I do not get the error.  I was originally only running TCP/IP, but I enabled Named Pipes while troubleshooting.  This happens on Named Instances and default instances.  I have tried suing the IP Address - no difference.

SQL Server 2005 SP4.

Help...?

Enterprise server data recovery

$
0
0

A database server took a pretty rough hit oct 31 and we have been trying to recover the files that were stored there for three weeks. The trn logs and database only date back to December of 2013, we haven't been able to find  anything from January 2014 till now.

I have search all drives and back ups but to no avail. Is there anyway to recover data lost from this year.

SQL Server 2014 Express (32 bit) issues with Microsoft OLE DB Provider for Visual FoxPro

$
0
0

Hello, I am trying to create a sample data warehouse and some reports etc to demonstrate SQL server and subsequent automation to a company I am working for.  I am trying to import data from the company's VFP based software into a new SQL Server database. (please note, this is not custom developed software, so i am unable to push the data from VPF)

I keep getting errors and SQL server crashes when i try to access the Microsofl OLE DB Provider for Visual Fox Pro similar to this thread https://social.msdn.microsoft.com/Forums/en-US/88296548-553e-4402-93e3-6f26f5de343d/dtswizard-importexport-utility-error-trying-to-use-vfp-oledb-provider?forum=sqldataaccess however, the solution outlined in that thread will not work, as i cannot create an SSIS package in Express.

I have also attempted to use the OLE DB in Excel as well to test it, and it crashes Excel the same way.  

results of the following query Exec master.dbo.xp_msver

IndexName Internal_ValueCharacter_Value
1ProductName NULLMicrosoft SQL Server
2ProductVersion78643212.0.2000.8
3Language 1033English (United States)
4Platform NULLNT INTEL X86
5Comments NULLSQL
6CompanyName NULLMicrosoft Corporation
7FileDescriptionNULLSQL Server Windows NT
8FileVersion NULL2014.0120.2000.08 ((SQL14_RTM).140220-1752)
9InternalNameNULLSQLSERVR
10LegalCopyrightNULLMicrosoft Corp. All rights reserved.
11LegalTrademarksNULLMicrosoft SQL Server is a registered trademark of Microsoft Corporation.
12OriginalFilenameNULLSQLSERVR.EXE
13PrivateBuildNULLNULL
14SpecialBuild131072008NULL
15WindowsVersion1310720086.1 (7601)
16ProcessorCount88
17ProcessorActiveMask255000000ff
18ProcessorType586PROCESSOR_INTEL_PENTIUM
19PhysicalMemory40554055 (4252094464)
20Product ID NULLNULL

Any guidance is appreciated.  thanks!


microsoft sql error unhandled exception has occurred in your application. if you click continue the application will ignore this error and attempt to continoue

$
0
0
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Data.SqlClient.SqlException (0x80131904): SQL Server detected a logical consistency-based I/O error: incorrect checksum (expected: 0x0c213c3e; actual: 0x12a03119). It occurred during a read of page (1:4674) in database ID 7 at offset 0x00000002484000 in file 'C:\Program Files\Microsoft SQL Server\MSSQL10.MYSQLEXPRESS\MSSQL\DATA\IGNOUIMS_RCD3.mdf'.  Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlDataReader.HasMoreRows()
   at System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout)
   at System.Data.SqlClient.SqlDataReader.Read()
   at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping)
   at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue)
   at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
   at Ignou.IssueStudyCentre.button_SearchBySC_Session_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Ignou
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/7techies/inventory%20management%20system/Ignou.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Transactions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

error message "suspected state."

$
0
0

we are using windows nt & sql server.

we are facing suspected mode error.

SQL Server Agent and OpenDataSource failing

$
0
0

I have a stored procedure that is using an OpenDataSource query to export data from SQL Server into a excel file for download. I’ve installed the “Microsoft Access database engine 2010”, and can see it listed in SQL Server Management Studio under Server Objects > Linked Servers > Providers > Microsoft.ACE.OLEDB.12.0.

If I manually run the stored procedure (when logged in as the OS’s administrator), the stored procedure runs fine, and the export is completed successfully.

The stored procedure is set up to be run periodically by a SQL Server Agent job.

However, if I start the SQL Server Agent job (when logged in as the OS’s administrator), the job fails with the following error message:

Executed as user: NT SERVICE\SQLSERVERAGENT. Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)". [SQLSTATE 42000] (Error 7303) OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" returned message "Unspecified error". [SQLSTATE 01000] (Error 7412). The step failed.

I have given the “NT SERVICE\SQLSERVERAGENT” user full control permissions on the destination directory where the export file resides (note that it starts out as an empty file just with the column headers defined).

I’ve applied the following configuration settings to SQL Server:

sp_configure 'show advanced options', 1;
RECONFIGURE;
GO
sp_configure 'Ad Hoc Distributed Queries', 1;
RECONFIGURE;
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1
GO

What am I missing? Can anyone shed any light on what might be causing the failure?

This is running on SQL Server Web Edition 2012 on Windows Server 2012 Standard.

Thanks!

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

$
0
0

 

I have a app created using VS 2005 with SQL 2005.  I upgrade to VS 2008 but didn't deploy because there were no changes requested.  I got a request last week and made the changes. On my development machine everything worked fine.  I did the release of all the pages and the .dlls so all the upgraded code was there.  Now the user can log in and get to a reporting section but when they go to export the report into excel we get this error

 

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

 

It seems to error using the same connection that the user used to get into the app so I don't know why now its being denied.  I'm using adodb.dll to connect this time.

 

Thank you for any help.  Let me know if I didn't put enough information.

 

 

 


Server error

$
0
0
Something popped up about a handshake error when trying to go to craigslist just wondering what that is

unsupported exception if using sqljdbc41.jar against java 6

$
0
0

According to MS doc http://msdn.microsoft.com/en-US/data/ff928484, sqljdbc41.jar and sqljdbc4.jar should support both java 6 and java 7 while in my testing, there will have unsupported exception if using sqljdbc41.jar against java 6:
: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/microsoft/sqlserver/jdbc/SQLServerXADataSource, offset=6

So is it any wrong with my usage or there is document error in http://msdn.microsoft.com/en-US/data/ff928484? What I'm downloaded is the latest 4.1 drivers file sqljdbc_4.1.5605.100_enu.exe.

Is there anyway I can add provider(MSDASQL) in my SQL instance?

$
0
0

I want to create linked server using ODBC connection and I can not find MSDASQL in my instance. So Is there anyway I can install?

Or other word you can say.. When I'm trying to create linked server on that page > other data source > I can not find odbc option. 

 I'm using SQL Server 2005 9.0.5324. 

No visibility of local SQL Server instance when configuring ODBC data source

$
0
0
I am setting up an app. requiring ODBC access to a SQL Server DB using a Windows Server 2008 R2 OS on a VM, with a local SQL Server 2014 instance.  When configuring either a new user or system ODBC DSN, using the ODBC Driver 11 for SQL Server (version 2014.120.2008.08), the dropdown list of servers is empty.  How do I get it to see the local SQL Server instance?

SQL Server Driver for Linux causes Segmentation Fault

$
0
0

Hello,

I'm using the SQL Server Driver 11.0.1790 on Linux with mod_perl and Apache. While running fine with all my CLI Perl apps I occasionally get Segmentation Faults when using it from within mod_perl applications. Sometimes every other connect to the database segfaults. I've created a core dump and did a stack backtrace:

Loaded symbols for /usr/lib/../lib64/libxml2.so.2
Core was generated by `/usr/sbin/httpd2 -X'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007f8a8aeda803 in __connect_part_two (connection=0x7f8a99c885e0) at SQLConnect.c:1891
#2  0x00007f8a8aedffd6 in SQLDriverConnect (hdbc=0x7f8a99c885e0, hwnd=0x0, conn_str_in=0x7fff1e7369ee "",
    len_conn_str_in=<value optimized="" out="">,
    conn_str_out=0x7fff1e736a80 "DSN=XXXXX;UID=XXX;PWD=XXXXXXXX;WSID=XXXXXXXX;DATABASE=XXXXX;MARS_Connection=Yes;",
    conn_str_out_max=512, ptr_conn_str_out=0x7fff1e736a7e, driver_completion=0) at SQLDriverConnect.c:1530
#3  0x00007f8a8b1458ee in odbc_db_login6 (dbh=0x7f8a99938ca0, imp_dbh=0x7f8a99c8acd0,
    dbname=0x7fff1e736c80 "DSN=XXXXX;MARS_Connection=Yes;UID=XXX;PWD=XXXXXXXX", uid=0x7f8a9996e8b0 "XXX",
    pwd=0x7f8a9996e8d0 "XXXXXXXX", attr=0x7f8a99938c40) at dbdimp.c:942
#4  0x00007f8a8b141822 in XS_DBD__ODBC__db__login (my_perl=<value optimized="" out="">, cv=<value optimized="" out="">) at ./ODBC.xsi:98
#5  0x00007f8a9125b091 in Perl_pp_entersub (my_perl=0x7f8a96274f50) at pp_hot.c:3046
#6  0x00007f8a912595f6 in Perl_runops_standard (my_perl=0x7f8a96274f50) at run.c:41
#7  0x00007f8a911eb755 in Perl_call_sv (my_perl=0x7f8a96274f50, sv=0x7f8a99938bc8, flags=2) at perl.c:2632
#8  0x00007f8a8b791d02 in XS_DBI_dispatch (my_perl=0x7f8a96274f50, cv=0x7f8a98cbbe60) at DBI.xs:3473
#9  0x00007f8a9125b091 in Perl_pp_entersub (my_perl=0x7f8a96274f50) at pp_hot.c:3046
#10 0x00007f8a912595f6 in Perl_runops_standard (my_perl=0x7f8a96274f50) at run.c:41
#11 0x00007f8a911ebab0 in Perl_call_sv (my_perl=0x7f8a96274f50, sv=0x7f8a97db4f68, flags=10) at perl.c:2647
#12 0x00007f8a9154ba31 in modperl_callback (my_perl=0x7f8a96274f50, handler=0x7f8a96230c90, p=0x7f8a96334838, r=0x7f8a963348b0,
    s=0x7f8a962303b0, args=0x7f8a998376a8) at modperl_callback.c:101
#13 0x00007f8a9154c79c in modperl_callback_run_handlers (idx=6, type=4, r=0x7f8a963348b0, c=<value optimized="" out="">, s=0x7f8a962303b0,
    pconf=<value optimized="" out="">, plog=0x0, ptemp=0x0, run_mode=MP_HOOK_RUN_FIRST) at modperl_callback.c:262
#14 0x00007f8a9154cb6f in modperl_callback_per_dir (idx=-1714610816, r=<value optimized="" out="">, run_mode=<value optimized="" out="">)
    at modperl_callback.c:369
#15 0x00007f8a91546b93 in modperl_response_handler_run (r=0x7f8a963348b0) at mod_perl.c:1000
#16 modperl_response_handler (r=0x7f8a963348b0) at mod_perl.c:1039
#17 0x00007f8a95f01e08 in ap_run_handler ()
#18 0x00007f8a95f0226c in ap_invoke_handler ()
#19 0x00007f8a95f0ff00 in ap_process_request ()
#20 0x00007f8a95f0ce98 in ?? ()
#21 0x00007f8a95f08b28 in ap_run_process_connection ()
#22 0x00007f8a95f14e5a in ?? ()
#23 0x00007f8a95f15126 in ?? ()
#24 0x00007f8a95f15903 in ap_mpm_run ()
#25 0x00007f8a95eec9be in main ()</value></value></value></value></value></value></value>

Calling something at NULL obviously doesn't look right…

Can onebody help fixing this issue?

Best regards,

Stephan

Viewing all 4164 articles
Browse latest View live


Latest Images