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

SQL Server Windows NT - 64 Bit in Windows Server 2012 R2 Standard

$
0
0

Hi,

We have started migrating our SQL Server 2005 version and Operating System 2003 to SQL Server 2012 and operating system 2012 R2 Standard.

Before we restore the production database, we had created an empty database and tables. We ran couple of packages which were migrated to SSIS 2012 version from SSIS 2005 and those were working fine and we saw good performance compare to production server.

Recently we have taken 2005 SQL Server database backup and restored on 2012 version. Since then we are facing performance issues on 2012 server. Below is the configuration of 2012 server

Intel(R) Xenon(R) CPU E5-2650 v2 @2.60 GHZ 2.60 GHZ (2 processors), RAM - 32 GM and 64-Bit Operating System.

We are using this server only for data loading from SSIS packages. We have set that this server to use MAX memory is 25 GB RAM. We have checked the memory usage of the server and seen SQL Server Windows NT - 64 bit process is taking total memory allotted and also taking 100% CPU utilization.

Old Server Configuration is

Intel(R) Xenon(TM) MP CPU 3.66 GHZ, RAM - 8 GB and 32-Bit Operating System

Could you please let us know what was causing for the high memory utilization on our migration server and make the server for better performance?

Attached the image of memory utilization.


Question on Indexed Views

$
0
0

Hi Everyone,

I want to clarify a doubt on Indexed views.

What is the reason behind create an Indexed view with "WITH SCHEMABINDING" option. Pl don't tell it is a syntax or by design. I really wanted to know the technical reason why Microsoft wanted to create the view with Schemabinding keyword and subsequently creating a clustered index on top of it to persist data just like a normal table.

Appreciate your help.

Thank you.

Using CTRL + F not working to find any text within the query result

$
0
0

Hi friends,

I am trying to use find option to find any text within the result section of a query but when I do CTRL+F  the find window appears and I can input the text that I wanted. But when I press Enter it is not giving me any result though the entered text is in the query result. I am using Sql Server 2012 Management studio. Any Body please help me. There is a job that I have to search certain things after running a script and now I am doing copy paste to excel and doing searching from there. 

Recovery model change

$
0
0

Dear All,

 We want to change recovery model of a database from simple to Full, It's a production server if I change the property does it affect to database or Any cautions in doing so while it is in use?

The server is 2012 Enterprise edition we are using for. Please give me your suggestions on this

Thanks


DBA

Compile locks on Resource database only

$
0
0

Our server was recently crippled by blocked processes on the Resource database.

Restarting the instance resolved the problem, however I would like to understand why Resource DB was blocking on compile, yet no other database was experiencing blocking.

<blocked-process-report monitorLoop="717845">
 <blocked-process>
  <process id="processeb92c99c38" taskpriority="5" logused="0" waitresource="OBJECT: 32767:-412:0 [COMPILE]" waittime="7822" ownerId="6639115589" transactionname="sqlsource_transform" lasttranstarted="2014-09-05T23:00:11.117" XDES="0x201b053d20" lockMode="X" schedulerid="19" kpid="10208" status="suspended" spid="819" sbid="0" ecid="0" priority="-5" trancount="0" lastbatchstarted="2014-09-05T23:00:11.117" lastbatchcompleted="2014-09-05T23:00:11.117" lastattention="1900-01-01T00:00:00.117" clientapp="ediEnterpriseServiceRunner" hostname="WG1-SPRC-22" hostpid="138648" loginname="OdysseyAdmin" isolationlevel="read committed (2)" xactid="6639115589" currentdb="796" lockTimeout="4294967295" clientoption1="671090784" clientoption2="128056">
   <executionStack>
    <frame line="2" stmtstart="-1" sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
    <frame line="2" stmtstart="-1" sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
    <frame line="2" stmtstart="-1" sqlhandle="0x02000000b8e27d16fe8d28b092004808170c1d201fbac34b0000000000000000000000000000000000000000"/>
   </executionStack>
   <inputbuf>

SELECT name, type_desc
FROM [Odyssey1_SD001].sys.triggers
WHERE parent_class = 0
AND is_ms_shipped = 0
AND is_disabled = 0   </inputbuf>
  </process>
 </blocked-process>
 <blocking-process>
  <process status="suspended" waitresource="OBJECT: 32767:-412:0 [COMPILE]" waittime="8574" spid="766" sbid="0" ecid="0" priority="-5" trancount="0" lastbatchstarted="2014-09-05T23:00:10.367" lastbatchcompleted="2014-09-05T23:00:10.367" lastattention="1900-01-01T00:00:00.367" clientapp="ediEnterpriseServiceRunner" hostname="WG1-SPRC-24" hostpid="18348" loginname="OdysseyAdmin" isolationlevel="read committed (2)" xactid="6639111342" currentdb="1070" lockTimeout="4294967295" clientoption1="671090784" clientoption2="128056">
   <executionStack>
    <frame line="2" stmtstart="-1" sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
    <frame line="2" stmtstart="-1" sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
    <frame line="2" stmtstart="-1" sqlhandle="0x02000000f030cd2a8c487038f8e4314b6bf429f9681699700000000000000000000000000000000000000000"/>
   </executionStack>
   <inputbuf>

