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

Can't connect to SQL server

$
0
0

Hi, 

Just installed a new (second) instance of SQL2008R2, all went fine and I can connect to the instance locally no problems. 

I ran this bit of SQL to determine the ports it was listening on and added new Inbound rules for the instance 

USE master
GO
xp_readerrorlog 0, 1, N'Server is listening on'
GO

In SQL server config manager I have "Shared Memory" and "TCP/IP" protocols enabled, everyting is basically the same as the pre-existing instance which I can connect to.  The SQL browser is running.   My domain account is a sysadmin in the security tab. 

But I get this error when trying to connect from SSMS on my laptop. 

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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)

The original instance was just single part e.g. server, this instance is named and is called server\instance. 

There is nothing in the SQL log. 

Any ideas? 

Thanks


Msg 4406, Level 16, State 1, Line 1 Update or insert of view or function failed

$
0
0

I am trying to run an update query within SQL table where a field (condition) is updated based on part# (part) where the field "company" does not = a parameter (PDC) is updating the same field in the same table with a different parameter, the field"company" = PDC.  I received the ERROR   "Msg 4406, Level 16, State 1, Line 1"  "Update or insert of view or function 'Table1' failed because it contains a derived or constant field." How do I fix this?

Code below...

UpdateTable1

SetCondition=(SelectMax(t2.Condition)ASCondition FROMTable1 t1

innerjoin Table1 t2

ont2.Part=t1.Part

wheret1.company='PDC'

ANDt2.company!='PDC'

ANDltrim(rtrim(t1.TruckFamily))=ltrim(rtrim(t2.TruckFamily))

ANDltrim(rtrim(t1.Symptom))=ltrim(rtrim(t2.Symptom))

ANDltrim(rtrim(t1.condition))!=ltrim(rtrim(t2.condition)))

What is required to be installed in order to access SQL Server with a DRDA Client?

$
0
0

Have SQL Server installed and have a requirement to setup and configure the AS DRDA Listener for SQL Server.

Have not done this install/configuration before and would like to know what links on Microsoft that would provide insight to the installation and the requirements for gaining access to SQL Server via a DRDA Client.

Error 26 & Error 53 on SQL Access

$
0
0

Hello,

Names Pipes is Enabled

\\.\pipe\MSSQL$SRRSCPC\sql\query

TCP/IP Enabled*

Port 1433

No Network Firewall

Windows Firewall opened by the rules below

but still I cannot access the database from some servers using TCP/IP or Names Pipes

I think I am missing

something from the SQL Configuration but not sure...

I created the Inbound Rules to allow access through port 1433

The access is okay from some servers and does not work from some other servers

Server1 & 11 could access Server A1

Server2 could not access Server A1

Any suggestions?

Thanks,

Dom


System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager



System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager

how to fix the error Oxc002f210: when trying to import data from Oracle from SQL Server 2014

$
0
0

When we were in SQL Server 2012, I had no problem import data from Oracle using the SQL Server Import and Export Wizard.

Now we have SQL Server 2014, I have been trying to import data from Oracle using Data source:

Microsoft OLE DB Provider for Oracle, and I have the following error:

Operation stopped...

- Initializing Data Flow Task (Success)

- Initializing Connections (Success)

- Setting SQL Command (Success)

- Setting Source Connection (Warning)
Messages
Warning 0x80202066: Source - RACE_REF [1]: Cannot retrieve the column code page info from the OLE DB provider.  If the component supports the "DefaultCodePage" property, the code page from that property will be used.  Change the value of the property if the current string code page values are incorrect.  If the component does not support the property, the code page from the component's locale ID will be used.
 (SQL Server Import and Export Wizard)

- Setting Destination Connection (Success)

- Validating (Success)

- Prepare for Execute (Stopped)

- Pre-execute (Stopped)

- Executing (Error)
Messages
Error 0xc002f210: Preparation SQL Task 1: Executing the query "CREATE TABLE "RACE_REF" (
"RACE" VARCHAR2(2) NOT ..." failed with the following error: "ORA-00955: name is already used by an existing object
". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
 (SQL Server Import and Export Wizard)

