Friday, August 2, 2013

[SQL server issues] Commented Issue: AdventureWorksDW2008R2 DimDate table has missing dates [13383]


Commented Issue: AdventureWorksDW2008R2 DimDate table has missing dates [13383]



pavanbarnala wrote Feb 23, 2012 at 10:47 AM


Hello,
Is this been taken care? If so, please share the latest data for DimDate. I'm working on some POC which requires dates in between 2008 and 2010 as well. If it is not already done, can someone let me know is there is any way I can generate the data for those missing dates in that table?



petermyers wrote Feb 26, 2012 at 5:21 AM


The attached script will fix the problem. Use the stored procedure to extend to future dates if needed.



Read more

sqlserversamples.codeplex.com



[SQL server issues] Created Issue: SQL Server 2008 Developer edition sample database install error [18174]


Created Issue: SQL Server 2008 Developer edition sample database install error [18174]








description


I'm trying to install Adventureworks sample dB and i get an error.
I successfully downloaded the mdf file however when attach, add and click OK from SSMS I get the error:
 
Msg 5172, Level 16, State 15, Line 1
The header for file 'C:\Program Files\Microsoft SQL Server\AdventureWorks2012_Data.mdf' is not a valid database file header. The FILE SIZE property is incorrect.







Read more

sqlserversamples.codeplex.com



[MS SQL Server] Need Help on moveing databases

[MS SQL Server] Need Help on moveing databases


Need Help on moveing databases

Posted: 01 Aug 2013 11:11 PM PDT

HII have moved the master database from startup parameters after that we stop the service of the server and move the data and log file to there respective new locationsafter that i am trying to start the server it is not starting.we checked in error log and found the error like:2013-08-02 05:07:35.85 Server Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) Apr 2 2010 15:48:46 Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)2013-08-02 05:07:35.85 Server (c) Microsoft Corporation.2013-08-02 05:07:35.86 Server All rights reserved.2013-08-02 05:07:35.86 Server Server process ID is 14276.2013-08-02 05:07:35.86 Server System Manufacturer: 'Cisco Systems Inc', System Model: 'UCSC-BASE-M2-C460'.2013-08-02 05:07:35.86 Server Authentication mode is MIXED.2013-08-02 05:07:35.86 Server Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.POWERUSERREPLICA\MSSQL\Log\ERRORLOG'.2013-08-02 05:07:35.86 Server This instance of SQL Server last reported using a process ID of 12720 at 8/2/2013 5:05:05 AM (local) 8/2/2013 12:05:05 PM (UTC). This is an informational message only; no user action is required.2013-08-02 05:07:35.86 Server Registry startup parameters: -d j:\PowerUserMasterdata\master.mdf -e C:\Program Files\Microsoft SQL Server\MSSQL10_50.POWERUSERREPLICA\MSSQL\Log\ERRORLOG -l i:\PowerUserReplicalog\Masterlog\mastlog.ldf2013-08-02 05:07:35.86 Server Error: 17113, Severity: 16, State: 1.2013-08-02 05:07:35.86 Server Error 2(The system cannot find the file specified.) occurred while opening file 'j:\PowerUserMasterdata\master.mdf' to obtain configuration information at startup. An invalid startup option might have caused the error. Verify your startup options, and correct or remove them if necessary.

Maintenance Plan Clean up task not deleting all .bak files

Posted: 02 Aug 2013 12:22 AM PDT

Hi,I have a maintenance plan that backs up my databases and deletes any .bak files older than 2 days old. I am running this on 2008 R2 and it sometimes work fine. Other times it randomly leaves behind a few (between 2-5) of the 9 databases being backed up. It doesn't leave behind specific ones it just seems random. Does anyone know any known bugs or problems like this?Thanks for any help.

Regional settings on instance SQl Server 2008 R2

Posted: 01 Aug 2013 09:58 PM PDT

Hello:Is it possible to set regional settings of date and time to an instance of SQL Server 2008 R2?My need is that in a clustered environment (2 nodes) I would like create SQL server instances with different time zone in order that the use of the getdate() function return the right value depending on the instance in which we are.Do you know any alternative to this need?Thanks in advance.Jesús

SQL 2008 on Windows Server 2012

Posted: 01 Aug 2013 09:25 PM PDT

Hi All,Is it possible to install SQL Server 2008 (not r2) on Windows Server 2012?Any pitfalls I need know about, service pack requirements?ThanksD

SQL agent job hanging for a long time

Posted: 18 Apr 2010 11:24 PM PDT

Hi,I have created an agent job in SQL server 2008 but it is getting hanged when executing.It is backup job which is running the below commandBACKUP DATABASE master TO DISK = 'E:\MSSQL10.INSTANCE_02\BACKUP\SystemDB\master.bak' WITH NOFORMAT, NOINIT, NAME = N'System databases- Full Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10It shows executing and does not give any error. The job owner is sa. But whent excuting the same T-sql command in query window, it executes successfulle and creates the backups.Do you have any idea on this?

Replication or Mirroring

Posted: 01 Aug 2013 08:27 AM PDT

We have an application that is starting to gain more users and is becoming more "critical" that it stay up. We would like to set up some sort of failover for our database server. Some of things we need to accomplish is: 1.) have the ability to make changes to live (source) database's structure that is then is copied over to the other (target) with very little intervention, 2.) Have it so if the source, goes down then the target can be used as the source.I know that this is a little of both mirroring and replication, but which one, if any, could cover these two main points.Thank you in advance,Jim

[SQL server issues] Created Issue: AdventureWorksDW2012 Download file corrupt [19063]


Created Issue: AdventureWorksDW2012 Download file corrupt [19063]


There seams to be an issue with the AdventureWorksDW2012 Data file download. When I try to run this SQL statement:

CREATE DATABASE AdventureWorksDW2012 ON (FILENAME = 'E:\MSSQL11.SQL02\MSSQL\DATA\AdventureWorksDW2012_Data.mdf') FOR ATTACH_REBUILD_LOG;

This is the error I get:

Msg 5172, Level 16, State 15, Line 1
The header for file 'E:\MSSQL11.SQL02\MSSQL\DATA\AdventureWorksDW2012_Data.mdf' is not a valid database file header. The FILE SIZE property is incorrect.

Thanks,Dan


Read more

sqlserversamples.codeplex.com



[Articles] The School Year

[Articles] The School Year


The School Year

Posted: 01 Aug 2013 11:00 PM PDT

This Friday Steve Jones looks forward to the rest of the year. It's almost time for school and do you have plans? Should you be making some plans?

[SQL Server] Advanced SQL Server 2008 Extended Events with Examples


Advanced SQL Server 2008 Extended Events with Examples




Weekly SQL Server newsletter with articles, forum posts, and blog posts via email. Subscribers receive our white paper with performance tips for developers.



SQLTeam.com Articles via RSS


SQLTeam.com Weblog via RSS



Read more

sqlteam.com



[SQL Server] Testing with Profiler Custom Events and Database Snapshots


Testing with Profiler Custom Events and Database Snapshots




Weekly SQL Server newsletter with articles, forum posts, and blog posts via email. Subscribers receive our white paper with performance tips for developers.



SQLTeam.com Articles via RSS


SQLTeam.com Weblog via RSS



Read more

sqlteam.com



Search This Blog