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

SQLSTATE = 08S02, SMux Provider Physical connection is not usable

$
0
0

A power user keeps getting this error, she's connected via client > database server. The DB server is a VM on ESXi 5.0 with a e1000 network adapter. I read an article of someone suggesting to change the nic to vmxnet3 if the VM is being hosted on ESXi 4, but we are running 5.0. We did not have a network disconnect at the time the user reported this error (14:57). About 4 other power user connect to the DB server and do not get this error (to add to the mistery). Only this one user keeps getting the error. 

Client: Windows 7 64 bit

DB Server: Win2008 R2, SQL 2008 R2 (10.50)

DB server VM on ESXi hypervisor version 5.0.0

Here's the error information:

Error Information

     Error Occurred On: 2014-05-21 14:57:57

     Error Type: Architecture Error

     Error Object Type: ds_psf_find_criteria.uf_save()

     Error Object: nvo_ext_datastore

     Error Message: Find|Criteria|Last Error:

 

SQLSTATE = 08S02

Microsoft SQL Native Client

SMux Provider: Physical connection is not usable [xFFFFFFFF].

 

No changes made to database.

 

UPDATE "dba"."find_criteria" SET "condition" = N'= %L%M%R' WHERE "criteria_id" = 455 AND "find_id" = 301

Product Information

     Product Name: Storer Information Management System

     Product Version: 5.000

     Product Build: 20140401

     Product Mode: Client

Installation Information

     Install Name: SIMSv41

     Install Directory: C:\StorerTV\SIMSv41

User Information

     User Name: cchubbuck

     User Id: 25

     Site Id: 607

     Station Id: 1224

Database Information

     Instance Name: PM-BROADWAYSQL

     Database Name: PARTICIPANTMEDIA

Security Database Information

     Instance Name: PM-BROADWAYSQL

     Database Name: SIMSSECURITY

Language Database Information

     Instance Name: PM-BROADWAYSQL

     Database Name: PARTICIPANTMEDIA

Open Window Information

     Window Name: StorerTV.SIMS.Messaging.MessageHandler [SIMSv41]

     Window Name: Storer Information Management System

     Window Name: General Search - PIVOT

     Window Name: Application Error

System Information

     Computer Name: WIN-0441

     User Id: cchubbuck

     CPU: Pentium

     OS Type: WindowsNT

     OS Version: 6.1.0

     Physical Memory: 4,294,967,295 / 4,294,967,295

     Virtual Memory: 2,147,352,576 / 1,044,283,392

     Screen: 1920 by 1080

     Colors: 4294967296


JDBC connection issue with multiple DBs on same instance

$
0
0
I have two databases on one sql server 2012 instance.  One called 'demotime' the other called 'demotime_dev'.  how ever when I change in my JDBC connection the DB from demotime to demotime_dev.  the connection still remains established with the demotime, is there any known reason to cause this? does both being on the same instance have anything to do with the problem?

SQL Not Like ^ Character

$
0
0

Hello All,

Can you please help me with a SQL Transaction TSQL query.

The rules are these

- the query is a hard coded "LIKE" statement - I dont not have the ability to pass the word NOT.

- I wish to return all records where the first two characters of a field are not PA

Lets say the field "WORD" contains the following...

CARPET

PARTNER

PORTION

SALTS

PARAMETER

FAULT

I want to return all rows where the first two characters are NOT PA. (So exclude Partner and Parameter)

As the application passes everything in the query as a LIKE - I can only use the ^ parameter.

The where clause is hardcoded something along the lines "WHERE WORD LIKE @PARAMETER"

I have tried using a number of variable but cannot work out how to use the ^ character without eliminating records I actually want retrieved.

If I pass '%[^P]_________'  - It removes the rows I want but also removes PORTION which I actually want

If I pass %[^P][^A]_________' It removes all rows and returns nothing

Can someone please aide me with what may pass and only exclude words that start with PA.

Many Thanks


Oracel Link server is case sensitive

$
0
0

Hi,

I had created a Link server for with oracle . it working fine ,only issue is table name are case sensitive.

when i run Select * from temp , it is running directly in oracle but when i try to run this by link server it says temp table don't not exists .

And if i Write Select * from TEMP then it works. Can any one know how to fix this issue case it very difficult to remember table name with case.

Access database using ODBC dsn connection to SQL Server 2012 gets login failed for windows authentication

$
0
0
I'm using a Microsoft Access 2010 database that I created an ODBC dsn connection using a SQL Sever authentication account to a SQL Server 2012 in another domain using the IP address.  The ODBC file tests sucessfully, but when I try to open a table I get "Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. (Microsoft SQL Server, Error: 18452)".  

SSLSocketFactory input to JDBC call

$
0
0

Hi All,

Is there a way to pass the our own implementation of sslsocketFactory while trying to connect to MSSQL using com.microsoft.sqlserver.jdbc.SQLServerDriver driver using {ssl:request} as the argument. 

Due to security constraints our product can only talk TLSv1.2 but the MSSQL seems to use only TLSv1. 

