Quantcast
Channel: SQL Server Database Engine forum
Viewing all 12963 articles
Browse latest View live

Cannot Connect to Remote Named Instance of SQL Server

0
0

We have 3x instances of SQL Server 2012 installed on a single remote server - there's the default MSSQLSERVER instance, then \INSTANCE01 and \INSTANCE02. I can remotely connect to the default MSSQLSERVER instance through SSMS, but I cannot connect to either of the additional named instances (\INSTANCE01 or \INSTANCE02). 


For example, if I try to connect to "sql.domain.com", I can successfully access the default instance on the remote server. If I try to connect to "sql.domain.com\INSTANCE01", I get an error stating"A network-related or instance-specific error occurred while establishing a connection to SQL Server".HOWEVER - if I try to connect to "sql.domain.com\INSTANCE01, 49301" (where 49301 is the TCP Port for the TCP/IP Protocol for this SQL Server instance), I am able to successfully connect.


This leads me to think that there's a communication issue with the SQL Server Browser service running on the remote SQL Server and my workstation. 


The following items have been verified:

  1. SQL Server Browser is running on the remote SQL Server
  2. Windows Firewall has been disabled on the SQL Server
  3. TCP Ports 1433, 1434, 1954, and 49301 have been opened up on the remote destination's firewall
  4. UDP Port 1434 has been opened up on the remote destination's firewall


Thoughts? Did I miss something?



Warning: Failure to calculate super-latch promotion threshold. appears in SQL Server log

0
0

We are running SQL Server 2008 R2 and have just applied Service Pack 2 to our QA environment.

Today we noticed this message in the SQL Server log:

Warning: Failure to calculate super-latch promotion threshold.

Can someone please tell us what this means and how to fix whatever it is?

There is no associated error message number.

We believe this message is new with Service Pack 2.  Can someone tell us for sure?

This entry has occurred in the middle of the night when nothing was running that we could see and during the day.

Environment

SQL server 10.50.4000

Windows Server 2008 R2 Standard Service pack 1

Server has 4 processors, 8 Gig of Ram with 4 Gig set for SQL Server.  Usage is generally light as it is a test environment.


KD

wakslhwn.ldf. Verify that the file exists and that you can access it.

0
0

Hello,

I am trying to install SQL Server 2008 R2 but I am getting an error:

TITLE: Microsoft SQL Server 2008 R2 Setup
------------------------------
The following error has occurred:
Source file not found: C:\Users\dominiqued\Desktop\SQL 2008 R2 Ent Ed\x64\setup\sql_engine_core_inst_msi\PFiles\SqlServr\MSSQL.X\MSSQL\Binn\wakslhwn.ldf.  Verify that the file exists and that you can access it.
For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.50.1600.1&EvtType=0xDF039760%25401201%25401
------------------------------
BUTTONS:
OK
------------------------------

