Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all 6525 articles
Browse latest View live

Developer Edition? Why am I only able to use 1 processor and 1GB memory

$
0
0
Hi,I purchased a developer license for $80 whatever bucks and downloaded what I thought was a developer version. I expected it to walk and talk like Enterprise. The iso mounts as SQL2014_enu_x64 I installed, created our production databases on the new dev server and set up replication for the developers. I noticed it ran very slow so check the CPU and memory in SSMS. Its only using 1 processor and 1GB memory on our VPS 4 processor 8GB memory VPS.Select @@version returns Microsoft SQL Server 2014 - 12.0.2254.0 (X64) Jul 25 2014 18:52:51 Copyright (c) Microsoft Corporation Enterprise Evaluation Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)Any ideas what went wrong? Is the $80buck developer license really a crippled Enterprise evaluation? Did I get ripped off?John

What would cause index REORGANIZE to take longer than index REBUILD?

$
0
0
This is very puzzling:- Same server (SQL 2014 Standard Edition, 64GB RAM, 32 cores, SSD storage attached via iSCSI).- Same database (upwards of 300GB).- Same table (very large, many millions of rows, all columns are either INT or DATETIME).- Same index (non-clustered, 2 INT columns).- Same fragmentation (about 23-25%, give or take).- Same concurrent workload - that is to say, none. During index optimization, nothing accesses the server other than Red Gate SQL Monitor.The script for the index itself:[code]ALTER TABLE [dbo].[MyHugeTable] ADD CONSTRAINT [MyHugeTable_pk] PRIMARY KEY NONCLUSTERED ( [IntColumn1] ASC, [IntColumn2] ASC)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)GO[/code]ALTER INDEX REORGANIZE takes 3 hours and change. I tried different options, but it always takes just about that long. Not compacting large objects, just straight reorg.ALTER INDEX REBUILD takes 1.5 hours. Again, tried different options and no significant change in performance.Why is this happening? I feel like an idiot asking this question, because "REORGANIZE is faster than REBUILD" is something that you learn in MSSQL DBA 101. I feel like I'm looking at some sort of odd outlier case, but it shouldn't be - the index looks very straightforward, and neither it nor the table it is defined on has any unusual data types.Any ideas?

Failed upgrade, now error 0x80070714

$
0
0
Upgrading an instance from SQL 2012 to SQL 2014. Instance has SQL Engine, SSAS, and SSIS. Using the GUI, everything proceeds normally until the very last step where I get the attached error (Install_error). After clicking retry and getting the same error, I clicked Cancel and received the results in the attachment "final.jpg"Now if I try and restart the setup routine, the SqlSetup log shows the following:[quote]10/28/2014 09:41:50.184 ======================================================================10/28/2014 09:41:50.184 Setup launched10/28/2014 09:41:50.185 Attempting to determine media source10/28/2014 09:41:50.185 Media source value not specified on command line argument.10/28/2014 09:41:50.186 Setup is launched from media directly so default the value to the current folder.10/28/2014 09:41:50.186 Media source: (removed for privacy)10/28/2014 09:41:50.187 Attempt to determine media layout based on file '(removed for privacy)'.10/28/2014 09:41:50.199 Media layout is detected as: Full10/28/2014 09:41:50.200 Not a slip stream media, so continuing to run setup.exe from media.10/28/2014 09:41:50.214 /? or /HELP or /ACTION=HELP specified: false10/28/2014 09:41:50.234 Help display: false10/28/2014 09:41:50.234 .Net version 3.5 is installed10/28/2014 09:41:50.235 .Net version 2.0 is installed10/28/2014 09:41:50.235 Current running setup.exe full path: (removed for privacy)10/28/2014 09:41:50.240 Media setup.exe file version detected: 2014.120.2000.810/28/2014 09:41:50.241 Locally installed setup.exe full path: C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\SQLServer2014\setup.exe10/28/2014 09:41:50.242 Unable to retrieve version information for file 'C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\SQLServer2014\setup.exe'10/28/2014 09:41:50.242 Error: Cannot determine file version of local setup.exe: 0x8007071410/28/2014 09:41:50.242 Setup closed with exit code: 0x8007071410/28/2014 09:41:50.242 ======================================================================[/quote]I have also tried running with the /REPAIR option, no luck with that either.

