Showing posts with label feature. Show all posts
Showing posts with label feature. Show all posts

Monday, March 19, 2012

"The feature(s) specified are not valid for this edition of SQL Server" error when ins

I've successfully installed SQL Server 2005 Standard Edition on an Enterprise edition of Windows Server 2003 x64. I'm now (and also tried & failed during the install of the database engine) attempting to install the "Management Tools" component on the same server. However, in all my attempts to do so, I receive the following error:

The feature(s) specified are not valid for this edition of SQL Server

The message box does not list the features that are not valid but since the only item I've selected to install is the "Management Tools" option under "Client Components" it obviously points to something with that.

Am I missing something or are the Management Tools not supported in my config - most notably SQL Server 2005 Standard edition running on Windows Server 2003 x64?

Thanks.

- Lance

Colorado State University

I was finally able to install the "Management Tools" with a pretty simple solution: Install using the installer files directly off of the physical DVD. My prior attempts had all been using a copy of the files on the DVD stored locally on the server. Incidently, I had used the same copied files to successfully install the DB engine and SSIS. Go figure.

"Select top (n) from <table>" missing from Management Studio

In sql 2000 one could right-click a table (under Enterprise Manager) and have it return the "top n" rows in the table. That feature seems to be missing from Management Studio. Am I correct or is it just hiding somewhere?

TIA,

Barkingdog

No, its definitely not there, you will have to tweak the SQL Statement by clicking the appropiate item in the iconbar.

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de
|||

>>you will have to tweak the SQL Statement by clicking the appropiate item in the iconbar.
>>

What "item" are you referring to? The only way I can see to do this is open a new Query Editor pane and type the sql directly.

TIA,

Barkingdog

|||If you open a table you will have an icon with "SQL" written on it, you can change to the SQL Statement whcih was executed to have the data displayed, which is normally SELECT * From SomeTable and can change it the way you want to query the data.

HTH, jens Suessmeyer.

http://www.sqlserver2005.de

Friday, March 16, 2012

"Remember Password" feature behaves like child with Attention Deficit Disorder

In Sql Server Management Studio, when you connect to a server using SQL Server authentication, there is a checkbox "Remember Password". This is really really annoying and causing me great frustration. We have passwords which are very long and have numeric and alpha and symbol characters. They are easy to type wrong. As a developer, my workstation has been secured by other means. I wish to make use of "Remember Password" so that I can more quickly DO MY WORK. For months now, whenever our network connections were severed but we were connected already, the next time we tried to connect, the freakin password would be cleared out. This is like Alzheimer's Disease. So, I've learned not to attempt to connect again or execute queries or navigate around in the property tree. I just wait until transient network problem goes away. Then I make my next connection, of course I have to re-type this incredibly long password again, RE-check the "Remember Password" box, get connected, then quit Sql Server Management Studio. This seems to be the only way for it to truely REMEMBER it. Then I restart Sql Server Management Studio, reconnect, and voila, the password has already been filled in for me. NOW, however things are different. There are NO network transient problems. Instead what we have going on here is more like a child with Attention Deficit Disorder. SQL Server Management Studio is FORCING me to retype the password upon every NEW execution. I swear, sometimes when I encounter this problem it totally removes my ability to perform my work. Instead, I picture grabbing the developers who were responsible for making this tool by the neck and like a bobble-head doll, shake them until their head's roll off. That's how frustrating this problem has become for me. Of course, there's going to be some people who read this and chuckle.. well.. it is kind of funny how I've described my frustrations, but really I'd like to SOLVE the problem somehow without having to read ten tons of documentation somewhere ridden with superfluous jargon written by someone who'd rather spread words in a flower garden than get to the freakin' point. Smile Does anyone know how to solve this problem? hmmm... perhaps I should change the password to an empty string? Yeah, that would be appropriate for this problem where Sql Server Management Studio has a zero memory retention skill (ADD), but.. oh... lest we forget, that would cause a security risk now wouldn't it?

Could you please file a defect report for this on http://connect.microsoft.com/sqlserver? Issues reported on the Connect site are automatically ported into our internal issue tracking system so we don't lose any of the information you provide there.