- Copying to "RACE_REF" (Stopped)

- Post-execute (Stopped)

Could you please help me to fix this error?

Thanks,

Sally

What exactly is thread?

$
0
0

Good Morning Experts,

What exactly is a thread in SQL Server?


Kiran

how to solve constraint failed. unhandle exception

$
0
0
I was opening a program in my pc for me to register my students in examination and the program failed to open correctly when I got this error message. Constraint failed. Unhandle exception has occurred. SQLite (0x80004005) SQLite Exception. Please tell me how to solve this problem, so as to enable me register my students for the examination. Please help me out.

My pc is hp window 7

Accessing sql 2014 Instances: confusing

$
0
0

Normally sql server listens on port 1433. Suppose I additionally installed another sql instance and opened firewall port 1434 (for the sql server browser).  Can I refer to the instance as

<servername>\instancename  

in SSMS and access the instance? (In other words, I thought that the sql server browser would take any  <servername>\instancename  reference and route it to the proper instance. So I don't need to enter port numbers for the instance, which I believe can by dynamic,) Or is there more to this story?

TIA,

edm2


regarding sqlserver

$
0
0

Hi,

I have one column date having date like '201401' but I need to change that 01-2014(mm-yyyy) format

please help me

SQL Server 2014 will not complete install on Windows 10

$
0
0

I have been trying to install SQL Server 2014 on Windows 10 and it hangs at the last of the install with a Prerequisite Error.

I have search through internet for suggestions and tried most to no avail.

I have reset the computer on Windows 10 several times to where Windows 10 is the only software on it and tried installing SQL Server 2014 Express again to no avail.

I have a HP Touchsmart PC IQ 846

Processor Intel Core(TM)2 Duo Cpu P7350 @ 2.00GHz

Ram 4.00 GB

64 bit operating system, x64-based processor

Windows 10 Home version 1511

OS Build 10586.36

It hangs at Installation Progress  SqlEngineDBStartConfigAction_install_configrc_Cpu64

TITLE: Microsoft SQL Server 2014 Setup
------------------------------
The following error has occurred:
Could not find the Database Engine startup handle.
For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0xD15B4EB2%25400x4BDAF9BA%25401306%254025
------------------------------
BUTTONS:
OK
------------------------------

SQL Server 2014 Uninstallation Issues

$
0
0

Hello,


I'm trying to completely remove SQL Server 2014 from my computer.  I managed to uninstall most of the components from the programs list except for Distributed Replay Controller and Setup Support Files which keep throwing the following two errors:

TITLE: Microsoft SQL Server 2014 Setup
------------------------------

The following error has occurred:

Object reference not set to an instance of an object.

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.4100.1&EvtType=0x2CA48D5A%25400x44A889F9

------------------------------
BUTTONS:

OK
------------------------------




TITLE: Microsoft SQL Server 2014 Setup
------------------------------

The following error has occurred:

There was an error attempting to remove the configuration of the product which prevents any other action from occuring.  The current configuration of the product is being cancelled as a result.

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.4100.1&EvtType=0xDF039760%25401201%25401

------------------------------
BUTTONS:

OK
------------------------------

Here is the complete log, if necessary:

Overall summary:
  Final result:                  Failed: see details below
  Exit code (Decimal):           -2147467261
  Start time:                    2016-01-09 14:54:44
  End time:                      2016-01-09 14:57:28
  Requested action:              Uninstall

Setup completed with required actions for features.
Troubleshooting information for those features:
  Next step for DREPLAY_CTLR:    Use the following information to resolve the error, and then, try to uninstall this feature again.
  Next step for ComponentUpdate: Use the following information to resolve the error, and then, try to uninstall this feature again.


Machine Properties:
  Machine name:                  THEHOLYMOSES
  Machine processor count:       4
  OS version:                    Windows 7
  OS service pack:               Service Pack 1
  OS region:                     United States
  OS language:                   English (United States)
  OS architecture:               x64
  Process architecture:          64 Bit
  OS clustered:                  No

Product features discovered:
  Product              Instance             Instance ID                    Feature                                  Language             Edition              Version         Clustered  Configured
  SQL Server 2012                                                          Management Tools - Basic                 1033                 Express Edition      11.3.6020.0     No         Yes       
  SQL Server 2012                                                          LocalDB                                  1033                 Express Edition      11.3.6020.0     No         Yes       

Package properties:
  Description:                   Microsoft SQL Server 2014
  ProductName:                   SQL Server 2014
  Type:                          RTM
  Version:                       12
  SPLevel:                       0
  Installation edition:          

User Input Settings:
  ACTION:                        Uninstall
  CONFIGURATIONFILE:             C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20160109_145443\ConfigurationFile.ini
  ENU:                           true
  FEATURES:                      DREPLAY_CTLR
  HELP:                          false
  IACCEPTSQLSERVERLICENSETERMS:  false
  INDICATEPROGRESS:              false
  INSTANCEID:                    <empty>
  INSTANCENAME:                  <empty>
  QUIET:                         false
  QUIETSIMPLE:                   false
  UIMODE:                        Normal
  X86:                           false

  Configuration file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20160109_145443\ConfigurationFile.ini

Detailed results:
  Feature:                       Distributed Replay Controller
  Status:                        Failed: see logs for details
  Reason for failure:            An error occurred during the setup process of the feature.
  Next Step:                     Use the following information to resolve the error, and then, try to uninstall this feature again.
  Component name:                SQL Server Distributed Replay Controller
  Component error code:          25012
  Component log file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20160109_145443\sql_dreplay_controller_Cpu64_1.log
  Error description:             There was an error attempting to remove the configuration of the product which prevents any other action from occuring.  The current configuration of the product is being cancelled as a result.
  Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.4100.1&EvtType=sql_dreplay_controller.msi%40Sqlmsirc_NotifyFeatureStates_64%4025012
  Component name:                SQL Server Distributed Replay Controller
  Component error code:          -2147467261
  Error description:             Object reference not set to an instance of an object.
  Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.4100.1&EvtType=0x2CA48D5A%400x44A889F9&EvtType=0x2CA48D5A%400x44A889F9

  Feature:                       Setup Support Files
  Status:                        Failed: see logs for details
  Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
  Next Step:                     Use the following information to resolve the error, and then, try to uninstall this feature again.
  Component name:                SQL Server Distributed Replay Controller
  Component error code:          25012
  Component log file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20160109_145443\sql_dreplay_controller_Cpu64_1.log
  Error description:             There was an error attempting to remove the configuration of the product which prevents any other action from occuring.  The current configuration of the product is being cancelled as a result.
  Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.4100.1&EvtType=sql_dreplay_controller.msi%40Sqlmsirc_NotifyFeatureStates_64%4025012
  Component name:                SQL Server Distributed Replay Controller
  Component error code:          -2147467261
  Error description:             Object reference not set to an instance of an object.
  Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.4100.1&EvtType=0x2CA48D5A%400x44A889F9&EvtType=0x2CA48D5A%400x44A889F9

Rules with failures:

Global rules:

There are no scenario-specific rules.

Rules report file:               C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20160109_145443\SystemConfigurationCheck_Report.htm

Any ideas what the problem is?

Month End Summary Calculation in T-SQL

$
0
0

Hi,

I have the following requirements, which I am unable to solve for as of now. Can someone please help.

Scenario

In Nov Month end I had to positions for a client as shown below, where the shares were split up between 2 isin/reg combination hence the allocation was 50/50 for both mapping id.


Nov Data
Mapping IDISINRegister IDClient IDSharesPrice Value
ID 1ISIN 1Reg 1Cl 1501005000
ID 2ISIN 2Reg 2Cl 2501005000

In Dec Data, I got an extra isin/reg combination for the same client and the shares now split as shown below.

Dec Data
Mapping IDISINRegister IDClient IDSharesPrice Value
ID 1ISIN 1Reg 1Cl 1501005000
ID 2ISIN 2Reg 2Cl 2251002500
ID 3ISIN 3Reg 3Cl 325501250

How do I get a final table which will include the combination of both the data and give me the below o/p.

Final Data
Mapping IDISINRegister IDClient IDSharesPrice Value
ID 1ISIN 1Reg 1Cl 110010010000
ID 2ISIN 2Reg 2Cl 2751007500
ID 3ISIN 3Reg 3Cl 325501250



Server not found - connecting to server

$
0
0

I just installed sql 2012 express on my laptop and it seemed to have installed without issue. When I try to connect to server in management studio I get an error 'server not found - make sure instance name is correct' My PC name is NAUSHI-PC and that's what I am using to connect. When I start the service in configuration manager - it says 'no items found' . protocols are enabled.

Any help will be appreciated.

I want to remove special characters from an array field using SQL Query.

$
0
0
SELECT
  dbo.ROOTCAUSEM1.ID,
  convert(char(4000),convert(varbinary(4000), rca4))
create function dbo.RemoveSpecialChars (@rca4 varchar(256)) returns varchar(256)
begin
   if @rca4 is null
      return null
   declare @s2 varchar(256)
   set @s2 = '' "
   declare @l int
   set @l = len(@rca4)
   declare @p int
   set @p = 1
   while @p <= @l
   begin
      declare @c int
      set @c = ascii(substring(@rca4, @p, 1))
      if @c between 48 and 57 or @c between 65 and 90 or @c between 97 and 122
         set @s2 = @s2 + char(@c)
      set @p = @p + 1
      end
   if len(@s2) = 0
      return null
   return @s2
   end
FROM
  dbo.ROOTCAUSEM1
WHERE
( dbo.ROOTCAUSEM1.OPEN_TIME > '10-10-2015'  )
 
END

Best Software to download/by to learn SSIS. SSRS, SSAS

$
0
0
Hi all, at work as an Analyst I have access all be it reporting only access to the above. However I'd like to be able to continue the developement work at home, could anyone suggest some software for home use only where I can test/develop code. I'm pretty comfortable using SSRS but SSIS/SSAS is completely new to me and I'd like to start at the basics and have some good practice at home. 

Large table from Access to SQL Azure using SSMA 6.0

$
0
0

Hi ,

Records migrating well up to 140 thousands for a table ,after that getting back 

below error while migrating from Access to SQL Azure.

[Datamigrator: Error] [7320/9] [2016-01-08 15:26:16]: Exception: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)


