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

Sql server Login SSPI handshake failed

$
0
0

hi Team,

we are continuously getting below error message in my sql server error log, what is the cause of this error message happen and how we can resolve this  issue.

error message:

[Logon     SSPI handshake failed with error code 0x8009030c, state 14 while establishing a connection with inte

2014-03-18 04:00:16.600 Logon      Error: 17806,]

hello Teams,

please give the answer ASAP.


SQL Server 2008 R2 linked server connection problem to Oracle 11g

$
0
0

I have a SQL Server 2008 R2 64-Bit installed on Windows Server 2008 R2. Want to create a linked server to an Oracle 11g installation (11.2.0.1.0, 64-Bit).

I installed Oracle client software and ODAC software (each 64-Bit), but OraOLEDB.Oracle provider does not show up in list of providers.

Used the following links and others, but after hours researching could not come up with a solution:

http://www.mssqltips.com/sqlservertip/1433/how-to-setup-linked-servers-for-sql-server-and-oracle-64-bit-client/

http://social.msdn.microsoft.com/Forums/en-GB/sqldatabaseengine/thread/7bfb72df-a682-4183-ad91-4a0a460fc7dc

Please provide feedback how to get this up and running. Thx.

Deadlock errors in SQL Server 2008 Web edition

$
0
0

We recently upgraded from SQL Server 2008 Express to SQL Server 2008 Web edition.  We also upgraded to a new version of the Absolute Banner Manager third party tool -http://www.xigla.com/abannermanager/

We had been running a previous version of this third party tool under SQL Server Express with no problems.

Under the new version of the banner tool we started seeing a lot of deadlock errors.  The banner tool vendor kept insisting that their product was not the problem.

Eventually, the vendor sent us a fix that solved the problem.  In their fix, they put in the (nolock) table hint in all of their read only select statements.

From all of the research I have been doing, I find information that says that SQL Server is supposed to automatically manage locks and prevent deadlocks from occurring.

My question is this, since it appears that the (nolock) hint solves the problem, does this mean that the vendor has designed their database incorrectly somewhere along the way?  Or does this mean that I don't have a database attribute or parameter set correctly somewhere in SQL Management Studio?

Thanks,
Gary


Gary Frickey

SQLServer Error: 258, Unable to complete login process due to delay in login response [SQLSTATE 08001]

$
0
0

This is my first time submitting a question to this forum, so if I am in the wrong place please let me know.

I am having a problem with one of my SQL 2008 (10.0.5826) servers. This is a virtual SQL server which has only been in production for the past 3 weeks.  It is a very strange problem for me because I never seen anything like this.  I am not sure if this is a potential SQL issue or ISS issue or application issue. I have posted some of the error messages below.

SQL Server Log.

Message
Error: 18056, Severity: 20, State: 23.

SQL Server Agent Log.

Message
[298] SQLServer Error: 258, Unable to complete login process due to delay in login response [SQLSTATE 08001]

Message
[165] ODBC Error: 0, Login timeout expired [SQLSTATE HYT00]

Message
[298] SQLServer Error: 258, Shared Memory Provider: Timeout error [258]. [SQLSTATE 08001]


This is from the windows application log.

Application has encountered an unhandled exception.
------------------------------------------------------------
Exception:
   Type:    System.Exception
   Source:  SII.ServerName.Data
   Target:  System.String GetConnectionString(SII.ServerName.Data.DatabaseConnection)
   Message: Unable to determine database connection.
   ------------------------------------------------------------
   Stack trace:
   at SII.ServerName.Data.DatabaseConnector.GetConnectionString(DatabaseConnection databaseConnection)
   at SII.ServerName.Web.Services.WebServices.Global.Application_AuthenticateRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Application has encountered an unhandled exception.
------------------------------------------------------------
Exception:
   Type:    System.Exception
   Source:  SII.ServerName.Data
   Target:  System.String GetConnectionString(SII.ServerName.Data.DatabaseConnection)
   Message: Unable to determine database connection.
   ------------------------------------------------------------
   Stack trace:
   at SII.ServerName.Data.DatabaseConnector.GetConnectionString(DatabaseConnection databaseConnection)
   at SII.ServerName.Web.Services.WebServices.Global.Application_AuthenticateRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 3/18/2014 12:37:54 PM 
Event time (UTC): 3/18/2014 4:37:54 PM 
Event ID: 74be468c1bcf4606a2d045099d2feb79 
Event sequence: 77 
Event occurrence: 76 
Event detail code: 0 
 

 
 



Trailing spaces in strings truncated?

$
0
0

If I have a SQL Statement:

SELECT LEN('123456789       ')

