Windows 8 printing problem with 2575 printer
My Photosmart 2575 printer worked ok with windows XP on my old Dell computer. On my new Lenovo Windows 8 computer using the usb printer connector there is a problem.
When I try to print a word document it prints the first 6 to 8 lines of the document and then displays "printing" and hangs, so I have to cancel the print. When I re-try the printing, it again prints 8 or so lines of the documentand, ejects the paper and says "out of paper". When I reload the paper it prints the document successfully.
@dave_sk, Welcome to the forums!
I read about the troubles you are now having when trying to print from your Photosmart 2575 to your Windows 8 system. I sure hope I can help you through this obstacle and have you printing again!
I would first like to mention the error message you see when trying to print. Here is the troubleshooting guide to work through the "Out of Paper" error, please try all the steps:
HP Deskjet, Photosmart, and PSC All-in-Ones - 'Out of Paper' Error Message and the Printer Does Not ...
Hopefully you can print without the error message however, if you see it again, run the Print and Scan Doctor. This diagnostic tool will check for any conflicts that could be causing the issue. The tool will show you a report at the end. If there was a problem that the tool could not fix, you will notice it in the results.
Please write back with the outcome and also the results from running the PSDr.
Click the thumbs up button below to give me a kudos for trying to help!
Good luck
R a i n b o w 7000I work on behalf of HP
Click the “Kudos Thumbs Up" at the bottom of this post to say
“Thanks” for helping!
Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!
Similar Messages
-
Windows 7 detects problem with iPod shuffle and after troubleshooting say it can't fix and disconnects it. What's up?
You might get some help over on the shuffle discussions.
http://discussions.apple.com/forum.jspa?forumID=822 -
Windows 8.1 Problem with games from windows store.
I've got a problem with games from windows store. The installation is going well without any problems, however when I try to open it it's loading and then it turns off. The same problem happens when I try to use Games for Windows. I've use a sfc scan and
it shows some errors but unfortunately it cannot fix them. Should I share the CBS log or find the solution somewhere else? I hope you help, best regards.Hi,
According to my experience, the problem like store game app open failed probably caused by hardware driver. such as Audio and Graphic driver. So, first of all, please try to reinstall these two driver to fix this problem for test.
In addition, for SFC scan failed problem, it can be caused by many reasons, I would suggest you use another command to fix your system for test.
Dism /Online /Cleanup-Image /ScanHealth
Also you can test SFC command in Windows 8.1 safe mode.
Thirdly, if problem persists, please check Event Viewer, generally speaking, it would record the app open failed events.
Roger Lu
TechNet Community Support -
Thank you
A little more information maybe helpful. Are you saying you have upgraded from a OS to Windows XP and it caused problems with your application, or are you asking if there will be any problems if you upgrade? What OS were you upgrading from? LabVIEW 6.1 is the first issue of LabVIEW that was supported under Windows XP, so there should not be any issues there. In my experience, doing upgrades from one Windows version to another is never a smooth transition. If you are using any hardware I would advise that you uninstall the drivers and remove the hardware before the upgrade. I might go as far as removing existing National Instruments (such as LabVIEW) before you upgrade and then reinstall the software and hardware after you have upgraded. This will be the be
st way of ensureing you have as little problems as possible after you upgrade. -
Windows 10 for phones emulators on Windows 10 10041 - problem with network connection
Hi,
I can't connect to Internet on Windows 10 mobile emulators on Windows 10041. I have tried to resolve problem. First I noticed, there was problem with displaying properties main network connection. I had reinstalled network driver. After that I reinstalled
Hyper-V on Windows and recreated virtual machines for mobile emulators. Nothing helps.
On the same machine Windows Phone 8.1 emulator on Windows 8 has access to Internet.
I don't know if there was issue which is discribed
http://blogs.msdn.com/b/wsdevsol/archive/2013/10/01/why-can-t-the-windows-phone-emulator-go-online.aspx, becuse the same configuration I have on Windiows 8.1 and Windows 10 and on Windows 8.1 I have access and on Windows 10 I haven't.
MartinI just disabled bluetooth connection in Network Connections panel and I have access to Internet in Windows 10 emulator!
-
Iphone 3GS - windows 7 - syncing problems with windows live mail
I brought a new iphone 3gs last week and tried to sync it with my new dell PC running windows 7 (with windows live mail).
It wouldnt sync, so I read the forums and reset the sync history through itunes.
This worked, and synced my iphone to the computer. It appears to have backed up all my contacts on the iphone to somewhere on the PC (cant find where) but it hasnt copied the contacts from windows live mail to the iphone
Have I confused anyone??have you tried using imap instead?
if you can access your email from the web page then sounds more like a problem with windows live mail and not your BT account
If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’. -
Window 8 WiFi problem with Cisco wireless network
Anyone encounter a Windows 8 WiFi authentication problem with Cisco wireless network?
We are using WLC 5508, 7.2.111, and AP 3602i with WPA2.
Sent from Cisco Technical Support iPad AppThis problem occurred with Soney, and Dell models. Lenovo with Windows 8 factory installed is working fine.
Won't make any difference as these laptop's wireless NIC cards are different.
Can you try with OPEN authentication. If the Sony and/or Dell laptop works, then you start cranking up the security and/or encryption settings until you break them.
I'm with Scott here: It's got to be a wireless NIC card driver.
As what George has stated, post the debug of the failed attempts. -
Mac mini 6630m graphic card have problem during running windows 8.1 problem with bootcamp
Hi All,
I need a help!
I am follow the Apple officeal document install windows 8.1 operation sysmtem in my Mac mini with BootCamp , and I have install the bootcamp drivers.
But I got a problem ,the Graphic Card and the Audio device is not work ,and show video controller error.
I have install the bootcamp many times ,but it doesn't at all.
Thanks all.
mac mini infomation:
mid 2011, graphic card AMD HD 6630mThank you for your reply!!
I have try to install the driver for the bootcamp ,but it dosn't work too.
now ,I have install windows 7 OS by bootcamp.
Thank you again!!
Best wish!! -
Windows 8.1 problems with my enterprise user
Hi all,
I have two problems that I need help with. For background information, I am in an IT-support enterprise and I am a support person for a client.
Since I am developing and maintaining an application for this client that is to be used inside the enterprise I work for, I need unrestricted network access and administrative privileges.
I asked my level 2 IT people to install on my machine Windows 8.1 to have Visual Studio 2015 (really loving the preview).
The problem:
1) My account and my machine have unrestricted network and have no proxy enabled, meaning that I should be able to reach any site on the internet. Somewhy, though, my pc is unable to do the Windows Activation with a valid serial, telling me that the server
is unreachable. Is there any other way to activate my pc?
2) My account is in basically all the administrator roles that are on my enterprise for testing, amongst others: administrator on my particular machine and Domain Administrator. Even when the AD is configured with those roles and my pc was installed with
a normal image, I have NO administrative access, I have the most basic privileges a user can have in this enterprise.
I am somehow able to enter Computer Management and change ALL the roles I want for anyone, I can even reset passwords for local users, but my personal user does not want to give me, for example, the command prompt. Could you please explain why and/or help
me with this?Hi,
1) Could you please share more information about the avtivation with us? How did you activate your PC? which method? What is the detailed error message prompted?
Here's an solution for KMS activation (it's for Windows 7, but the solution is similiar in Windows 8.1. time synchronize)
When trying to activate you get 0xC004F074 with description "The Key Management Server (KMS) is unavailable"
http://support.microsoft.com/kb/974998
2) Regarding to the account, I suggest you check the account properties under "AD users and computers", check what group the account belongs to. or run whoami command with the /groups option to find more information about the user
http://technet.microsoft.com/en-in/library/cc771299.aspx
At the end of your post, you mentioned the command prompt, may I know what is the issue with command prompt? Please check if there're some GPO applied which restrict some user operations.
Yolanda Zhu
TechNet Community Support -
SAPGUI for Windows via Portal - problem with frame
We are launching SAPGUI for Windows via Portal to drive single sign-on via AD. Our problem is that when SAPGUI launches, it is contained within an IE browser frame that causes some of the SAPGUI screens to not fit on the screen well. Those same screens fit just fine if we launch SAPGUI directly.
Is there any way to launch SAPGUI from Portal, with SSO enabled, but without the IE frame around it?Lonny,
The best way to authenticate users when they logon using SAP GUI for Windows, is to use SNC authentication in SAP GUi. Then, the browser iview will launch the GUI and the GUI will authenticate the user using their AD credentials issued during the Windows logon. You will need to setup an SNC library on both the ABAP system which the user is logged onto, and the workstation where SAP GUI is installed.
If you don't use SNC, and you just launch SAP GUI for Windows from browser, then an SSO2 ticket is used to authenticate the user to the ABAP stack, and this is not secure due to the fact that the SAP GUI session which is used to pass the SSO2 ticket is not protected - anybody can intercept the SAP GUI session, take the SSO2 ticket from this traffic and logon as that user - clearly this is bad security and needs SNC to make it secure.
Thanks,
Tim -
Windows 8 has problems with webcams?
Whenever I launch Flash in any browser I can not get webcam to work! It won't work in conjunction with the mic is the problem I think. The webcam and mic work fine on their own. However Flash either crashes or refuses to show webcam depending on browser.
Hi,
1) Could you please share more information about the avtivation with us? How did you activate your PC? which method? What is the detailed error message prompted?
Here's an solution for KMS activation (it's for Windows 7, but the solution is similiar in Windows 8.1. time synchronize)
When trying to activate you get 0xC004F074 with description "The Key Management Server (KMS) is unavailable"
http://support.microsoft.com/kb/974998
2) Regarding to the account, I suggest you check the account properties under "AD users and computers", check what group the account belongs to. or run whoami command with the /groups option to find more information about the user
http://technet.microsoft.com/en-in/library/cc771299.aspx
At the end of your post, you mentioned the command prompt, may I know what is the issue with command prompt? Please check if there're some GPO applied which restrict some user operations.
Yolanda Zhu
TechNet Community Support -
There is misleading information in two system views (sys.data_spaces & sys.destination_data_spaces) about the physical location of data after a partitioning MERGE and before an INDEX REBUILD operation on a partitioned table. In SQL Server 2012 SP1 CU6,
the script below (SQLCMD mode, set DataDrive & LogDrive variables for the runtime environment) will create a test database with file groups and files to support a partitioned table. The partition function and scheme spread the test data across
4 files groups, an empty partition, file group and file are maintained at the start and end of the range. A problem occurs after the SWITCH and MERGE RANGE operations, the views sys.data_spaces & sys.destination_data_spaces show the logical, not the physical,
location of data.
--=================================================================================
-- PartitionLabSetup_RangeRight.sql
-- 001. Create test database
-- 002. Add file groups and files
-- 003. Create partition function and schema
-- 004. Create and populate a test table
--=================================================================================
USE [master]
GO
-- 001 - Create Test Database
:SETVAR DataDrive "D:\SQL\Data\"
:SETVAR LogDrive "D:\SQL\Logs\"
:SETVAR DatabaseName "workspace"
:SETVAR TableName "TestTable"
-- Drop if exists and create Database
IF DATABASEPROPERTYEX(N'$(databasename)','Status') IS NOT NULL
BEGIN
ALTER DATABASE $(DatabaseName) SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DROP DATABASE $(DatabaseName)
END
CREATE DATABASE $(DatabaseName)
ON
( NAME = $(DatabaseName)_data,
FILENAME = N'$(DataDrive)$(DatabaseName)_data.mdf',
SIZE = 10,
MAXSIZE = 500,
FILEGROWTH = 5 )
LOG ON
( NAME = $(DatabaseName)_log,
FILENAME = N'$(LogDrive)$(DatabaseName).ldf',
SIZE = 5MB,
MAXSIZE = 5000MB,
FILEGROWTH = 5MB ) ;
GO
-- 002. Add file groups and files
--:SETVAR DatabaseName "workspace"
--:SETVAR TableName "TestTable"
--:SETVAR DataDrive "D:\SQL\Data\"
--:SETVAR LogDrive "D:\SQL\Logs\"
DECLARE @nSQL NVARCHAR(2000) ;
DECLARE @x INT = 1;
WHILE @x <= 6
BEGIN
SELECT @nSQL =
'ALTER DATABASE $(DatabaseName)
ADD FILEGROUP $(TableName)_fg' + RTRIM(CAST(@x AS CHAR(5))) + ';
ALTER DATABASE $(DatabaseName)
ADD FILE
NAME= ''$(TableName)_f' + CAST(@x AS CHAR(5)) + ''',
FILENAME = ''$(DataDrive)\$(TableName)_f' + RTRIM(CAST(@x AS CHAR(5))) + '.ndf''
TO FILEGROUP $(TableName)_fg' + RTRIM(CAST(@x AS CHAR(5))) + ';'
EXEC sp_executeSQL @nSQL;
SET @x = @x + 1;
END
-- 003. Create partition function and schema
--:SETVAR TableName "TestTable"
--:SETVAR DatabaseName "workspace"
USE $(DatabaseName);
CREATE PARTITION FUNCTION $(TableName)_func (int)
AS RANGE RIGHT FOR VALUES
0,
15,
30,
45,
60
CREATE PARTITION SCHEME $(TableName)_scheme
AS
PARTITION $(TableName)_func
TO
$(TableName)_fg1,
$(TableName)_fg2,
$(TableName)_fg3,
$(TableName)_fg4,
$(TableName)_fg5,
$(TableName)_fg6
-- Create TestTable
--:SETVAR TableName "TestTable"
--:SETVAR BackupDrive "D:\SQL\Backups\"
--:SETVAR DatabaseName "workspace"
CREATE TABLE [dbo].$(TableName)(
[Partition_PK] [int] NOT NULL,
[GUID_PK] [uniqueidentifier] NOT NULL,
[CreateDate] [datetime] NULL,
[CreateServer] [nvarchar](50) NULL,
[RandomNbr] [int] NULL,
CONSTRAINT [PK_$(TableName)] PRIMARY KEY CLUSTERED
[Partition_PK] ASC,
[GUID_PK] ASC
) ON $(TableName)_scheme(Partition_PK)
) ON $(TableName)_scheme(Partition_PK)
ALTER TABLE [dbo].$(TableName) ADD CONSTRAINT [DF_$(TableName)_GUID_PK] DEFAULT (newid()) FOR [GUID_PK]
ALTER TABLE [dbo].$(TableName) ADD CONSTRAINT [DF_$(TableName)_CreateDate] DEFAULT (getdate()) FOR [CreateDate]
ALTER TABLE [dbo].$(TableName) ADD CONSTRAINT [DF_$(TableName)_CreateServer] DEFAULT (@@servername) FOR [CreateServer]
-- 004. Create and populate a test table
-- Load TestTable Data - Seconds 0-59 are used as the Partitoning Key
--:SETVAR TableName "TestTable"
SET NOCOUNT ON;
DECLARE @Now DATETIME = GETDATE()
WHILE @Now > DATEADD(minute,-1,GETDATE())
BEGIN
INSERT INTO [dbo].$(TableName)
([Partition_PK]
,[RandomNbr])
VALUES
DATEPART(second,GETDATE())
,ROUND((RAND() * 100),0)
END
-- Confirm table partitioning - http://lextonr.wordpress.com/tag/sys-destination_data_spaces/
SELECT
N'DatabaseName' = DB_NAME()
, N'SchemaName' = s.name
, N'TableName' = o.name
, N'IndexName' = i.name
, N'IndexType' = i.type_desc
, N'PartitionScheme' = ps.name
, N'DataSpaceName' = ds.name
, N'DataSpaceType' = ds.type_desc
, N'PartitionFunction' = pf.name
, N'PartitionNumber' = dds.destination_id
, N'BoundaryValue' = prv.value
, N'RightBoundary' = pf.boundary_value_on_right
, N'PartitionFileGroup' = ds2.name
, N'RowsOfData' = p.[rows]
FROM
sys.objects AS o
INNER JOIN sys.schemas AS s
ON o.[schema_id] = s.[schema_id]
INNER JOIN sys.partitions AS p
ON o.[object_id] = p.[object_id]
INNER JOIN sys.indexes AS i
ON p.[object_id] = i.[object_id]
AND p.index_id = i.index_id
INNER JOIN sys.data_spaces AS ds
ON i.data_space_id = ds.data_space_id
INNER JOIN sys.partition_schemes AS ps
ON ds.data_space_id = ps.data_space_id
INNER JOIN sys.partition_functions AS pf
ON ps.function_id = pf.function_id
LEFT OUTER JOIN sys.partition_range_values AS prv
ON pf.function_id = prv.function_id
AND p.partition_number = prv.boundary_id
LEFT OUTER JOIN sys.destination_data_spaces AS dds
ON ps.data_space_id = dds.partition_scheme_id
AND p.partition_number = dds.destination_id
LEFT OUTER JOIN sys.data_spaces AS ds2
ON dds.data_space_id = ds2.data_space_id
ORDER BY
DatabaseName
,SchemaName
,TableName
,IndexName
,PartitionNumber
--=================================================================================
-- SECTION 2 - SWITCH OUT
-- 001 - Create TestTableOut
-- 002 - Switch out partition in range 0-14
-- 003 - Merge range 0 -29
-- 001. TestTableOut
:SETVAR TableName "TestTable"
IF OBJECT_ID('dbo.$(TableName)Out') IS NOT NULL
DROP TABLE [dbo].[$(TableName)Out]
CREATE TABLE [dbo].[$(TableName)Out](
[Partition_PK] [int] NOT NULL,
[GUID_PK] [uniqueidentifier] NOT NULL,
[CreateDate] [datetime] NULL,
[CreateServer] [nvarchar](50) NULL,
[RandomNbr] [int] NULL,
CONSTRAINT [PK_$(TableName)Out] PRIMARY KEY CLUSTERED
[Partition_PK] ASC,
[GUID_PK] ASC
) ON $(TableName)_fg2;
GO
-- 002 - Switch out partition in range 0-14
--:SETVAR TableName "TestTable"
ALTER TABLE dbo.$(TableName)
SWITCH PARTITION 2 TO dbo.$(TableName)Out;
-- 003 - Merge range 0 - 29
--:SETVAR TableName "TestTable"
ALTER PARTITION FUNCTION $(TableName)_func()
MERGE RANGE (15);
-- Confirm table partitioning
-- Original source of this query - http://lextonr.wordpress.com/tag/sys-destination_data_spaces/
SELECT
N'DatabaseName' = DB_NAME()
, N'SchemaName' = s.name
, N'TableName' = o.name
, N'IndexName' = i.name
, N'IndexType' = i.type_desc
, N'PartitionScheme' = ps.name
, N'DataSpaceName' = ds.name
, N'DataSpaceType' = ds.type_desc
, N'PartitionFunction' = pf.name
, N'PartitionNumber' = dds.destination_id
, N'BoundaryValue' = prv.value
, N'RightBoundary' = pf.boundary_value_on_right
, N'PartitionFileGroup' = ds2.name
, N'RowsOfData' = p.[rows]
FROM
sys.objects AS o
INNER JOIN sys.schemas AS s
ON o.[schema_id] = s.[schema_id]
INNER JOIN sys.partitions AS p
ON o.[object_id] = p.[object_id]
INNER JOIN sys.indexes AS i
ON p.[object_id] = i.[object_id]
AND p.index_id = i.index_id
INNER JOIN sys.data_spaces AS ds
ON i.data_space_id = ds.data_space_id
INNER JOIN sys.partition_schemes AS ps
ON ds.data_space_id = ps.data_space_id
INNER JOIN sys.partition_functions AS pf
ON ps.function_id = pf.function_id
LEFT OUTER JOIN sys.partition_range_values AS prv
ON pf.function_id = prv.function_id
AND p.partition_number = prv.boundary_id
LEFT OUTER JOIN sys.destination_data_spaces AS dds
ON ps.data_space_id = dds.partition_scheme_id
AND p.partition_number = dds.destination_id
LEFT OUTER JOIN sys.data_spaces AS ds2
ON dds.data_space_id = ds2.data_space_id
ORDER BY
DatabaseName
,SchemaName
,TableName
,IndexName
,PartitionNumber
The table below shows the results of the ‘Confirm Table Partitioning’ query, before and after the MERGE.
The T-SQL code below illustrates the problem.
-- PartitionLab_RangeRight
USE workspace;
DROP TABLE dbo.TestTableOut;
USE master;
ALTER DATABASE workspace
REMOVE FILE TestTable_f3 ;
-- ERROR
--Msg 5042, Level 16, State 1, Line 1
--The file 'TestTable_f3 ' cannot be removed because it is not empty.
ALTER DATABASE workspace
REMOVE FILE TestTable_f2 ;
-- Works surprisingly!!
use workspace;
ALTER INDEX [PK_TestTable] ON [dbo].[TestTable] REBUILD PARTITION = 2;
--Msg 622, Level 16, State 3, Line 2
--The filegroup "TestTable_fg2" has no files assigned to it. Tables, indexes, text columns, ntext columns, and image columns cannot be populated on this filegroup until a file is added.
--The statement has been terminated.
If you run ALTER INDEX REBUILD before trying to remove files from File Group 3, it works. Rerun the database setup script then the code below.
-- RANGE RIGHT
-- Rerun PartitionLabSetup_RangeRight.sql before the code below
USE workspace;
DROP TABLE dbo.TestTableOut;
ALTER INDEX [PK_TestTable] ON [dbo].[TestTable] REBUILD PARTITION = 2;
USE master;
ALTER DATABASE workspace
REMOVE FILE TestTable_f3;
-- Works as expected!!
The file in File Group 2 appears to contain data but it can be dropped. Although the system views are reporting the data in File Group 2, it still physically resides in File Group 3 and isn’t moved until the index is rebuilt. The RANGE RIGHT function means
the left file group (File Group 2) is retained when splitting ranges.
RANGE LEFT would have retained the data in File Group 3 where it already resided, no INDEX REBUILD is necessary to effectively complete the MERGE operation. The script below implements the same partitioning strategy (data distribution between partitions)
on the test table but uses different boundary definitions and RANGE LEFT.
--=================================================================================
-- PartitionLabSetup_RangeLeft.sql
-- 001. Create test database
-- 002. Add file groups and files
-- 003. Create partition function and schema
-- 004. Create and populate a test table
--=================================================================================
USE [master]
GO
-- 001 - Create Test Database
:SETVAR DataDrive "D:\SQL\Data\"
:SETVAR LogDrive "D:\SQL\Logs\"
:SETVAR DatabaseName "workspace"
:SETVAR TableName "TestTable"
-- Drop if exists and create Database
IF DATABASEPROPERTYEX(N'$(databasename)','Status') IS NOT NULL
BEGIN
ALTER DATABASE $(DatabaseName) SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DROP DATABASE $(DatabaseName)
END
CREATE DATABASE $(DatabaseName)
ON
( NAME = $(DatabaseName)_data,
FILENAME = N'$(DataDrive)$(DatabaseName)_data.mdf',
SIZE = 10,
MAXSIZE = 500,
FILEGROWTH = 5 )
LOG ON
( NAME = $(DatabaseName)_log,
FILENAME = N'$(LogDrive)$(DatabaseName).ldf',
SIZE = 5MB,
MAXSIZE = 5000MB,
FILEGROWTH = 5MB ) ;
GO
-- 002. Add file groups and files
--:SETVAR DatabaseName "workspace"
--:SETVAR TableName "TestTable"
--:SETVAR DataDrive "D:\SQL\Data\"
--:SETVAR LogDrive "D:\SQL\Logs\"
DECLARE @nSQL NVARCHAR(2000) ;
DECLARE @x INT = 1;
WHILE @x <= 6
BEGIN
SELECT @nSQL =
'ALTER DATABASE $(DatabaseName)
ADD FILEGROUP $(TableName)_fg' + RTRIM(CAST(@x AS CHAR(5))) + ';
ALTER DATABASE $(DatabaseName)
ADD FILE
NAME= ''$(TableName)_f' + CAST(@x AS CHAR(5)) + ''',
FILENAME = ''$(DataDrive)\$(TableName)_f' + RTRIM(CAST(@x AS CHAR(5))) + '.ndf''
TO FILEGROUP $(TableName)_fg' + RTRIM(CAST(@x AS CHAR(5))) + ';'
EXEC sp_executeSQL @nSQL;
SET @x = @x + 1;
END
-- 003. Create partition function and schema
--:SETVAR TableName "TestTable"
--:SETVAR DatabaseName "workspace"
USE $(DatabaseName);
CREATE PARTITION FUNCTION $(TableName)_func (int)
AS RANGE LEFT FOR VALUES
-1,
14,
29,
44,
59
CREATE PARTITION SCHEME $(TableName)_scheme
AS
PARTITION $(TableName)_func
TO
$(TableName)_fg1,
$(TableName)_fg2,
$(TableName)_fg3,
$(TableName)_fg4,
$(TableName)_fg5,
$(TableName)_fg6
-- Create TestTable
--:SETVAR TableName "TestTable"
--:SETVAR BackupDrive "D:\SQL\Backups\"
--:SETVAR DatabaseName "workspace"
CREATE TABLE [dbo].$(TableName)(
[Partition_PK] [int] NOT NULL,
[GUID_PK] [uniqueidentifier] NOT NULL,
[CreateDate] [datetime] NULL,
[CreateServer] [nvarchar](50) NULL,
[RandomNbr] [int] NULL,
CONSTRAINT [PK_$(TableName)] PRIMARY KEY CLUSTERED
[Partition_PK] ASC,
[GUID_PK] ASC
) ON $(TableName)_scheme(Partition_PK)
) ON $(TableName)_scheme(Partition_PK)
ALTER TABLE [dbo].$(TableName) ADD CONSTRAINT [DF_$(TableName)_GUID_PK] DEFAULT (newid()) FOR [GUID_PK]
ALTER TABLE [dbo].$(TableName) ADD CONSTRAINT [DF_$(TableName)_CreateDate] DEFAULT (getdate()) FOR [CreateDate]
ALTER TABLE [dbo].$(TableName) ADD CONSTRAINT [DF_$(TableName)_CreateServer] DEFAULT (@@servername) FOR [CreateServer]
-- 004. Create and populate a test table
-- Load TestTable Data - Seconds 0-59 are used as the Partitoning Key
--:SETVAR TableName "TestTable"
SET NOCOUNT ON;
DECLARE @Now DATETIME = GETDATE()
WHILE @Now > DATEADD(minute,-1,GETDATE())
BEGIN
INSERT INTO [dbo].$(TableName)
([Partition_PK]
,[RandomNbr])
VALUES
DATEPART(second,GETDATE())
,ROUND((RAND() * 100),0)
END
-- Confirm table partitioning - http://lextonr.wordpress.com/tag/sys-destination_data_spaces/
SELECT
N'DatabaseName' = DB_NAME()
, N'SchemaName' = s.name
, N'TableName' = o.name
, N'IndexName' = i.name
, N'IndexType' = i.type_desc
, N'PartitionScheme' = ps.name
, N'DataSpaceName' = ds.name
, N'DataSpaceType' = ds.type_desc
, N'PartitionFunction' = pf.name
, N'PartitionNumber' = dds.destination_id
, N'BoundaryValue' = prv.value
, N'RightBoundary' = pf.boundary_value_on_right
, N'PartitionFileGroup' = ds2.name
, N'RowsOfData' = p.[rows]
FROM
sys.objects AS o
INNER JOIN sys.schemas AS s
ON o.[schema_id] = s.[schema_id]
INNER JOIN sys.partitions AS p
ON o.[object_id] = p.[object_id]
INNER JOIN sys.indexes AS i
ON p.[object_id] = i.[object_id]
AND p.index_id = i.index_id
INNER JOIN sys.data_spaces AS ds
ON i.data_space_id = ds.data_space_id
INNER JOIN sys.partition_schemes AS ps
ON ds.data_space_id = ps.data_space_id
INNER JOIN sys.partition_functions AS pf
ON ps.function_id = pf.function_id
LEFT OUTER JOIN sys.partition_range_values AS prv
ON pf.function_id = prv.function_id
AND p.partition_number = prv.boundary_id
LEFT OUTER JOIN sys.destination_data_spaces AS dds
ON ps.data_space_id = dds.partition_scheme_id
AND p.partition_number = dds.destination_id
LEFT OUTER JOIN sys.data_spaces AS ds2
ON dds.data_space_id = ds2.data_space_id
ORDER BY
DatabaseName
,SchemaName
,TableName
,IndexName
,PartitionNumber
--=================================================================================
-- SECTION 2 - SWITCH OUT
-- 001 - Create TestTableOut
-- 002 - Switch out partition in range 0-14
-- 003 - Merge range 0 -29
-- 001. TestTableOut
:SETVAR TableName "TestTable"
IF OBJECT_ID('dbo.$(TableName)Out') IS NOT NULL
DROP TABLE [dbo].[$(TableName)Out]
CREATE TABLE [dbo].[$(TableName)Out](
[Partition_PK] [int] NOT NULL,
[GUID_PK] [uniqueidentifier] NOT NULL,
[CreateDate] [datetime] NULL,
[CreateServer] [nvarchar](50) NULL,
[RandomNbr] [int] NULL,
CONSTRAINT [PK_$(TableName)Out] PRIMARY KEY CLUSTERED
[Partition_PK] ASC,
[GUID_PK] ASC
) ON $(TableName)_fg2;
GO
-- 002 - Switch out partition in range 0-14
--:SETVAR TableName "TestTable"
ALTER TABLE dbo.$(TableName)
SWITCH PARTITION 2 TO dbo.$(TableName)Out;
-- 003 - Merge range 0 - 29
:SETVAR TableName "TestTable"
ALTER PARTITION FUNCTION $(TableName)_func()
MERGE RANGE (14);
-- Confirm table partitioning
-- Original source of this query - http://lextonr.wordpress.com/tag/sys-destination_data_spaces/
SELECT
N'DatabaseName' = DB_NAME()
, N'SchemaName' = s.name
, N'TableName' = o.name
, N'IndexName' = i.name
, N'IndexType' = i.type_desc
, N'PartitionScheme' = ps.name
, N'DataSpaceName' = ds.name
, N'DataSpaceType' = ds.type_desc
, N'PartitionFunction' = pf.name
, N'PartitionNumber' = dds.destination_id
, N'BoundaryValue' = prv.value
, N'RightBoundary' = pf.boundary_value_on_right
, N'PartitionFileGroup' = ds2.name
, N'RowsOfData' = p.[rows]
FROM
sys.objects AS o
INNER JOIN sys.schemas AS s
ON o.[schema_id] = s.[schema_id]
INNER JOIN sys.partitions AS p
ON o.[object_id] = p.[object_id]
INNER JOIN sys.indexes AS i
ON p.[object_id] = i.[object_id]
AND p.index_id = i.index_id
INNER JOIN sys.data_spaces AS ds
ON i.data_space_id = ds.data_space_id
INNER JOIN sys.partition_schemes AS ps
ON ds.data_space_id = ps.data_space_id
INNER JOIN sys.partition_functions AS pf
ON ps.function_id = pf.function_id
LEFT OUTER JOIN sys.partition_range_values AS prv
ON pf.function_id = prv.function_id
AND p.partition_number = prv.boundary_id
LEFT OUTER JOIN sys.destination_data_spaces AS dds
ON ps.data_space_id = dds.partition_scheme_id
AND p.partition_number = dds.destination_id
LEFT OUTER JOIN sys.data_spaces AS ds2
ON dds.data_space_id = ds2.data_space_id
ORDER BY
DatabaseName
,SchemaName
,TableName
,IndexName
,PartitionNumber
The table below shows the results of the ‘Confirm Table Partitioning’ query, before and after the MERGE.
The data in the File and File Group to be dropped (File Group 2) has already been switched out; File Group 3 contains the data so no index rebuild is needed to move data and complete the MERGE.
RANGE RIGHT would not be a problem in a ‘Sliding Window’ if the same file group is used for all partitions, when they are created and dropped it introduces a dependency on full index rebuilds. Larger tables are typically partitioned and a full index rebuild
might be an expensive operation. I’m not sure how a RANGE RIGHT partitioning strategy could be implemented, with an ascending partitioning key, using multiple file groups without having to move data. Using a single file group (multiple files) for all partitions
within a table would avoid physically moving data between file groups; no index rebuild would be necessary to complete a MERGE and system views would accurately reflect the physical location of data.
If a RANGE RIGHT partition function is used, the data is physically in the wrong file group after the MERGE assuming a typical ascending partitioning key, and the 'Data Spaces' system views might be misleading. Thanks to Manuj and Chris for a lot of help
investigating this.
NOTE 10/03/2014 - The solution
The solution is so easy it's embarrassing, I was using the wrong boundary points for the MERGE (both RANGE LEFT & RANGE RIGHT) to get rid of historic data.
-- Wrong Boundary Point Range Right
--ALTER PARTITION FUNCTION $(TableName)_func()
--MERGE RANGE (15);
-- Wrong Boundary Point Range Left
--ALTER PARTITION FUNCTION $(TableName)_func()
--MERGE RANGE (14);
-- Correct Boundary Pounts for MERGE
ALTER PARTITION FUNCTION $(TableName)_func()
MERGE RANGE (0); -- or -1 for RANGE LEFT
The empty, switched out partition (on File Group 2) is then MERGED with the empty partition maintained at the start of the range and no data movement is necessary. I retract the suggestion that a problem exists with RANGE RIGHT Sliding Windows using multiple
file groups and apologize :-)Hi Paul Brewer,
Thanks for your post and glad to hear that the issue is resolved. It is kind of you post a reply to share your solution. That way, other community members could benefit from your sharing.
Regards.
Sofiya Li
Sofiya Li
TechNet Community Support -
Windows photo viewer - problem with JPEG files
Can not open JPEG files and can not create JPEG files from other software (For example from Solidworks).
When I try to right click on a JPEG, a notice window appears written: "Windows Explorer has stopped working - Windows is
checking for a solution to the problem" and then the notice box disapears, the desktop appears and I can continue working.
From the other side - If I try to save as JPEG a screen of Solidworks (like a view of a part) the Solidworks falls but the JPEG
is created (I can see its name in the directory I created it).
I can open the JPEGS with the Paint software if I want but not with the Windows Photo Viewer.
I have the feeling that the Windows Photo Viewer disapeared from my computer - just a feeling.
I will appreciate your assistance.
Avi T. 2014Hi,
According to your description,please re-associate the .jpeg with Windows photo viewer.
1.Open Control Panel\All Control Panel Items\Default Programs\Set Default Programs.
2.Click Windows Photo Viewer, and choose defaults for this program, check the .jpeg, and then click Save.
3.Next,click Windows Photo Viewer again, and click Set this program as default.
As you said, when you tried to right click on a JPEG, Windows Explorer stopped working.
I suggest you use ShellExview to remove the third-party shell extension.
http://www.nirsoft.net/utils/shexview.html
Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
Regards,
Kelvin Xu
TechNet Community Support -
IE 11 & Windows 8.1 - problems with MS partner portal
Hello,
with Windows 8.1 and IE 11 it is not possible to access the profil page on partner.microsoft.com.
It tells me to use Internet Explorer ;-)
Cheers
Yves
I also reported this error to Partner Channel Switzerland.It tells me to use Internet Explorer ;-)
Implies that a site is doing browser sniffing looking for MSIE in a request's User-Agent string. In standard mode IE11 just shows Mozilla/5.0 (for HTML 5.0 support). Use the Developer Tools Console tab
to see this. E.g. enter navigator.userAgent Use the Developer Tools Emulation tab to change it to something your problem site would recognize better, such as IE8.
Robert Aldwinckle -
New computer (windows 7) connection problem with Verizon DSL
I just bought a new computer to replace a dead one. I took the old one away and plugged the new one into the Verizon cable. I have Verizon DSL, no wireless, no network at home, just a computer and a Westell modem.
On the new computer, I have a successful internet connection in that I can reach Google. I can conduct a Google search, but when I click on a search result I cannot reach that site. I CAN successfully send and receive Gmail. I CANNOT connect to Verizon's website, Amazon, Washington Post, Ebay, or most other sites. What happens when I try is a small box comes up in the browser window saying "Connecting to [name of site]" and the in-progress thing goes around and around. This will go on for as long as I let it (more than 1/2 hour), with no timeout or failure message -- just an empty browser window. Results are the same in Explorer and Firefox.
I hooked a borrowed computer into my Verizon line and the internet connection works fine to any site I try (I'm on it now). Verizon techs have also done a line test and it's fine.
I have taken the new computer (running Windows 7) back to the store 3 times. They have hooked it into an Earthlink DSL line there and have shown me they have no difficulty whatsoever going to any of the sites that are not working for me at home. They say the problem MUST be something to do with my Verizon connection.
I've called Verizon tech support 3 times now. They say it's not them, and there's nothing they can do -- but their Remote Assistant software isn't able to connect IN to my machine, just as I can't connect OUT to the Verizon site. I have asked for a more up-to-date modem and was refused.
I was tempted to just upgrade to FIOS but Verizon is being so unhelpful I am ready to bail on Verizon entirely. Before I do, can anyone suggest what might be going on here?I bought an HP computer at Staples and had the same problem. HP and Verizon could find no problems. Verizon said the would send me a new modem to see if that fixed the problem. The problem was corrected after Verizon sent me a new modem for free.
Maybe you are looking for
-
Can I Use an Old External Hard Drive to Back Up my MacBook Pro?
I am currently using a 2010 MacBook Pro with Snow Leopard (Mac OS X 10.6.8) and I am thinking of upgrading to Mountain Lion when it comes out. So that means I should really back up my Mac. I have never backed up my Mac before nor have I ever backed u
-
1.HOW TO USE IF CONDITIONS IN SMARTFORMS? 2.HOW TO DRAW BOXES IN SMARTFORMS I TRIED TO DRAW BOX WITH FOLLOWING POSITION XORIGIN 5 CH YORIGIN 12 LN SIZE WIDTH 15 CH HEIGHT 2 LN BOX FRAME 10 TW INTENSITY 10 DONT KNOW WHY ITS NOT WORKING 3.How can I ma
-
Unable to execute a Interactive Adobe Form
Hi All, We have developed an Adobe Form in the Netweaver Developer Studio. The form has been integrated on to the portal as an iView. The issue is that this form gets executed only on systems in which Netweaver Developer Studio is installed. If I run
-
Problem connecting to jabber account after mac os x 10.5.5 update
Hallo, I have two accounts - an AIM and a jabber account. After installing the Mac OS X 10.5.5 update I got trouble on both accounts. Changing to port 443 fixed the AIM problem, but I still have problems connecting to my jabber account On console I g
-
Why don't my iPhone and iPad sync wirelessly anymore?
I just started college and ever since I got here, my phone and iPad 4 have not been syncing with iTunes wirelessly and it drives me crazy. I have wifi here and they're all connected to the same network...what might be preventing this from working?