So the handshake is always failing and we are unable to connect to MSSQL, we can make a excuse if the MSSQL is talking only TLSv1, but for this we need to create an isolated socketFactory which can talk any TLS version only to connect to MSSQL.

I wrote a sample program to print ssl handshake (-Djavax.net.debug=ssl) from which i could conclude that MSSQL was talking only TLSv1.

Any help would be of great help.

-THanks in advance

Shreyas

Remotely connect to SQL Server (ODBC) using Windows Authentication

$
0
0

We are trying to connect to our SQL server 2008 via VPN which is the server using Windows Authentication (Domain user)

It works well when we are in the office. When we later connect with VPN it will not work. Do you have any ideas on how to solve it?

When we are connected via VPN we can ping both SQL Server and the Domain Controller, but unable to connect using Windows Authentication ... In contrast, if we log in with regular Database login, it works.

Is there any port we need to open? Is there some setting on the SQL server and / or domain controller that must be done in order to use Windows Authentication from a different subnet?

Thanks in advance!

SQL Connection Pool Management connection String

$
0
0

Hi All,

please recommend to improve and manage database connections connection string

1) Reduce connection pool fragmentation

2)Support additional configurable parameters within the connection string 

3) Implement retry mechanisms and connection pool resets on error.

Current connection string.

<?xml version="1.0" encoding="utf-8" ?>
<sample sampleGroup="Group1" ConnectionStringParameters="Min Pool Size=20;Connection Lifetime=45">
    <sample SampleId="15" SampleName="test" Server="(local)" Database="test" UserName="test123" Password="test123" />
</Tenants>

Thanks,


Naveen| Press Yes if the post is useful.



DB2OLEDB provider to access iSeries from SQL

$
0
0

I am trying to create a Sql Server Linked Server using provider DB2OLEDB to read some iSeries data. I can create the LS, but I get  a "not registered" error, which i think means that the LS is not set up correctly. So now I am using the Data Access Tool to try and test the connections. So in the Data Access Tool, it has a button for Packages and says that I do not have sufficient authority. Is this a step that must be done? 

http://msdn.microsoft.com/en-US/library/ee252429(v=bts.10).aspx

This is the LS for using IBMDA400, how would i translate this to DB2OLEDB?

EXEC master.dbo.sp_addlinkedserver @server = N'IBMDA400_Quality', @srvproduct=N'DB2', @provider=N'IBMDA400', @datasrc=N'Quality'

EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'IBMDA400_Quality',@useself=N'False',@locallogin=NULL,@rmtuser=N'THEBRENDA',@rmtpassword='########'

DB2OLEDB aska about initial catalog, package collection, default schema, default qualifier, and database name. I do not know how to answer those question from the Data Access Tool / Data Source Wizard.

Using OPENROWSET with Microsoft.Office.List.OLEDB.2.0

$
0
0

Is it possible to use OPENROWSET with the Microsoft.Office.List.OLEDB.2.0 provider?

I'm asking because I'm currently using an excel file with a direct connection to a SharePoint list using this provider. I would like to bypass this excel file and import the data directly to SQL Server. (This question is not about other methods to get data from SharePoint lists)

 

This code return the following error:

Cannot set the initialization properties for OLE DB provider "Microsoft.Office.List.OLEDB.2.0" for linked server "(null)".

select

*

from

OPENROWSET(

'Microsoft.Office.List.OLEDB.2.0'

,

'Provider=Microsoft.Office.List.OLEDB.2.0;Data Source="\";ApplicationName=Excel;Version=12.0.0.0'

,

'

<LIST><VIEWGUID>{F6EA4879-A554-4638-As07-9B2F0435447C}</VIEWGUID><LISTNAME>{00196fD6-530C-477D-A26C-B7C0B9B810D5}</LISTNAME><LISTWEB>http://share/sites/VirF/_vti_bin</LISTWEB><LISTSUBWEB></LISTSUBWEB><ROOTFOLDER>/sites/VirF/Lists/Submitted Nominations</ROOTFOLDER></LIST>

'

)

SQL Server2008 work group

$
0
0

Does any one know the database size of SQL Server2008 work group? What's difference between licensed or free edition?

Thanks,

Cant login to a particular SQL instance

$
0
0

We have a couple of SQL servers. We had a UPS failure and the domain contraoller lost power. # of the PC's that were attached to one of the SQL instances are no longer able to see that particualr instance. They can see other servers and instances just not the one they were attached to when the power failure happened. Other computers that were not attached at the time of the power failure are able to attach and run the instance. This appears to be a workstation problem but I cannot seem to find what is causing this problem. Does anyone have any suggestions?

Thanks,

Michael D. Winn

mwinn@ftsius.com

A Transport-level error

$
0
0

Our .net application throws an error when the wireless laptop switches from wireless access point to another inside a building. it seems like SQL is closing the existing connetion without notifying the application which thinks that sqlconnetion is still in OPEN state. why does SQL close a connection without notifying the application? Our programming team does not want to open and close the connection on each transaction because they think it will slow down the application.

