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

RESPONSE REQUEST: SS DBE Gurus Please Connect with Internet of Thinkers (aka TNWiki)

$
0
0

May the Thoughts be with you!

Well, a small nod there to Star Wars day, and we turn our thoughts to more the serious matter of ingesting the more valuable brain telemetry from and to our very own Internet of Thinkers!

Connect to the real network, the world wide workers!

Cut through the chatter and produce some pertinent protocols!

All over the world, highly intellegent autominous entities are uploading neural nuggets of gold, words of wisdom and inspirational instructionals!

So step forward... beacons of brain power, and download your technical torrent of tips to the Head Hub - TechNet Wiki!

 

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

HOW TO WIN

1) Please copy over your Microsoft technical solutions and revelations toTechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

Winning this award in your favoured technology will help us learn the active members in each community.

Feel free to ask any questions below.

More about TechNet Guru Awards

Thanks in advance!
Pete Laker


#PEJL
Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over toTechNet Wiki, for future generations to benefit from! You'll never get archived again, and you could win weekly awards!

Have you got what it takes o become this month's TechNet Technical Guru? Join a long list of well known community big hitters, show your knowledge and prowess in your favoured technologies!


how many secondary servers are configured in sql server log shipping

$
0
0

hi Team,

What are the prerequisites to configure the SQL server LOG SHIPPING and how many secondary servers are configured in sql server log shipping?

min memory per query SQL Server

JObs schedules Not run

$
0
0

HI,

       jobs schedule is execute after create  sql server usename,pwd and old Login sa is disable. then jobs schedules is NOt execute.

Regards,

Ram

Login failed for user. Error 18456

$
0
0

Hi All,

Good day. I am just new in SQL 2012 r2 and we are trying to provision one SQL VM but we are getting an error a"Login failed for user. "Error 18456" when trying to login to the Database Engine for the 1st time via SQL Management Studio. We carefully follow the steps outline in the link below but no luck.

http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-provision-sql-server/

These are the logs"

2015-05-06 12:44:49.57 Logon       Error: 18456, Severity: 14, State: 5.
2015-05-06 12:44:49.57 Logon       Login failed for user 'SD\Admin'. Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]
2015-05-06 12:49:05.23 Logon       Error: 18456, Severity: 14, State: 5.
2015-05-06 12:49:05.23 Logon       Login failed for user 'SD\Admin'. Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]
2015-05-06 12:57:58.16 Logon       Error: 18456, Severity: 14, State: 5.
2015-05-06 12:57:58.16 Logon       Login failed for user 'SD\Admin'. Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]
2015-05-06 12:58:00.90 Logon       Error: 18456, Severity: 14, State: 5.
2015-05-06 12:58:00.90 Logon       Login failed for user 'SD\SAdmin'. Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]
2015-05-06 12:58:04.23 Logon       Error: 18456, Severity: 14, State: 5.
2015-05-06 12:58:04.23 Logon       Login failed for user 'SD\SPAdmin'. Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]

Steps Taken:

Allow 1433 firewall, use login as servername\default instance name, servername\local admin

Did we miss any steps?

Any advise will be much appreciated.

Thanks,

Glenn Jose



using metadata to identify which objects update my tables

$
0
0

Hi we run 2008 std edition (I believe r2 on this server, will double check) and I need to find a needle in a haystack.

I am looking at two tables and would like to learn which, if any objects on same db updates these tables.   I'd even live with any references to these tables.  I already know sql agent is out of the picture.  I'm looking for a static approach, not a monitoring one because its possible updates don't occur till month end.

Is there a way in sql server to query the answer to such a question using dmvs or something like dmvs?   What if I get bold and want to search all db's on this server for objects that update my two tables even across dbs?

In the mean time, i'll look at scripting all triggers and procs , and doing a search on these table names in the scripts. 

I don't know that I've ever seen a way to script all triggers before.  Procs I can easily script from the object explorer details.  But I'm not sure if in explorer details--> server objects --> triggers does what I hope it does.

New 2014 Cardinality Estimator changes compile duration from nothing to infinity

$
0
0

We have a data warehouse that we recently upgraded to 2014 (Enterprise).

Since the upgrade we are experiencing enormous compile times on most of our queries (2014 compatibility level only). Requesting an estimated execution plan can take up to half an hour where before it was as good as instantaneous. The execution time of queries improved in general by 30% but the long compilation times make this improvement useless.

We are experimenting with trace flags 2312/9481 to enable/disable the new CE and tweaking queries to figure out where the increase in time comes from. So far no success. If we disable the CE, compilation is fine, enabled, it is not.

Our statistics are up to date, indexes are in place and defragged, the databases are reasonably large (1-2 TB) and use a few column stores for fact-like tables. A typical query will use around 30 tables. We have identified some groups of tables with more or less the same cardinality. Our current theory is that SQL is trying to estimate each possible path (i.e. order of tables, join type, etc).