Not sure what to do, I try after uninstalling the previous failed installation but still the same error..
Where is this file? It is even not on the download from the Microsoft web site ... (:

I was able to find the file in SQL Server 2008 Ent SP1 but after it is the file 32veaiq8.mdf which is missing...

Where could I get a correct and complete version of SQL Server 2008 R2?

Thanks,
Dom


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


How can we rollback alter user statement

0
0

Hi All,

We have a requirement of changing schemas but it we also need it to revert to the original one.

Alter user <user> with default_schema = <newSchema> does the job of changing the schema.But found that this change is done at the database level and is permanent.Meaning if I change the schema for a user in one connection then it remains the same even after the connection closes and user connects again using a different connection.

We do only read operations after altering a schema so I thought of rolling back the transaction once we change the schema and the query has been executed so that it reverts to original schema.Something like this -->

begin transaction

Alter user <user> with default_schema = <newSchema>;

select * from <tableName>;

rollback transaction

But noticed that rollback does not have any effect.The schema name remains as <newSchema>.

Is there any way of changing the schema just for that particular connection and then revert ?

Connecting to SQL 2005 x64 using Management Studio on Windows 2008 x64 is very slow

0
0

I have a SQL 2005 x64 server that is running just fine. I have installed the SQL 2005 Management Studio on Windows 2008 x64 server and can connect to the SQL 2005 x64 server. But it takes almost a minute to connect. Then takes about another minute to select the database that I want to query.

Both servers are on the same subnet and are both connected using 1GB Nics. I have a Windows 2003 x32 server with SQL 2005 Management Studio installed on it and I can connect and select a database within seconds to the same SQL 2005 x64 server.

Please let me know what I can do to get this resolved.

 

Thanks

The OLE DB provider "MSDASQL" for linked server "MYSQL" supplied invalid metadata for column "IncCreated". The precision exceeded the allowable maximum.

0
0

I had a running openquery as follow in MSSQL SERVER.

SELECT * FROM OPENQUERY(MYSQL, 'CALL GASP_sales_tl_performance_summary(''2013-03-01'',''2013-05-01'')')

When i Execute this open Query will get an Error Message like this

The OLE DB provider "MSDASQL" for linked server "MYSQL" supplied invalid metadata for column "IncCreated". The precision exceeded the allowable maximum...

Plz Can anyone help me?

xp_delete_file extremely slow on a server - Wait_Info PREEMPTIVE_OS_GETPROCADDRESS

0
0

I am looking at one server where xp_delete_file is extremely slow to delete files.

One subdirectory contains a few thousands files and it takes about 1 second for each file to delete.

The wait_info is PREEMPTIVE_OS_GETPROCADDRESS.

Deleting files through the del command in Windows is fast.

Has anyone seen this before? Any ideas how to troubleshoot it?

Ola Hallengren
http://ola.hallengren.com

page life expectency

0
0
I am looking at the sys.dm_os_performance_counters table and trying to figure out how a int value represents a ratio? For example "buffer cache hit ratio" = 12355. What does this mean?

Table Partitioning with sliding window

0
0

Hi All,

we planning to create partitioning on existing tables. The partitioning is on date column, there should be one partition for each year. Creating of new partitions should be automated, and also we dont have any plans of archiving old data, all we want is that new partition creation should be automated

Thanks all

Simple instructions for setting up an alias...

0
0

Hello all.  After two days of unsucessfully trying to create an alias; I need assistance.  This SHOULD be a simple thing to do, but I'm missing something.

My environment consists of: A server running both SQL 2008 R2 (default instance) and SQL 2012 (named instance...SQL2012).  Clients apps can connect just fine to either instance; however one app that needs to access the SQL 2012 instance isn't instance name aware so I've decided to create an alias for it.  Afterwards, I try connecting the app to the named instance on SQL 2012 with no success.  So, now I have many questions.

1. I noticed there's only one SQLBROWSER.exe running and it belongs to the SQL 2008 R2 default instance.  Question.  Should there be a SQLBROWSER.EXE for the SQL 2012 instance?  Many blogs, websites, etc mention SQLBROWSER.exe should be running; however, I don't have one for the SQL 2012 install.  Any ideas why????

2. I can connect to the alias via ODBC on the server itself (I'm RDP in); however if I try ODBC from another client machine, it fails with error: "Named Pipes Provider: Could not open a connection to SQL SERVER.........."  Question.  Do I need Named Pipes enabled?  I've created the alias to use TCP/IP.

Any **clear** and concise instructions, website, etc anyone can provide is greatly appreciated.  My only other option is to have my Win Admin create an DNS entry for the SQL 2012 instance and have the app use this DNS name; but I'd like to implement an "alias" to solve my problem without bothering another team.

Thanks All

Roz

Xtended events and clr with data access trace

0
0

There is a sql statement which uses a table valued clr function which inside opens another context connection ( using (var connection = new SqlConnection("context connection=true")) ) and using another separate select statement.

SELECT * FROM dbo.tablea a
CROSS APPLY dbo.CLRDataAccessFunction() c

I started using xtended events and monitoring query_post_execution_showplan, rpc_completed, sp_statement_completed, sql_batch_completed, sql_statement_completed events. I can capture the events generated by the initial sql statement but I cannot capture events that was created within clr by the context connection.

Is there a way to capture the events created within the context connection?

Thank you


Gokhan Varol

IOPS for specific DB

0
0

Hi Guys,

I would like to measure the IOPS for one specific DB on my MSSQL server.
I could not find a profiler setup for it, and after some search I only found solution for measuring the Disk, or the whole SQL server's IOPS, but not for a specific DB.

Is threre any way to do that? 

Thank You,

Best Regards,

DM views such as dm_os_performance_counters - how to read the results and dealing with sql performance issues in general

0
0

Anyone got a link they would like to share on how to read and interpret the results of dm_os_performance_counters

Today I ran into some performance issues with SQL slowing to a crawl for a few processes.

I know there are several tables that need their indexes rebuilt, and its on the to-do list to get these cleaned up when we can have some scheduled down time.

However, in general, what are some things you can look at to get an idea of where SQL is having trouble, at a system level.

Memory use, Disk use etc...

Ive been reading a bit about using Permon...but wont that affect performance itself?

Could not allocate a new page for database 'XXXX' because of insufficient disk space in filegroup 'PRIMARY'.

0
0

Dear All,

I have a SQL Server 2008 (SP1) Database (Size600GB). It has more than 25 Data files and more than 5 LDF Files.

My issue is most of the times whenever I tried to created new indexes or index-rebuilding on the tables I am getting below mentioned error.

Msg 1101, Level 17, State 12, Line 1

Could not allocate a new page for database 'XXXX' because of insufficient disk space in filegroup 'PRIMARY'.

Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth

on for existing files in the filegroup.

Then I used to increase the MDF file size to 250MB or 512MB and the issue will resolved temporarily. But now MDF file located disk drive free space is low(remaining free space 3GB). I can’t extend further more disk space for the MDF file.

I never experienced before this situation in any version of  SQL Server Databases.

Please suggest.

Best Regards

N S Reddy

How to find Hidden Space/Char in SQL Server?

0
0

Hi Folks-

I want to find out the hidden space or any hidden char using SQL Query?

Please help me

Unable to connect to SQL named instance using alias name

0
0
Hi

I have installed Two named instances of SQL Server 2008 Standar Edition X64 SP1 on Windows server 2008 Standard edition X64 with SP2

I created two Aliases using Configuration Manager pointing to both these named instances. Aliases were created without any issues

Now when I try to connect to the instances using alias name I am getting the following error

"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) (.Net SqlClient Data Provider)"

Help Regarding this is much appreciated



Using Perfmon from Win7 and connect to 2003 server to view SQL counters?

0
0

Maybe Im doing something wrong, but will the version of Perfmon that comes with Win 7 allow me to connect and use perf counters on that machine?

I can successfully connect from my Win 7 workstation to a remote (same domain) 2003 server.  I then enter the server name when adding a new counter, and it acts as though its been added, but I do not see it update the display chart.

What am I missing?  No errors are seen that I could tell.

I can remote into the 2003 server just fine (using my same domain account) and launch Permon locally, and the perf counters are added and start updating the display immediately.

I think I will in the future look more favorably to the SQL DMV

http://technet.microsoft.com/en-us/library/cc966540.aspx

Using SQL 2005 DMV to verify effects of fragmented indexes?

0
0

I have a db server that I have inherited and sql is running pretty slow it seems for some processes.

I ran a query that indicated I have several fragmented indexes and the indexes have not been rebuilt in a long time.

What kind of performance metrics can I collect that will prove that the effects of fragmented indexes are affecting the system performance?

Disk reads?

Clustered 2008 Enterprise Install and Mater Key Encryption Problems

0
0

I have had a Clustered SQL Server 2008 environment working well for years.  For some reason now when it fails over I am receving cannot decrypt errors when my stored procedures run.  I have narrowed it down to the the Linked Servers and the Service Master Key. 

Message
Executed as user: NT AUTHORITY\SYSTEM. An error occurred during decryption. [SQLSTATE 42000] (Error 15466)  Could not use view or function 'VW_DENT' because of binding errors. [SQLSTATE 42000] (Error 4413)  An error occurred during decryption. [SQLSTATE 42000] (Error 15466)  Could not use view or function 'dbo.VW_PROP' because of binding errors. [SQLSTATE 42000] (Error 4413)  An error occurred during decryption. [SQLSTATE 42000] (Error 15466)  Could not use view or function 'VW_CAS' because of binding errors. [SQLSTATE 42000] (Error 4413)  An error occurred during decryption. [SQLSTATE 42000] (Error 15466)  Could not use view or function 'CA.dbo.VW_LEO' because of binding errors. [SQLSTATE 42000] (Error 4413)  An error occurred during decryption. [SQLSTATE 42000] (Error 15466)  Could not use view or function 'CA.dbo.VW_CIDE' because of binding errors. [SQLSTATE 42000] (Error 4413)  An error occurred during decryption. [SQLSTATE 42000] (Error 15466)  Could not use view or function 'CA.dbo.VW_CIDE' because of binding errors. [SQLSTATE 42000] (Error 4413)  An error occurred during decryption. [SQLSTATE 42000] (Error 15466)  Could not use view or function 'CA.dbo.VW_UCRCIDE' because of binding errors. [SQLSTATE 42000] (Error 4413).  NOTE: The step was retried the requested number of times (3) without succeeding.  The step failed.

I have tried regenerating the key which worked to get the fail over server working but now the primary server doesn't work.  I tried backing up the SMK from the working machine and restoring it on the non working machine.

It seems that no matter what I try now I can only get one of the two machines in the cluster to acess the Linked Servers correctly.

TCP Endpoint Channel Communication Directly Between 2 Servers

0
0

Hello,

I am not sure of the correct way to ask my question so here is what I was thinking but I am not sure it is possible.

I have 2 server 2012 boxes each with SQL 2012 installed. I have created a 2 GB switch independent NIC team directly between the two servers bypassing the need to use a switch. I have tested the connection and all is good as far as that goes. I also have a connection out to the domain from each of the servers.

On one server I have SSAS and SSRS. On the other I have some DBs. What I would like to have happen is that any requst ever made for data by the first server to the databases on the other server, only go over the 2 GB Team.

This brought me to endpoints. From what I gather I would need to create TCP endpoints on each box. Then grant connect to the domain service account that is running the SQL Server service.

I guess what I am asking is, is this a workable solution? Am I missing something in the big picture that I really need to be aware of. Any insight on how to pull this off would be greatly appreciated.

V/r

C..

Viewing all 12963 articles
Browse latest View live




Latest Images