alwayson availability groups- Syncing jobs

$
0
0
Can you guys share how you are taking care of new jobs and changes in the existing jobs to replicate to secondary replicas? It's giving a hard time to keep track on these changes and syncing jobs across different environments. Any suggestions?

sql server 2014 installation question

$
0
0
My sql server 2014 CPT2 was expired. Can I install sql server 2014 on the top of sql server 2014 CPT2 or I have to uninstall CPT2 first? Thanks!

Problem compressing backup to Azure

$
0
0
Hi Pro's. This is my first question on here so please bear with me..I'm having problems backing up my databases to Azure blob storage with compression in that no matter what setting I try (i.e WITH COMPRESSION in T-SQL or enabling backup compression by default on the instance) the backup does not compress. - does anybody happen to know if this is a known problem?To test I tried the following:I performed a backup of one of our smaller databases (that contains real data) without compression to disk - this came out at 13mb. I performed the same backup (different media set) with compression enabled to disk - this came out at 458kb. I performed the same backup to a blob in Azure without compression - this came out at 13mb.I performed the same backup (different media set) to a blob in Azure with compression enabled - this came out at 13mb.Please let me know if I can/need to provide any more info.Thanks in advance,Jonathan

synchronous and asynchronous commit

$
0
0
We are seeing high number of hadr_sync_wait types on our server after setting up AOAG during peak times. We have setup sync type as synchronous commit and failover automatic. Can we change these settings to async and manual failover whenever we need and change them back to sync commit during off peak timings. Any drawbacks because of these changes ?

Create format file for BCP

$
0
0
Hello,We have one table where we store all documents in one of the column called "Doc" with varbinary(max) data type. We want to download those documents from sql table to windows explorer and i wrote BCP in sql 2005. And things were fine.The format file I used there looks like this,9.0 1 1 SQLBINARY 0 0 "" 1 Doc "" Now we are in 2014 and when I try the same code with same format file, it hangs in the middle. So I changed the file to 12.0 instead of 9.0 but still not working. Any suggestions? Thanks a lot.

Notification on availability group failover

$
0
0
Hey all,Is there any way to trigger an event (ie. call a procedure/job/etc.) when/if an AG fails over? Not looking to use agent alerts.Thanks

Not Legal Oleaut Date when importing from Access to SQL 2014

$
0
0
Im using the migration assistant but I keep running into this error that only allows 92% of the a certain table to be migrated. I changed the target field from datetime2 to just datetime but I keep getting very similar errors. http://www.sqlservercentral.com/Forums/Attachment16483.aspxand When I use SQL 2014's built import export wizard, I get these errors. Validating (Error)MessagesError 0xc0202049: Data Flow Task 1: Failure inserting into the read-only column "Order_Header_ID". (SQL Server Import and Export Wizard) Error 0xc0202045: Data Flow Task 1: Column metadata validation failed. (SQL Server Import and Export Wizard) Error 0xc004706b: Data Flow Task 1: "Destination - Order_Header" failed validation and returned validation status "VS_ISBROKEN". (SQL Server Import and Export Wizard) Error 0xc004700c: Data Flow Task 1: One or more component failed validation. (SQL Server Import and Export Wizard) Error 0xc0024107: Data Flow Task 1: There were errors during task validation. (SQL Server Import and Export Wizard)

Database Owner

$
0
0
Hi,We are currently running our databases under a users account as the 'Database Owner' as well as our jobs.I'm wanting to change this to a seperate account so that if this user were to leave the jobs and databases still work once the accounts disabled.Can you please clarify for me what would happen if the database owner was running as an account which was then disabled?Also what permissions are needed to be set on the database owner account? And can I run this as a user account on a different domain? I'm wanting to setup a special account that's the owner of all jobs and databases that's not a users account and on a different domain.Thanks.

Fragmentation