Our queries are generated and therefore we cannot influence them easily. They are also mostly unique. The queries use simple inner joins and the execution times are really good. It is the compilation time that is the problem.

So our question is basically, how can we influence the new CE/compiler in any way to;

- Have a maximum time to evaluate paths, i.e., be happy with a simpler plan if the better one takes forever to deduce.

- Figure out if there is any part of our queries (or structures) in particular that could be causing the problem.

- Figure out if there is a particular part of the query or phase of the compiler that is consuming the time.

Our "solution" at this moment is to disable the new cardinality estimator.

Any help is appreciated.

Cheers,
Michel


Replicate Database on another server w/o bring over Security

$
0
0

Hi guys! 

I have 2 SQL 2008 R2 Servers which are always running (on is Prod/one is Test).

is there a way to sync Prod to Test WITHOUT using the .bak and overriding Test's Security settings?

Thanks!

Amy

====


A. Wolf


DBA / Developer and the associated tasks

$
0
0

Hello

Has anyone been in a situation where their job title is "DBA/Developer"?If so what were the tasks associated for this "double" role?

Actually, I am in this situation - I got offered a job within my company as a DBA/Developer junior. The Developer role is quite clear- I know the scope of my work, but the problem is in the "DBA" role. I thought a minimum would to manage backup and restores...Of course it depends on the requirements of my organisation, but I'd just like to know what you all think

thank you in advance




Unisntall Service Pack (sp3) for SQL Server 2008 R2 using commandline script

$
0
0

Hi,

How can we un-install Seevice Pack(sp3) for SQL Server 2008 R2 EE SP3 usingcommandline option.

Can anyone give  the script to unstall service pack for SQL Server 2008 R2 SP3 using commandline script?

Note: We know how to un-install manually.

Thanks


error "Object reference not set to an instance of an object. (Microsoft.VisualStudio.Platform.WindowManagement) "

$
0
0

Hi,

I've installed Sql Server 2012 express management studio on my machin (many times) but i'm getting this error message "Object reference not set to an instance of an object. (Microsoft.VisualStudio.Platform.WindowManagement) " as soon as I connect to SQL Server or try to expand any object (Databases, Security, etc.). Please help.

regards

A significant part of SQL server process memory paged OUT

$
0
0

Hi All~ I have the following config

SQL Server 2008R2 bits

Windows 2008 32 bits  on VM

Memory : 4GB

vcpu: 4

There was SSIS triggered on that server @ midnight, and some times I see the following in SQL errorlog

A significant part of SQL Server process memory has been paged out. This may result in performance degradation.This may result in a performance degradation. Duration: 0 seconds. Working set (KB): xxxxxx, committed (KB): xxxxx, memory utilization: 43%.”

I am wondering SSIS process itself also eat resource on the same database server. how to avoid it ?

Can I also set lock page in memory in 32bits  OS/SQL? and my sql server/agent  startup account is local system.~

Search Index

$
0
0

Hi All,

Here is my question.

If we have a search bar for product & search by keyword.
For example, we have all the Microsoft course but we just search "windows" keyword.
But the result also show "windows server".


Which version of Azure SQL server that we need to use??
Enterprise version?

Thank you.

Regards,

ET

Fulltext catalogue rebuild and blocking

$
0
0

Hi All.

I have a DB which uses FT and its SQL 2008 R2, unfortunately when the catalogue indexes are being rebuilt, this gets blocked by spid 43 which I believe is a system spid. Is there any reason why this is the case ?

Secondly, a catalogue which uses free text fails to display up to date information unless the catalogue index is rebuilt, is there any reason for this ?

Thanks in advance.

Web Site Admin Tool problem in VS2005

$
0
0
All,

When I create a new project and try to use the WSAT security tab, I get the following :

There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem: Unable to connect to SQL Server database.

I am using VS2005 beta2 with a local copy of SQL Server Express.

I am new to all of this so a little help would be great

Thx
jonpfl

Error encountered when trying to create mirroring endpoint

$
0
0

Hi All.

When I try to create mirroring endpoints, I get the following error. I  checked all the TCP ports and I can see that the port that I a trying to use is not in use. If I do change the port number, then it seems to work.

CREATE ENDPOINT XXX STATE=STARTED AS TCP(LISTENER_PORT = 56039, LISTENER_IP = ALL) FOR DATA_MIRRORING(ROLE = PARTNER, AUTHENTICATION = WINDOWS NEGOTIATE, ENCRYPTION = REQUIRED ALGORITHM RC4)

Msg 9693, Level 16, State 1, Line 1
The Database Mirroring endpoint cannot listen for connections due to the following error: '10013(An attempt was made to access a socket in a way forbidden by its access permissions.)'.

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

