Quantcast
Channel: Forum Getting started with SQL Server
Viewing all 6989 articles
Browse latest View live

Closed Sockets?

$
0
0

I'm trying to transfer data from one table on a DB to another using an application but I keep getting the below error. Is this SQL related or is it down to the application? Does anyone know how to resolve this issue?

tblGec_Stg_Val,0: ODBC function "SQLFetch" reported: SQLSTATE = 08S01: Native Error Code = 0: Msg = [IBM(DataDirect OEM)][ODBC SQL Server Wire Protocol driver]Socket closed.
ODBC function "SQLFetch" reported: SQLSTATE = 08S01: Native Error Code = 0: Msg = [IBM(DataDirect OEM)][ODBC SQL Server Wire Protocol driver]Socket closed.
ODBC function "SQLFetch" reported: SQLSTATE = 08S01: Native Error Code = 0: Msg = [IBM(DataDirect OEM)][ODBC SQL Server Wire Protocol driver]Socket closed. (CC_OdbcDBStatement::dbsFetch, file CC_OdbcDBStatement.cpp, line 1,594)
ODBC function "SQLEndTran(SQL_ROLLBACK)" reported: SQLSTATE = HY000: Native Error Code = 0: Msg = [IBM(DataDirect OEM)][ODBC SQL Server Wire Protocol driver]General error. NULL UtilityStmt (CC_OdbcConnection::rollback, file CC_OdbcConnection.cpp, line 1,237)
ODBC function "SQLFreeHandle(SQL_HANDLE_STMT)" reported: SQLSTATE = 08S01: Native Error Code = 0: Msg = [IBM(DataDirect OEM)][ODBC SQL Server Wire Protocol driver]Socket closed. (CC_OdbcDBStatement::~CC_OdbcDBStatement, file CC_OdbcDBStatement.cpp, line 223)
ODBC function "SQLEndTran(SQL_ROLLBACK)" reported: SQLSTATE = HY000: Native Error Code = 0: Msg = [IBM(DataDirect OEM)][ODBC SQL Server Wire Protocol driver]General error. NULL UtilityStmt (CC_OdbcConnection::rollback, file CC_OdbcConnection.cpp, line 1,237) 


Installing and configuring SQL server 2012 network options

$
0
0

Hello

I'm hoping someone here can help as i'm investigating deploying always on availability groups.

I have two out standing questions.

  1. what network protocol is used for the Availability group synchronization (needed to check that our optimisation tools can work with it ) I believe it's just standard TCP/IP but if not can some one confirm.
  2. can the SQL 2012 share a dark network with exchange?

I've been searching online but can't find the a solution.

thanks in advance

sql server installation problem

$
0
0
I'm experiencing difficulties installing sql server on my laptop. I always get "compactibility" related issues

Order by in SQL Server

$
0
0

I have data in table as below.My requirement is -->result should come in descending menu order i.e highest menu order should come first and if two records have same Menu order then the highest LastUpdatedDateTime   in those 2 records should come first

LastUpdatedDateTime         MenuOrder
2015-04-08 05:37:04.513       6
2015-04-08 05:37:10.783       1

Help me in writing the query for the same.

i tried like select LastUpdatedDateTime,MenuOrder from Table1 order by MenuOrder,LastUpdatedDateTime desc --->but in the result lowset LastUpdatedDateTime is coming first if Menuorder is duplicated

Automated Backup Error..thru maintenance plan

$
0
0

Friends,

Server - Windows Server 2003 SE

DB - Sql Server 2008

I have created a maintenance plan for my daily automated backup thru wizard..but when i try to execute..i am getting the below error..what might be the reason.? i dont thing the integrated services is must for automated backup...

Date        4/8/2015 11:44:37 AM
Log        Job History (DailyDBbackup.Subplan_1)

Step ID        1
Server        PRODDB
Job Name        DailyDBbackup.Subplan_1
Step Name        Subplan_1
Duration        00:00:00
Sql Severity        0
Sql Message ID        0
Operator Emailed        
Operator Net sent        
Operator Paged        
Retries Attempted        0

Message
Executed as user: PRODDB\Administrator. Microsoft (R) SQL Server Execute Package Utility  Version 10.0.1600.22 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    The SQL Server Execute Package Utility requires Integration Services to be installed by one of these editions of SQL Server 2008: Standard, Enterprise, Developer, or Evaluation. To install Integration Services, run SQL Server Setup and select Integration Services.  The package execution failed.  The step failed.

thanks

how to truncate all the tables of my database

$
0
0
hi guys
I am using SQL Server 2012 , i need to delete all  the data present in my database .I mean i want to truncate all the tables in my database , so please suggest me the easiest way .

How to replace a cursor logic for processing each item individually?

$
0
0
I have a customer table where I take each record at a time and process them using another stored procedure called processCustomers. How can  I remove this cursor and still process each item from customer table individually? The problem here is processCustomers can only process one customer ID at a time. How can I still call that SP without using a cursor? Please advice.

mayooran99

Untrusted domain login error

$
0
0

This is an aggravating problem unsolvable after 2 days. I have a similar setup in my office that works correctly (except my 2 machines are windows 7 ultimate). This is the setup: 1. 2 machines on local network, both windows 7 home premium, no domain controller 2. One machine has sql server express 2012 (server) 3. The other machine has sql server and SSMS 2012 installed (client) 4. Firewall setup for sql server remote access, TCP, UDP, sqlserver, sqlbrowser.

I can connect from client with SSMS 2012 to the server using sql server authentication, but the same credentials do not work in my windows application.

Here is one of the connection strings I've tried in the application:

Server=myServer\sqlexpress;Initial Catalog=myDatabase;Integrated Security=SSPI;User Id=someName;Password=somePassword;