$
0
0
How should I run this query against all the DB?SELECT db_name(), dbschemas.[name] as 'Schema', dbtables.[name] as 'Table', dbindexes.[name] as 'Index',indexstats.avg_fragmentation_in_percent,indexstats.page_countFROM sys.dm_db_index_physical_stats (DB_ID(), NULL, NULL, NULL, NULL) AS indexstatsINNER JOIN sys.tables dbtables on dbtables.[object_id] = indexstats.[object_id]INNER JOIN sys.schemas dbschemas on dbtables.[schema_id] = dbschemas.[schema_id]INNER JOIN sys.indexes AS dbindexes ON dbindexes.[object_id] = indexstats.[object_id]AND indexstats.index_id = dbindexes.index_idWHERE indexstats.database_id = DB_ID()ORDER BY indexstats.avg_fragmentation_in_percent descgoRegards,Nita

In-Memory Processing Tables - Limitations

$
0
0
Just been reading up on this and there are a lot of limitation which one needs to consider when designing an in-memory table. I'm going to post them below in the hope that others will add to them so I can get a definitive list;No foreign key constraintsNo clustered indexesNo schema changes once the table is set in memoryNo index changes once the table is set in memoryAlter Table function is not supportedAdditional filegroup needs to be created in order to process in-memory tablesVarchar MAX is not supportedXML/User Defined data types are not supportedMax page length is 8060 (page overflow not supported)Can't create indexes on NULLABLE columnsWow, seems like a lot. Any more for any more?

In-Memory Processing - Existing Tables

$
0
0
Hi there - Is there a method of forcing existing tables into the in-memory filegroup so the table data can benefit from in-memory processing. If so, can anyone point me in the direction of a how-to-guide. Thanks!!

Active Directory

$
0
0
(a) The zip file servers_svcaccounts_110814.zip contains a text file for each server on the domain. Each text file has the services and service accounts for the server. Unzip servers_svcaccounts_110814.zip to a location on your workstation. Using windows search, search the text files for the service accounts found in the spreadsheet for production. Update the Servers and AdditionalServices columns in the attached spreadsheet from the search results. (b) Using AD Tools, search for the computer name to determine the OU value for each server. In “Active Directory Users and Computers”, be sure to click View, then Advanced Features to be able to view “Object”. want know how to find Server name using Service account?

Replication- AlwayON AG

$
0
0
I have setup replication on primary replica and failed over to secondary replica. For some unknown reasons we have to replace the user db drives on primary. I added all the dbs back to the AG on secondary but I am skeptical on replication if it will work or not when we failover back to primary. Any suggestions?? Publisher is redirected to listener.

How data writes in multiple secondaty files if there is no filegroup created

$
0
0
I read , When sql server Database having multiple data files [b]within single filegroup [/b]then sql server writes data in multiple proportional file algorithm where the amount of data written to a file is proportionate to the amount of free space in that file, compared to other files in the filegroup. so if there is no filegroups created and multiple secondary files are attached in databse , is there same way data stored and writes data in multiple files by the same algorithm or any different way.

SQL Server has encountered 1 occurrence(s) of I/O requests taking longer than 15 seconds

$
0
0
Hi there - Last night our application experienced a brief outage due to the following error which I found in the error logs; SQL Server has encountered 1 occurrence(s) of I/O requests taking longer than 15 seconds to complete on file [O:\logs\DATABASE.ldf] in database [DATABASE] (12). The OS file handle is 0x0000000000000D58. The offset of the latest long I/O is: 0x00000013f80000Does anyone have any idea what this means? And what may have caused it? Thanks

Ports Firewalls and a New Named Instance... oh my

$
0
0
Hi,I have an existing 2012 default SQL Express. It's set up on a VPS managed by a third party. I have an administrator account on this 2012 Windows server. I'm not much of a sysadmin or a DBA but I get around. ;)I've installed a new NAMED instance on this VPS and can not connect to it with client tools (SSMS). If I remote in, I can connect this way.QuestionWhat steps might a seasoned DBA expect to make when getting a new named instance ready for the world.Assign a port? Check the port?Open the firewall for the port?Will this new named instance listen on a different port than the previously installed SQL Express instance?ThanksJohn

Can we use SQL Server 2014 Express for commercial purpose ?.

$
0
0
Hi All,Can we use SQL Server 2014 Express for commercial purpose ?. Any reference link ?Thanks in advance.San.
Viewing all 6525 articles
Browse latest View live


Latest Images