it returns 9 (even though their are more than 9 characters)

Likewise if have a SQL Statement:

SELECT column1 FROM Table1 WHERE column1 = '123456789     '

it will return all rows where the first 9 characters match and any trailing 'spaces'. As in:

'123456789'

'123456789 '

'123456789  '

etc.

Can someone explain why this happens? It doesn't seem correct to me.

Thank you,

Michael


Mike Morgan

ODBC SQL connection failed after numerous operations

$
0
0

We have an access project that that uses linked tables via the SQL Server ODBC connector (I've tried both SQL Server and SQL Server Native Client) which works fine most of the time. There is one particular area that sometimes throws up the following error:

It then throws up an SQL Server login prompt but ultimately it basically throws the client computer off the network, and it can take 30 mins or more and a number of reboots to get the client computer back on the network.

I've been unable to isolate the query that causes the error, but it only seems to happen when larger numbers of records are being processed.

Named Pipes and TCP/IP are both enabled. As mentioned earlier, I've tried the SQL Server and SQL Server Native Client drivers with no improvement.

This has only become and issue after upgrading from a .adp project with a SQL Server backend to .accdb using linked tables and ODBC to plug into the SQL server.

I've checked, and double checked that I'm closing my connections in my code, but is it possible that it's not releasing old connections, eventually running out of available connections? I'm completely stumped.

I'm using MS Access 2013, SQL Server 2008 R2 (SP1) which lives on a SBS Server 2011 box


Linked Server to Oracle Slow displaying Views, Select duplicates columns

$
0
0

When I click on the linked server in Mgmt Studio and then Catalogs Default,  it takes a couple minutes to list the 50 views.

When I R Click on the view and pick Script View as Select to new Query window,  I get 4 copies of all the columns in the select.  It takes about 3-4 minutes to create the select.

SELECT [PersonID]
      ,[PID]
      ,[PID]
      ,[PID]
      ,[PID]
      ,[EmployeeNumber]
      ,[EmployeeNumber]
      ,[EmployeeNumber]
      ,[EmployeeNumber]

SQL 2012, Oracle r12

Linked server provider  provider=N'OraOLEDB.Oracle'

Seems way slow.  My linked servers to db2 work fine.

Instead of Insert trigger for updatable View.

$
0
0

Hello,

I have a View that is a Union of several structurally identical tables.

COL1, COL2, COL3

SELECT 'A' As Attrib, * from A
UNION ALL
SELECT 'B' As Attrib, * from B
UNION ALL
SELECT 'C' As Attrib, * from C

So the Attrib column in the view is equal to the table that the data comes from.

I want an INSTEAD OF INSERT and INSTEAD OF UPDATE trigger to update the underlying table.

If I do the following query.

INSERT INTO MyView_v ('Attrib', 'COL1', 'COL2', COL3') VALUES ('A', 'One', 'Two' , "Three') 

would insert a record into Table A.  Likewise if I do:

INSERT INTO MyView_v ('Attrib', 'COL1', 'COL2', COL3') VALUES ('C', 'One', 'Two' , "Three') 

The insert would take place in Table C.

Essentially I want to dynamically select the target table based on the value of the Attrib Column.

Any SQL Gurus out there that can help me out?

Thanks

Bill


GIVE ME SOLUTION ERROR REGARDING SQL SERVER FOR CONNECT TO DATABASE ERROR AS FOLLOW

$
0
0
SqlException (0x80131904): An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

[Microsoft][ODBC SQL Server Driver][SQL Server]

$
0
0

I have a stored procedure named windog_ReadSpecifications in a database called AssetDB and schema dbo, one of my users is getting the following errors when she try's to use a program which executes the stored procedure 

"Error description:COM error message: [Microsoft][ODBC SQL Server Driver][SQL Server]The EXECUTE permission was denied on the object 'windog_ReadSpecifications', database 'AssetDB', schema 'dbo'."

I am not sure why she is getting this error because she is a user who has all permissions required to execute the stored procedure . Any help on how to approach this is highly appreciated. 

thanks. 

Just curious which answer in this scenario is correct and why ?

$
0
0

You administer a Microsoft SQL Server 2012 server. One of the databases on the server supports a highly active OLTP application. Users report abnormally long wait times when they submit data into the application. You need to gather blocking data over an extended period of time. You also need to ensure minimum impact to server performance. What should you do?

A. Run the DBCC TRACEON 1222 command from a query window and review the SQL Server event log.

B. Use sp_configure to set a value for blocked process threshold. Create an extended event session.

Which one of the 2 is correct and why please?

Connecting Microsoft Access with Primavera via VBA

$
0
0

I'm Primavera expert and Microsoft Access as well

I want to know where to start to learn how can I establish a connection or session with Primavera from Microsoft Access via VBA.

Thank you

Emad

OLE DB provider "SQLNCLI10" for linked server "XXX" returned message "Unspecified error"

$
0
0

Hi,

I am trying to access data from Linked Server. I have added the other server as linked server and also I am able to access tables from queries. But when I try to access tables from Stored Proc. I get the above error. Can any one help me on this.

Both the servers are  SQL Server 2008 R2

Thanks

Vikram

View, dm_os_volume_stats, missing after Service Pack 2 install

$
0
0
I installed Service Pack 2 for SQL Server 2008 R2 Standard Edition.  No errors were encountered.  However I expected to find a new view called, dm_os_volume_stats.  I do not see this view.  I have patched 4 instances and none of those instances have this view.  Please advise.

SQL Server ODBC drivers for Solaris

$
0
0

I am looking for an ODBC driver to let a Solaris box talk to a SQL Server 2012 db, I am hoping that someone will be able to put me in the right direction.

Thanks,

CB


How to repair .mdf file?

$
0
0
My sql databases in SQL Server 2014 has the status "suspend" as I saw in SQL Management Studio. I can't restore to serviceable condition sql databases through standard procedures. I need to restore .mdf file.

SQL server -2012 ( Express edition) network interface error: 26

$
0
0

 Hi

Could you please help me to resolve the issue the error :26  while establishing connection with SQL server-2012 ( Express edition) in my local machine. I have installed and configure SQL Server -2012 (Express edition). I have thoroughly checked and configured TCP/IP to make Enable and insert IP address and port No. 1433 and accordingly set-up new roles  in Firewall for both TCP/IP, programme option to recognize to access SQL server/programme to Firewall.

I have also configured SQL management studio  Security option i.e New Logins> General > Server Roles> User mapping> as attached screen shoot with this mail.

I have also made enable (Yes) on ICPM through Firewall properties as using  windows -8(standard version), but still SQL server isn't enable to connect. I hereby enclosed the error screen shoot. I am testing it ACT ( application compatibility toolkit) prior configuring this server to SharePoint-2013 or 2010 farm server.

You co-operation in this regard be appreciated.

Regard

AzadSQL Studio log in propertise ACT


Azadur Sarker 6, Seaford street Stoke-on-Trent, ST4 2EU

Removing the need for dbo. prefix

$
0
0

Hi,

I'm pretty new to SQL server and although my problem is pretty common from what I've read so far, no answer has popped up.

I've migrated our administration software solution from MDB structure to SQL structure. This has proven useful and has been working flawlessly for some time. Now a new piece of software we're using is causing me some headache. It also has the option to use either MDB or SQL type databases. It accesses and appends the same data that the administration software does so it is set to SQL mode. It gives me an error 'invalid object name' when I try to access the data. the table it states in the error is present but it has the prefix dbo. in front of it. That has to be the cause of the problem because if I copy the database to MDB format, the dbo prefix is gone and the software package can read the tables normally.

I've been reading some stuff about schemas but I'm left with more questions than answers. I'll catch up on some reading on schemas, users and roles as soon as I fix this issue so can someone please tell me: How do I make this so that the dbo. prefix doesn't need to be added because I can't alter this behavior from within the new program.

Thanks!




ODBC redhat linux with mssql

$
0
0

Hello

I have a redhat 6 linux and i want to use it to host a php CMS with a mssql database on another server(since mssql is mandatory)


I ve been installing over and over Microsoft® ODBC Driver 11 for SQL Server® - RedHat Linux but it never give me the option to choose the mssql database when i m installing my CMS.

What i m missing ?

Here are the instructions i have been following : http://www.microsoft.com/en-us/download/details.aspx?id=36437

CommandType text or storedprocedure

$
0
0

Hi

In my Windows Form application I may need to create a simple table in an existing SQL database if it does not already exist.

That table will hold a single record only

Once that record has been created it will only rarely need to be updated. I will only need to read the record as a simple "select *" without a need to set relationship to other tables in the database

I plan to use ADO.NET to read and write data to the table.

As I need to create this table from within my application and it will only contain a single record and be rarely modified I am considering using CommandType of text and passing the query as a CommandText from my application ("select * from ...","update..." etc). In addition to the size of the data another reasoning for doing this is it will also removes the need to create stored procedures in the database for the select/insert/update.

Any thoughts as to why this may not be a good idea and why I should look to create stored procedures?

Many thanks in advance

Viewing all 4164 articles
Browse latest View live


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