We run in a Windows Domain here at work, so for our day-to-day work we almost universally use Windows Authentication logins and we never have to explicitly provide a password to SQL Server. If you are running in a Windows Domain, IMHO that's the easiest workaround for your problem. This is also the safest route with respect to security - any saved password is a potential security threat. Note that even in workgroup environments you can use Windows Authentication with local Windows logins if Management Studio is running on the same machine as the server.

As another work-around to the problem, you can save off a copy of your local c:\Documents and Settings\{you}\Application Data\Microsoft\Microsoft SQL Server\90\Tools\Shell\mru.dat file. When management studio overwrites your saved password with an empty string like you describe, you could close management studio and then copy your backup mru.dat file over the more recent one. This will reset the saved settings of the connection dialog and other "most recently used" items in the UI to their saved values.

Management Studio does encrypt saved passwords, but no encryption is unbreakable. Be sure to restrict access to your saved mru.dat file to help prevent unauthorized access to your server.

Hope this helps,

Steve

|||

For the sake of followup I will mark thread as sticky.

Joe

Have you reported in the connect site as per Steve's reference?

|||

I actually don't understand, even as long as the description is, because I don't see this behavior at all.

Let me put in some very simple and straightforward things, as you've asked for.

Open Registered Server, create a new registration, check the save password box, and save the registration. From that point forward, you can ALWAYS right click on a registered server and select Connect | New Query or Connect | Object Explorer. I have NEVER seen it lose one of these passwords for any reason and I've done this in over 100 different customer environments, spanning a couple hundred different workstations.

Now, to the other part. If you are launching a query window from the object browser, the server has to be highlighted for SSMS to have a valid context to launch the query window against. If you launch a query window by using the New Query button and you get a dialog box to login, then it could not find a context, which means that you didn't have the server or a node underneath the server highlighted when you hit the button.

As far as the Remember Password checkbox in the connect dialog goes, I've never used it and have no plans at all to ever use it. I save everything in the Resgistered Servers, so I can always get to what I need without using this piece of the Connect dialog.

So, you wanted a valid workaround for any situation whatsoever, here it is. Use the Regsitered Servers task pane. If you have a query window open when you lose the connection, launch a new query window from the Registered Servers task pane, and then copy/paste the contents of the query window into the new one you just launched. It isn't pretty, but it will work 100% of the time.

|||This guy is completely right.

Let me explain how I first got to this forum.

For the last two years of using SQL Server Management Studio I have constantly been asked for my password whenever I leave my home and connect my laptop at work, or go home and connect my laptop to my home network.

Today was the breaking point for me, and I decided to type this topic into google and "get lucky".

Voila, here I am, and I can attest to this behavior of SSMS. I believe we're both addressing the issue concerning the login prompt when SSMS loads--not the "Registered Servers" pane.

It just behave like a kid with ADD and this behavior is so annoying it makes me pull my hair out and want to use Enterprise Manager, which I thought I would never say, but its true. At least EM saved my passwords...

The context switching is also very annoying.

I could rant for days about the UI fricition in SSMS, such as how the tabbed document layout's file names are so narrow in width that file names become unreadable, the MDI environment forces me to play the "resize window game", and how the summary name column gets resized to default every time you view a new object in the object explorer, but I'll save those bits for another thread.

|||

Here here!