SELECT name, type_desc
FROM [Odyssey2_SD001].sys.triggers
WHERE parent_class = 0
AND is_ms_shipped = 0
AND is_disabled = 0   </inputbuf>
  </process>
 </blocking-process>
</blocked-process-report>

log file growing in simple recovery mode

$
0
0

My Database is in Simple recovery mode ,log file grown to 110GB,

and its not releasing space,There is no replication configured on databse,

and log_reuse_wait_desc is showing nothing,

and status for all VLF's are 0.

SID problem

$
0
0

Hi all..I don't know why when getting the sid from SQL using powershell has the following problem :

Trace flag 8295

$
0
0

Hi,

Does anyone have where trace flag 8295 is used for. I found it active on a customer server, SQL Server 2008 R2 SP2 Enterprise Edition, but I can't figure out the purpose of it. When I search the internet, nobody seems to know this trace flag.

Can anyone help me?

Regards
Pieter


the transaction log for the database is full. To find out why the space in the log cannot be reused, see the log_reuse_wait_desc...what should I do?

$
0
0

Hi guys, I'm running a SSIS package In FinDB but for the first time is giving me tis error:

Error: Executing the query delete * from ewrong, delete * from etempwrong failed with the follow error: the transaction log for the database "FinDb" is full. To find out why the space in the log cannot be reused, see the log_reuse_wait_desc" .

I googled and after a couple of articles I took a backup, I shrinked the log file, I passed the back up from Full to Simple Recovery but when I run the package it still retrieves the same error.

That's the situation:

FinDb LOG FinDB_log H:\xxx\xxx\FinDB_log.ldf 

Size        Used   Free Free%

2808.94 26.25 2782.69 99.07 

transaction log backup file

$
0
0

Hi Team,

sql server transaction log backup file [.trn] what is the information having like committed or uncommitted  information.

could please tell me the transaction log backup file architecture.


DB_Executor Role Not Working

$
0
0

Friends,

I had granted DB_Executor role to one of the user now user wants to execute one store procedure but he is getting "the Insert permission was denied" Message. I have already granted the executor role to the db_Executor. Further, Under Securable section I am not seeing any thing as its completely blank. Should I add some thing to this Securable section or its may be any thing else ?Please help.

Trying to move VS 2008 projects from XP to Windows 7 - database problem

$
0
0

I built new computer with windows 7 professional. Have VS 2008 Professional Edition. I had built a website on the old computer (Win. XP) with a database. Not sure if I used the included SQL Server 2005 developer disc or the 2005 express when I built it. Its been working since 2010.