using SSMA 6.0 .

Any suggestion please.

cannot connect with sqlserver on same laptop, keep getting error 26. i don't know what to put in server name and password, etc.

$
0
0

cannot connect with SQL Mgmt Studio because I don't know what to put in computer name, server name, password.

I have several books on SQL Server, and I have downloaded all the online books.  Cannot fid anything in Help, and  just spent hours on Microsoft Support, after which they told me that MSDN help would cost $400.

HELP!

Sql server DBA

$
0
0
While installing the sql server 2012 enterprise edition ,Product key will automatically or else we need to enter the same .If we need to enter the product key from where we can get the Same ?

Transactional Replication-Publisher offline

$
0
0

Good morning Experts,

In Transactional replication, if the publisher goes down/offline, what will happen to the replication? Will the replication stop functioning?


Kiran

Can't log in to default instance

$
0
0

Hi there,

After a new installation of SQL server 2008 R2, when I open SQL server Management Studio, I can only log into to localhost but  I can't login to localhot\sqlexpress.  I get the error message below.

When I installed the SQL i specified default instance and SQL server authentication.

Many thanks in advance.

E

TITLE: Connect to Server
------------------------------

Cannot connect to MSSQLSERVER.

------------------------------
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)
Viewing all 8979 articles
Browse latest View live


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