I've had this problem myself ever since I started using SSMS. It's really obnoxious, because I love pretty much every other feature (except for the pummeling that DTS has undergone, but that's more a beef with SQL than SSMS), but this one bug alone has me very close to switching back to Enterprise Manager.

Any way, if you have managed to come up with a solution to this, I'd love to hear it. For me there doesn't even seem to be any rhyme or reason. It will remember my password for two or three connections, maybe four if I'm particularly luck, then spontaneously forget it again. And what's really awful is I'm regularly connecting to six or so different SQL servers, each with long, very strong passwords, that I have to go look up every third or so time I connect to them. I've just been dealing with it until today, when I finally broke down and decided that this was a stupid enough bug that there simply must be an easy fix for it. And after five pages of Google search results, I've drawn the conclusion that a lot of people seem to have this problem, but nobody has a fix for it.

Attention MS: Please please please please please fix this bug and release a patch!

|||Well, you can't use Enterprise Manager. It does not work against SQL Server 2005 instances. Don't know on the connection dialog when you launch SSMS. The very first thing that I configure is to launch SSMS into a blank environment so that I can choose what I want to do from there instead of always launching a query window. As for a workaround, that's 3 posts up, use the Registered Servers task pane.|||

Or Microsoft could just fix SSMS...

"Remember Password" feature behaves like child with Attention Deficit Disorder

In Sql Server Management Studio, when you connect to a server using SQL Server authentication, there is a checkbox "Remember Password". This is really really annoying and causing me great frustration. We have passwords which are very long and have numeric and alpha and symbol characters. They are easy to type wrong. As a developer, my workstation has been secured by other means. I wish to make use of "Remember Password" so that I can more quickly DO MY WORK. For months now, whenever our network connections were severed but we were connected already, the next time we tried to connect, the freakin password would be cleared out. This is like Alzheimer's Disease. So, I've learned not to attempt to connect again or execute queries or navigate around in the property tree. I just wait until transient network problem goes away. Then I make my next connection, of course I have to re-type this incredibly long password again, RE-check the "Remember Password" box, get connected, then quit Sql Server Management Studio. This seems to be the only way for it to truely REMEMBER it. Then I restart Sql Server Management Studio, reconnect, and voila, the password has already been filled in for me. NOW, however things are different. There are NO network transient problems. Instead what we have going on here is more like a child with Attention Deficit Disorder. SQL Server Management Studio is FORCING me to retype the password upon every NEW execution. I swear, sometimes when I encounter this problem it totally removes my ability to perform my work. Instead, I picture grabbing the developers who were responsible for making this tool by the neck and like a bobble-head doll, shake them until their head's roll off. That's how frustrating this problem has become for me. Of course, there's going to be some people who read this and chuckle.. well.. it is kind of funny how I've described my frustrations, but really I'd like to SOLVE the problem somehow without having to read ten tons of documentation somewhere ridden with superfluous jargon written by someone who'd rather spread words in a flower garden than get to the freakin' point. Smile Does anyone know how to solve this problem? hmmm... perhaps I should change the password to an empty string? Yeah, that would be appropriate for this problem where Sql Server Management Studio has a zero memory retention skill (ADD), but.. oh... lest we forget, that would cause a security risk now wouldn't it?

Could you please file a defect report for this on http://connect.microsoft.com/sqlserver? Issues reported on the Connect site are automatically ported into our internal issue tracking system so we don't lose any of the information you provide there.

We run in a Windows Domain here at work, so for our day-to-day work we almost universally use Windows Authentication logins and we never have to explicitly provide a password to SQL Server. If you are running in a Windows Domain, IMHO that's the easiest workaround for your problem. This is also the safest route with respect to security - any saved password is a potential security threat. Note that even in workgroup environments you can use Windows Authentication with local Windows logins if Management Studio is running on the same machine as the server.

As another work-around to the problem, you can save off a copy of your local c:\Documents and Settings\{you}\Application Data\Microsoft\Microsoft SQL Server\90\Tools\Shell\mru.dat file. When management studio overwrites your saved password with an empty string like you describe, you could close management studio and then copy your backup mru.dat file over the more recent one. This will reset the saved settings of the connection dialog and other "most recently used" items in the UI to their saved values.

Management Studio does encrypt saved passwords, but no encryption is unbreakable. Be sure to restrict access to your saved mru.dat file to help prevent unauthorized access to your server.

Hope this helps,

Steve

|||

For the sake of followup I will mark thread as sticky.

Joe

Have you reported in the connect site as per Steve's reference?

|||

I actually don't understand, even as long as the description is, because I don't see this behavior at all.

Let me put in some very simple and straightforward things, as you've asked for.

Open Registered Server, create a new registration, check the save password box, and save the registration. From that point forward, you can ALWAYS right click on a registered server and select Connect | New Query or Connect | Object Explorer. I have NEVER seen it lose one of these passwords for any reason and I've done this in over 100 different customer environments, spanning a couple hundred different workstations.

Now, to the other part. If you are launching a query window from the object browser, the server has to be highlighted for SSMS to have a valid context to launch the query window against. If you launch a query window by using the New Query button and you get a dialog box to login, then it could not find a context, which means that you didn't have the server or a node underneath the server highlighted when you hit the button.

As far as the Remember Password checkbox in the connect dialog goes, I've never used it and have no plans at all to ever use it. I save everything in the Resgistered Servers, so I can always get to what I need without using this piece of the Connect dialog.

So, you wanted a valid workaround for any situation whatsoever, here it is. Use the Regsitered Servers task pane. If you have a query window open when you lose the connection, launch a new query window from the Registered Servers task pane, and then copy/paste the contents of the query window into the new one you just launched. It isn't pretty, but it will work 100% of the time.

|||This guy is completely right.

Let me explain how I first got to this forum.

For the last two years of using SQL Server Management Studio I have constantly been asked for my password whenever I leave my home and connect my laptop at work, or go home and connect my laptop to my home network.

Today was the breaking point for me, and I decided to type this topic into google and "get lucky".

Voila, here I am, and I can attest to this behavior of SSMS. I believe we're both addressing the issue concerning the login prompt when SSMS loads--not the "Registered Servers" pane.

It just behave like a kid with ADD and this behavior is so annoying it makes me pull my hair out and want to use Enterprise Manager, which I thought I would never say, but its true. At least EM saved my passwords...

The context switching is also very annoying.

I could rant for days about the UI fricition in SSMS, such as how the tabbed document layout's file names are so narrow in width that file names become unreadable, the MDI environment forces me to play the "resize window game", and how the summary name column gets resized to default every time you view a new object in the object explorer, but I'll save those bits for another thread.

|||

Here here!

I've had this problem myself ever since I started using SSMS. It's really obnoxious, because I love pretty much every other feature (except for the pummeling that DTS has undergone, but that's more a beef with SQL than SSMS), but this one bug alone has me very close to switching back to Enterprise Manager.

Any way, if you have managed to come up with a solution to this, I'd love to hear it. For me there doesn't even seem to be any rhyme or reason. It will remember my password for two or three connections, maybe four if I'm particularly luck, then spontaneously forget it again. And what's really awful is I'm regularly connecting to six or so different SQL servers, each with long, very strong passwords, that I have to go look up every third or so time I connect to them. I've just been dealing with it until today, when I finally broke down and decided that this was a stupid enough bug that there simply must be an easy fix for it. And after five pages of Google search results, I've drawn the conclusion that a lot of people seem to have this problem, but nobody has a fix for it.

Attention MS: Please please please please please fix this bug and release a patch!

|||Well, you can't use Enterprise Manager. It does not work against SQL Server 2005 instances. Don't know on the connection dialog when you launch SSMS. The very first thing that I configure is to launch SSMS into a blank environment so that I can choose what I want to do from there instead of always launching a query window. As for a workaround, that's 3 posts up, use the Registered Servers task pane.|||

Or Microsoft could just fix SSMS...

Thursday, March 8, 2012

"Microsoft SQL Server 2005 Datamining Viewer Controls" feature pack

Hi,

I downloaeded "Microsoft SQL Server 2005 Datamining Viewer Controls" feature pack, and tried to run the dataminingviewerclient.exe.

When i view my local time series data mining model, It works well for single series model, but when i load a Microsoft time series model containing multiple data series, an unhandled exception occurs.

I post the error message below:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.AnalysisServices.Viewers.TimeSeriesViewer.PreprocessChartArrays(ArrayList rgPredicted, ArrayList rgActual, ArrayList rgDeviations)
at Microsoft.AnalysisServices.Viewers.TimeSeriesViewer.LoadChartSpace(MiningModel model)
at Microsoft.AnalysisServices.Viewers.TSCheckedListViewCombo.HandleChangesCommitted(Object sender, EventArgs ea)
at Microsoft.DataWarehouse.Controls.BaseControlComboBox.OnCommittedChanges(EventArgs e)
at Microsoft.DataWarehouse.Controls.BaseControlComboBox.SetSelection(String str, Object obj)
at Microsoft.AnalysisServices.Viewers.TimeSeriesViewer.InitializeCurrentlySelectedPage(Object context)
at Microsoft.AnalysisServices.Viewers.TreeViewer.viewerTabControl_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.TabControl.WmSelChange()
at System.Windows.Forms.TabControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///E:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
-
DataMiningViewerClient
Assembly Version: 1.0.2023.16746
Win32 Version: 1.0.2023.16746
CodeBase: file:///E:/Documents%20and%20Settings/admin/Desktop/Microsoft%20Download/DataMiningViewerClient/DataMiningViewerClient.exe
-
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
-
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
-
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
-
Microsoft.AnalysisServices.AdomdClient
Assembly Version: 9.0.242.0
Win32 Version: 9.00.2047.00
CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/Microsoft.AnalysisServices.AdomdClient/9.0.242.0__89845dcd8080cc91/Microsoft.AnalysisServices.AdomdClient.dll
-
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///E:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
-
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
-
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
-
Microsoft.AnalysisServices.Viewers
Assembly Version: 9.0.242.0
Win32 Version: 9.00.1186.00
CodeBase: file:///E:/Documents%20and%20Settings/admin/Desktop/Microsoft%20Download/DataMiningViewerClient/Microsoft.AnalysisServices.Viewers.DLL
-
Microsoft.DataWarehouse
Assembly Version: 9.0.242.0
Win32 Version: 9.00.1186.00
CodeBase: file:///E:/Documents%20and%20Settings/admin/Desktop/Microsoft%20Download/DataMiningViewerClient/Microsoft.DataWarehouse.DLL
-
Microsoft.DataWarehouse.Interfaces
Assembly Version: 9.0.242.0
Win32 Version: 9.00.2047.00
CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/Microsoft.DataWarehouse.Interfaces/9.0.242.0__89845dcd8080cc91/Microsoft.DataWarehouse.Interfaces.dll
-
Microsoft.AnalysisServices.Controls
Assembly Version: 9.0.242.0
Win32 Version: 9.00.1186.00
CodeBase: file:///E:/Documents%20and%20Settings/admin/Desktop/Microsoft%20Download/DataMiningViewerClient/Microsoft.AnalysisServices.Controls.DLL
-
Microsoft.Office.Interop.Owc11
Assembly Version: 11.0.0.0
Win32 Version: 11.0.5530
CodeBase: file:///E:/WINDOWS/assembly/GAC/Microsoft.Office.Interop.Owc11/11.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Owc11.dll
-
Microsoft.AnalysisServices.Graphing
Assembly Version: 9.0.242.0
Win32 Version: 9.00.1186.00
CodeBase: file:///E:/Documents%20and%20Settings/admin/Desktop/Microsoft%20Download/DataMiningViewerClient/Microsoft.AnalysisServices.Graphing.DLL
-
MSDATASRC
Assembly Version: 7.0.3300.0
Win32 Version: 7.00.9466
CodeBase: file:///E:/WINDOWS/assembly/GAC/MSDATASRC/7.0.3300.0__b03f5f7f11d50a3a/MSDATASRC.dll
-
mscomctl
Assembly Version: 10.0.4504.0
Win32 Version: 10.0.4504
CodeBase: file:///E:/WINDOWS/assembly/GAC/mscomctl/10.0.4504.0__31bf3856ad364e35/mscomctl.dll
-
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
-
Microsoft.AnalysisServices.OleDbDM
Assembly Version: 9.0.242.0
Win32 Version: 9.00.1186.00
CodeBase: file:///E:/Documents%20and%20Settings/admin/Desktop/Microsoft%20Download/DataMiningViewerClient/Microsoft.AnalysisServices.OleDbDM.DLL
-
Microsoft.SqlServer.CustomControls
Assembly Version: 9.0.242.0
Win32 Version: 9.00.2047.00
CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/Microsoft.SqlServer.CustomControls/9.0.242.0__89845dcd8080cc91/Microsoft.SqlServer.CustomControls.dll
-
Microsoft.NetEnterpriseServers.ExceptionMessageBox
Assembly Version: 9.0.242.0
Win32 Version: 9.00.1399.00
CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/Microsoft.NetEnterpriseServers.ExceptionMessageBox/9.0.242.0__89845dcd8080cc91/Microsoft.NetEnterpriseServers.ExceptionMessageBox.dll
-
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///E:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
-

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

***** end of error message***

Can someone help to figure out what went wrong? thx.

Do you have OWC (Office Web Components) installed on the machine? The Time Series viewer uses OWC to draw the series graphs|||

Hi,

I downloaded & installed the "Microsoft SQL Server 2005 Datamining Viewer Controls" feature pack, and AS 9.0 OLEDB provider. I have a TimeSeries mining model already built, which I want to display using the Time Series Viewer. I have added these controls to the toolbox, and added the Timeseries viewer to the form. I m stuck on how to make the program display the mining model, as there are several properties for the control.

I have set the connectionstring to "Provider=MSOLAP;Initial catalog=DM;Data Source=localhost;" and the MIningModelName property to the model name. I have not added any other code.

At run time, nothing is displayed in the control & when i click on the charts tab, i get NullReferenceException on the last line in the code below:

Application.EnableVisualStyles();

Application.SetCompatibleTextRenderingDefault(false);

Application.Run(new Form1());

|||

I have put below the Stack Trace for the run time error.

at Microsoft.AnalysisServices.Viewers.TimeSeriesViewer.InitializeCurveNames()
at Microsoft.AnalysisServices.Viewers.TimeSeriesViewer.InitializeSelector()
at Microsoft.AnalysisServices.Viewers.TimeSeriesViewer.InitializeCurrentlySelectedPage(Object context)
at Microsoft.AnalysisServices.Viewers.TreeViewerBase.viewerTabControl_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.TabControl.WmSelChange()
at System.Windows.Forms.TabControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message& m)
at System.Windows.Forms.Control.WmNotify(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at Microsoft.DataWarehouse.Controls.ContextMenuAwareUserControl.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
at System.Windows.Forms.Control.DefWndProc(Message& m)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.TabControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at WinDMViewers.Program.Main() in d:\Devi\WinDMViewers\WinDMViewers\Program.cs:line 19
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

|||Have to ask again, do you have OWC 11 installed? The Time Series viewer uses OWC 11, so unless you have that available, it will not work.|||

Hey, thanks for the reply.

I found a sample in www.sqlserverdatamining.com, and it worked in a win form. But have another question, cant these controls be used in a web page? They appear disabled in the toolbox, when i try to add them to a web form.

|||These are winform only controls.

Tuesday, March 6, 2012

"Do not replicate DELETE statement" feature problem

I am testing SQL Server 2005.
I need a replication where "DELETE delivery format" field in Table Articles Properties is set to "Do not replicate DELETE statement". Unfortunately nothing I set in this dialog is saved and used. Doesn matter what I change the replication behaves the same and the next time I open "Table Articles Properties", every value is still default.

Am I doing something wrong or is it an issue (bug) in 2005 replication?


I googled about the issue and also searched in the SQL Server Replication threads on this site, both with no success. The thread named "Selective replication of DELETE transactions" doesn't provide enough information about SWL Server 2005 replication configuration.

Use Case:
I have a small "operational" database with live data. I need to keep a complete history for all records that ever appeared within the "operational" DB. It came to my mind that I can "easily" achieve this if I set up a replication that does not replicate a delete statement ever. I strongly prefer not to mess with the subscription stored procedures but to configer my publication properly instead.

Hi there,

When you open the "Article properties" under "Publication Properties" page, make sure you select the table that you disabled the "delete" and choose "Set Properties of Highlighted Table Article" instead of "Set Properties of All Table Articles". The properties should show up properly for the selected table article. You can also use

sp_helparticle @.publication='publication name'

to query the article setting, under the "delete_command", it should be 'NONE'. I quickly tested on a sample table, delete statements were indeed ignored. But you should do your own testing for that to make sure the behavior suits your need :-)

Regards,
Gary