Now that I've copied it all to new machine (Win 7 professional) , i've had various problems. New machine (with new intel processor and Asus MB programs installed among other things SQL Server 2008 and 2008 R2 which was needed for its programs. 

But when i copies my Visual Studio files, I installed 2005 SQL server express with the Visual Studio 2008 (which is what comes with it). (I didn't install the separate  SQL server 2005 developer disk)  I then had to search and figure out how to get SQL Server Mgt Studio Express to install and finally accomplished that using c: prompt & adminstrator rights. (I downloaded "SQLServer2005_SSMSEE_x64.msi" )

Now, that I have VS finding my project file (another issue I had to resolve), it won't connect to my database. (Again, not sure which version I used to create that database since I had two versions, the sql 2005 express and SQL Server 2005 developer edition. )

The error message I am getting is: " The database '' ..." cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported. 

What is the simplest way to fix this?

Thanks,


TEXT column truncating at 1024 characters

$
0
0

Using SQL Server 2008 R2 here with the following setup:

* A simple 1-row, 4-column table (int, varchar(30) and 2 text). Call this table abc and its columns id, date, title and content.

* A view that does an OPENQUERY to a similarly schema'd MySQL table - call this view abc_view.

* A stored procedure that does a "SELECT * FROM abc_view" - call this SP abc_sp.

* A nightly Job to drop the abc table then recreate it using the same schema, then populate it by running abc_sp. This is because the MySQL abc table changes nightly (before the Job runs) and the SQL Server table abc needs to stay in sync with it.

The content column needs to contain about 8K characters. This column in abc_view contains all of them so there doesn't seem to be any issues with SQL Server getting the data from MySQL. All of the characters that are supposed to be in the content column in abc_view are present and accounted for.

When the nightly Job runs (drop abc, recreate abc, populate it with abc_sp) the content column is truncated at exactly 1024 characters. However if the Job is run manually, the content column is not truncated.

My first thought was that this is due to which user I use to log in to SQL Server using SQL Server Management Studio (an Administrator account) and which user SQL Server runs under (wpsvc domain account). However I have yet to confirm this as I am not well versed in administrating Windows-based machines or applications.

Does anyone have any thoughts as to what's going on here?


Can I select data from column without the html codes ( Customer has 4 hour replacement with Field Support.  To deploy field support please call 866-483-7877. email

$
0
0

Hi All,

Customer wants to get a notes without the HTML codes but the data in the SQL table is like below. Is there anyway to pull the data from SQL or clear it after exporting to MS Excel.

<b>&nbsp;</b><p><b>Customer has 4 hour replacement with Field Support. </b></p><p>&nbsp;</p><p>To deploy field support please call 866-483-7877.&nbsp;email <a href="supportcenter@techforce.net or">mailto:supportcenter@techforce.net">supportcenter@techforce.net</a>&nbsp;or log into:</p><p align="center" style="text-align:center; margin:0in 0in 0pt"><b><span style="font-family:'Arial','sans-serif'; font-size:14pt"><a href="http://technet.techforce.net/technet4"><u><font color="#0000ff">http://technet.techforce.net/technet4</font></u></a></span></b></p><p align="center" style="text-align:center; margin:0in 0in 0pt"><b><span style="font-family:'Arial','sans-serif'; font-size:14pt"></span></b><span><b>User Name:<span>&nbsp;</span></b><span style="font-family:'Calibri','sans-serif'; font-size:11pt">NetHardware</span><span>&nbsp;&nbsp;<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b></span><b>Password:&nbsp;<span>&nbsp;</span></b><span style="font-family:'Calibri','sans-serif'; font-size:11pt">n3Tw0rK</span></span>&nbsp;</p><p>&nbsp;</p><p>To&nbsp;deploy 4 hour spares please login to FlashTrac. <span style="font-family:'Verdana','sans-serif'; font-size:11pt"><a href="http://www.flashtrac.com/"><span style="font-family:'Calibri','sans-serif'; font-size:12pt"><u><font color="#0000ff">http://www.flashtrac.com</font></u></span></a>.</span></p>

Thanks.


Swapna

User defined table types sometimes show up a unknown data type in Profiler

$
0
0

A couple of our users have a problem when using user defined table types. Calls are made using UDTT as variables and these are then passed to a stored procedure as parameters. Sometimes the application returns a timeout. In such situations a Profiler-Trace shows the following:

declare @p4 unknown

whereas the correct trace (that is sometimes displayed) should be:

declare @p4 dbo.ReportFilterTableType

ReportFilterTableType is a UDTT. The users do have correct permissions for the UDTT (otherwise they would never be usable for the user). What could be the reason that the data types for the variable@p4 in the example are sometimes returned as unknown and at other times are returned correctly asReportFilterTableType? Could this possibly be a network related issue?

Thank you.


Graham Goodwin Email: g.goodwin@inova.ch


SQL Server window nt-64bit on window 2012 R2

$
0
0

I just installed windows 2012 R2 standard, and there is a process called "sql server window nt-64bit"  that consumes 15 GB of memory SQL Server, but I have not installed SQL Server. 

My server have 32Gb RAM

Where did that process?
¿can I control the memory consumption?


cyber


sys.certifcate ##MS_SchemaSigningCertificate##]

$
0
0

Hi experts,

Please in sys.certifcates i found ##MS_SchemaSigningCertificate<<ID>>##] what's the purpose and how to take backup.

Regards


Manish

DB read_only backup size increase

$
0
0

Hi Experts,

Have below 3 queries. Kindly enough throw some light

1) I have 1 database which is read_only. tlog backup size daily fluctuates how this is possible please...

2)another question related to another problem

backupset table of 1 database shows 65 MB full readonly database backup(named: abcd)  daily. here i am somply taking backup from litespeed.

when i run backup database abcd to disk="c:\abcd.bak" with copy_only,checksum,init (in read only mode) it shows size of 57 MB only. Why there's gap as database is in read_only mode.

3) buffercount and maxtransfersize are safe if i have x64bit machine and 100 GB RAM. restore verify completed successfully.

Regards


Manish

cluster and standalone

$
0
0

we builted active/passive node windows server 2012 and sql server 2012 with shared storage data,log and backup.

can we install standalone instances on active node and can we use the shared drives?

please help me

Failed to generate a user instance of SQL server due to failure in starting the process for the user instance

$
0
0

Respected Sir\Mem 

I have to create database on visual studio 2010 but unfortunately "Failed to generate a user instance of SQL server due to failure in starting the process for the user instance" this type of error display

Deleting the folder C:\Users\User\AppData\Local\Microsoft\Microsoft SQL Server Data also worked for me in Windows 7. Restart the computer after deleting the folder 

plz help me...:)

Viewing all 12963 articles
Browse latest View live