$
0
0

When I try to open up SQL Server Management Studio in SQL Server 2005 I get the following error message:

Attempted to read or write protected memory.  This is often an indication that other memory is corrupt.

How do you fix this?


lcerni

query optimizer techniques for sql server

$
0
0
Hi i am Nimra Memon  MS(IT) student my research topic is Tool supported analysis of  query processing and query optimization .
 i am going to implement various optimizer strategies for example converting cstesion product into a join strategy also their execution time and memory utilization. kindly can you tell me what optimizer startegies you are implementing?

Deadlock on two delete statements

$
0
0

I have two store procedures running from different server.

  • Table 1 only has primary key on identity column plus column1.
  • SP1 
    setup transaction isolation level read uncommitted.
    there have delete statement for table 1 with where column1 and column2 meet criteria.
  • SP2
    just one delete statement from table 1 with where column1/column2/column3 meet criteria.

I am seeing the following deadlock graph. The SP1 always been selected as victim.  It looks like both side try lock the cluster index resource and waiting each other. Is that a way to solve this issue?

<deadlock><victim-list><victimProcess id="process6062748"/></victim-list><process-list><process id="process6062748" taskpriority="0" logused="0" waitresource="KEY: 8:72057594796769280 (0e035e796b00)" waittime="3610" ownerId="54705478" transactionname="user_transaction" lasttranstarted="2015-04-28T10:31:35.023" XDES="0x15ad72d950" lockMode="U" schedulerid="30" kpid="12376" status="suspended" spid="106" sbid="0" ecid="0" priority="0" trancount="2" lastbatchstarted="2015-04-28T10:31:04.080" lastbatchcompleted="2015-04-28T10:31:04.080" clientapp=".Net SqlClient Data Provider" hostname="SERVER1" hostpid="1548" loginname="MYDOMAIN\Account" isolationlevel="read uncommitted (1)" xactid="54705478" currentdb="8" lockTimeout="4294967295" clientoption1="671088672" clientoption2="128056"><executionStack><frame procname="" line="51" stmtstart="3008" stmtend="3530" sqlhandle="0x0300080038edc6638446e2007ba300000100000000000000"/><frame procname="" line="43" stmtstart="2286" stmtend="2510" sqlhandle="0x030008007111bb64e684c400b0a200000100000000000000"/></executionStack><inputbuf> Proc [Database Id = 8 Object Id = 1689981297]   </inputbuf></process><process id="process6058988" taskpriority="0" logused="3664" waitresource="KEY: 8:72057594796769280 (1f3f78f3309f)" waittime="3618" ownerId="54707551" transactionname="DELETE" lasttranstarted="2015-04-28T10:31:38.223" XDES="0x800f4ab0" lockMode="U" schedulerid="29" kpid="2496" status="suspended" spid="94" sbid="0" ecid="0" priority="0" trancount="2" lastbatchstarted="2015-04-28T10:31:38.207" lastbatchcompleted="2015-04-28T10:31:38.207" clientapp=".Net SqlClient Data Provider" hostname="SERVER2" hostpid="4400" loginname="MYDOMAIN\Account" isolationlevel="read committed (2)" xactid="54707551" currentdb="8" lockTimeout="4294967295" clientoption1="673185824" clientoption2="128056"><executionStack><frame procname="" line="28" stmtstart="1652" stmtend="1872" sqlhandle="0x03000800953e4c3dd7250300ffa000000100000000000000"/></executionStack><inputbuf> Proc [Database Id = 8 Object Id = 1028406933]   </inputbuf></process></process-list><resource-list><keylock hobtid="72057594796769280" dbid="8" objectname="" indexname="" id="lock696f500" mode="X" associatedObjectId="72057594796769280"><owner-list><owner id="process6058988" mode="X"/></owner-list><waiter-list><waiter id="process6062748" mode="U" requestType="wait"/></waiter-list></keylock><keylock hobtid="72057594796769280" dbid="8" objectname="" indexname="" id="lock6a99480" mode="U" associatedObjectId="72057594796769280"><owner-list><owner id="process6062748" mode="U"/></owner-list><waiter-list><waiter id="process6058988" mode="U" requestType="wait"/></waiter-list></keylock></resource-list></deadlock>

Error occurred while reading the input stream from the network

$
0
0

Hi,

I am facing this error in SQL server error logs on my active\passive Cluster set around 10-20 times per day, can anyone guide me according to the versions and service pack that is been used

Edition : SQLserver2008R2 Enterprise edition

SQL SP: SP1

Windows : 2008R2 Enterprise windows

  2012-07-30 04:44:15.560 A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 10054, output error: 0).

Viewing all 12963 articles
Browse latest View live


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