I've also removed Integrated Security=SSPI and this had no effect on the error. I am using Integrated Security=SSPI on my office setup and it works. The user id is an account on the server system, and has been added as a login on sql server, and is set as owner of the myDatabase. These credentials work in SSMS but not in my app. I am unable to get around this "untrusted domain" error, and don't have the group policy editor on home premium to experiment with. This is the sql.log error:

Date,Source,Severity,Message 04/08/2015 17:13:50,Logon,Unknown,Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. [CLIENT: 192.168.0.5] 04/08/2015 17:13:50,Logon,Unknown,Error: 18452 Severity: 14 State: 1. 04/08/2015 17:13:50,Logon,Unknown,SSPI handshake failed with error code 0x8009030c state 14 while establishing a connection with integrated security; the connection has been closed. Reason: AcceptSecurityContext failed. The Windows error code indicates the cause of failure. The logon attempt failed [CLIENT: 192.168.0.5]


Fetch Table name and field name from a given entry

$
0
0

Hi ,

i know the entry which is present in the database .But i don't know the table name and field name which has that entry .

i have to fetch the table name and field name from a given entry .

Can anyone suggest me how will  i fetch the table name and field name for a given entry .

thanks in advance.

Best Way To Get Back In The Game

$
0
0

Hello All,

I am at a point where I need to re-train myself to get marketable again.  I have been out of the SQL Server arena since 2009.  At that point I was supporting a large SQL Server 2000 environment.  I have been a DBA my entire career so I know I can come up to speed quickly.    

Can anyone point me in the right direction for training alternatives, either online or at a facility.  I live in West Palm Beach.  I feel at this point I really need to get a Microsoft Certification.  Any suggestions would be appreciated.  Thanks.

How to show sum() without sum() = 0 from Group

$
0
0

Hi expert,

  I use "group by" clause to get summary value for the item, but result has lot summary value = 0 records , How to skip them ?

Thanks 


James Liang

Performance counters for SQL database

$
0
0
I have this need to carry out a performance test on our SQL database. What are the counters that I need to check and are there any tools that would assist me on this?

mayooran99

Evaluation period has expired SQL 2014

$
0
0

Today we have started getting this error when we try to open SQL Server 2014 Management Studio.The install was done using the correct media with the appropriate product key.

I have:

  • Gone through the process of an Edition Upgrade on all my Instances and Shared Features
  • Uninstalled Shared Features and reinstalled.
  • Tried editing the registry key, CommonFiles from 1 to 3 underHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\120\ConfigurationState (120 as this is an install of SQL 2014). I have also tried switching this back to 1 and re-running the Upgrade.

I have rebooted the server several times but I am still not able to open the Management Studio.

I notice this was an issue in 2008 but I cannot find any fixes for 2014.

Thanks.

How do I select the items based on their adjacent equality?

$
0
0
In the below table,

    DECLARE @t1 TABLE(id INT,NAME VARCHAR(MAX))
    INSERT INTO @t1 VALUES(1,'test')
    INSERT INTO @t1 VALUES(2,'test')
    INSERT INTO @t1 VALUES(3,'best')
    INSERT INTO @t1 VALUES(4,'rest')
    INSERT INTO @t1 VALUES(5,'rest')

how can I select the records that have equals values coming adjacently? That is I am running an SQL job. It should take the adjacent equal value  count for its processing. In the below table, first time the job is running it should take count as 2 the 2nd time job is running it should be 1. Third time it should be 2. What is the query that will fetch the cont of equal records for name column? In case no equal columns it should be 1. Please help

mayooran99

32 bit version on a 64 bit OS

$
0
0

Hi,

I have been using SQL server now for a year (self taught). I have recently been given a new laptop by work and advised to install my own SQL Server from my MSDN subscription.

I have however unwittingly installed a 32 bit version of SQL Server 2014 on my 64 bit machine. After noticing, I have tried to uninstall it but I get the message "the operating system on this computer does not meet the minimum requirements for sql server 2014".

I have been advised that the only way now to remove it from my laptop is to get it completely re-built again.

Can anyone suggest an answer that could avoid me having to re-build my laptop and allow me to simply uninstall? It baffles me that it would allow me to install an incorrect version yet won't allow an uninstall.

I have tried changing the compatibility settings of the setup.exe in the bootstrap file and had no luck.

Thanks


SQL Server 2008 R2 Support

$
0
0

I've looked at this table and just want confirmation.

"https://support.microsoft.com/en-us/lifecycle?C2=1044"

What are the Extended Support end dates For SQL Server 2008 R2 Standard SP1 and SP3.

If I set VARCHAR size to max will it allocate maximum memory?

$
0
0
I have the data type for a variable as VARCHAR(MAX). I assumed that this will be a growing memory and that this won't allocate the full quota. For example if I set the value of this variable to 'a', it will only allocate one byte and not the whole memory. Is my assumption correct?

mayooran99

SQL SERVER 2012 and Visual Basic 2010

$
0
0

Can an SQL Server 2012 database function when used with a Visual Basic 2010 Program?

Milt


sirmilt

Need Help on SQL Server 2008r2 Transnational replication error (21854)‏

$
0
0

Could not add new article to publication 'productiondb' because of active schema change activities or a snapshot is being generated.
Changed database context to 'productiondb'. (Microsoft SQL Server, Error: 21854)

Who updated the Row in Table

$
0
0

Hi Experts,

I wants to enable tracking for one of the table in my database.Tracking details must contains Time,new values ,old values and more importantly who/when made the changes.

Other than Triggers do we have any other way to track those changes.

Suggestions are highly appreciated.

Thanks,

Nandhu

 

Viewing all 6989 articles
Browse latest View live


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