Error:

"A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)"


SQL Server Import & Export Wizard - error

$
0
0

Hi All,

Am having a wry time exporting data to a text file, can anyone help?

Thanks

 

Herby G

 

Pre-execute (Error)

Messages

Information 0x402090dc: Data Flow Task 1: The processing of file "AUDJPY.txt" has started.
(SQL Server Import and Export Wizard)

Warning 0x80070005: Data Flow Task 1: Access is denied.
(SQL Server Import and Export Wizard)

Error 0xc020200e: Data Flow Task 1: Cannot open the datafile "AUDJPY.txt".
(SQL Server Import and Export Wizard)

Error 0xc004701a: Data Flow Task 1: component "Destination - AUDJPY_txt" (25) failed the pre-execute phase and returned error code 0xC020200E.
(SQL Server Import and Export Wizard)

need a query

$
0
0

hello

i have a table ,that has a structure and data

ID                 year         month       days            kind

125              1985         01               30                 1

125              1999         05               25                 1

125              1999         05               30                 2

125              1999         05                17                3

126              2001        12                20                 2

126              2010        01                30                 1

126              2010        01                18                 2 

127              2007        08                14                 1

i need a query that:

1- all ID should be displayed

2- For duplicate rows (in The sameyearandmonth)should be displayed only with the highest value

OUTPUT query:

ID                 year         month       days            kind

125              1985         01               30                 1

125              1999         05               30                 2

126              2001        12                20                 2

126              2010        01                30                 1

127              2007        08                14                 1

thanks;


How to delete the duplicate records in a table without promary key

$
0
0
I have a table that contains around 1 million records and there is no promary key or auto number coulums. I need to delete the duplicate records from this table. what is the simple effective way to do this.

ASP timeout value not updating correctly

$
0
0

MS Server 2000

MS SQL Server 2003

Connection timeout not updating correctly.  In Enterprise Manager I updated from 600 to 900 seconds.  I had some connections issues and the solution said to modify the properties of the DB user to grant it 'write' privilege.  It solved the first issue but now it is timing out after 300 seconds.  After searching again I saw something about modifying the timeout for the user.  Could this be the solution and how do you do that.

Classic ASP.  In the code I use:

Server.CreateObject("ADODB.Command")

Thank you in advance.

GROUP BY In SQL server

$
0
0

Dears 

How i can the result like in " Result table" as below.

CASH_IDFK_TOUR_IDCASH_COLLECTEDCASH_TYPECOLLECTION_DATEFK_COLLECTED_BY_ID
61614500966.605/14/2014433
6171450047015/14/2014433
6181460254605/15/2014891

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

Result Table:



excel with DataBase Verification in CodedUI

$
0
0

In coded-UI, I want to parametrize value through Excel sheet, before providing test data for parametrization I want to verify that ,test data in Excel sheet is present in database.

Is there is any way to do the above by executing the coded-UI(vb.net) script?

please do needful

example:

tb1 in excel sheet             tb1 in Database

emp1                                emp1

emp2                                 emp2

for that i have used this query:

 query = "select c.* from emp as c innerjoin(select * from openrowset('microsoft.ACE.OLEDB.12.0','database=E:\excel to db\exceldb.xlsx;hdr=yes','select * from [sheet1$])"

here i am comparing exceldb excel sheet with emp database for checking data in excel is present in db or not

i have refered this link for query : http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=146241

but i am getting error as :

The OLE DB provider "Microsoft.Ace.OLEDB.12.0" for linked server "(null)" reported an error. The provider did not give any information about the error.

Cannot initialize the data source object of OLE DB provider "Microsoft.Ace.OLEDB.12.0" for linked server "(null)"

pls help me to execute

Thanks in advance.

Thanks in advance


ajay

SQL Connection issue

$
0
0
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["modSedationTest_AnswerChoices"].ConnectionString);
            SqlCommand cmd = new SqlCommand("Insert Into NEW_USERS (USERNAME,SCORE,DATE) Values(@name, @score, @date)", con);
            cmd.CommandType = CommandType.Text;
            cmd.Parameters.AddWithValue("@name", txtName.Text);
            cmd.Parameters.AddWithValue("@score", txtScore.Text);
            cmd.Parameters.AddWithValue("@date", txtDate.Text);
            con.Open();
            cmd.ExecuteNonQuery();

The above code is my SQL server connection in Visual Studio. I have created a web page with SQL server authentication as opposed to Windows Authentication since this webpage will be stored on a server and have to be accessed by users from many different computers. The issue I am currently having is when the user submits their information and the code above is executed, I get a Server error which looks like this:

Server Error in '/Sedation_Test' Application.
--------------------------------------------------------------------------------

Login failed for user 'GASTON\SHAREPOINT$'. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'GASTON\SHAREPOINT$'.



 
It seems to me that it is still trying to write to the database using Windows Authentication, but I changed the authentication to SQL server authentication and set up the user and everything. Any thoughts as to why I'm getting this error would be greatly appreciated.


Viewing all 4164 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>