Showing posts with label playing. Show all posts
Showing posts with label playing. Show all posts

Thursday, March 8, 2012

2008 Kids not playing well together?

I have Orcas (VisualStudio 2008) and Katmai (SQL Server 2008) installed on the same machine, but Orcas will not allow me to add a data connection to the Katmai database. It goes through the wizard and the connection tests okay, but then I get a message saying it doesn't support anything above SQL Server 2005.

Is there some sort of update for Orcas that will allow me to use my Katmai databases?

Thanks,
Todd
Did you try using an OLEDB connection ? I did not try that on my own, but it should be worth a try.

Jens K. Suessmeyer

http://www.sqlserver2005.de
|||Orcas will support Katmai in a later Orcas CTP. For now, you cannot connect with Orcas to Katmai.

2008 Kids not playing well together?

I have Orcas (VisualStudio 2008) and Katmai (SQL Server 2008) installed on the same machine, but Orcas will not allow me to add a data connection to the Katmai database. It goes through the wizard and the connection tests okay, but then I get a message saying it doesn't support anything above SQL Server 2005.

Is there some sort of update for Orcas that will allow me to use my Katmai databases?

Thanks,
Todd
Did you try using an OLEDB connection ? I did not try that on my own, but it should be worth a try.

Jens K. Suessmeyer

http://www.sqlserver2005.de
|||Orcas will support Katmai in a later Orcas CTP. For now, you cannot connect with Orcas to Katmai.

Sunday, February 19, 2012

2005 Replication Mon Interface

I am playing around with the new Replication Monitor in 2005. In the old
Replication Monitor (SQL Sever2k), you could right click on a subscription
and Start or Stop Synchronizing. So far I have not been able to find this
feature in the new Replication Monitor and I've had to SQL Server Management
Studio to be able to control the subscription. Our subscriptions frequently
go off-line (off-site) and sometimes require a manual start when they
return, so access to this feature for all subscriptions in one place is
handy.
Thanks for any help.
Ted.
The button you are looking for is called "Start Synchronizing" with the
corrollary of "Stop Synchronizing". I can't remember exactly where it is,
but it is located somewhere around the actual subscription.
Mike
Mentor
Solid Quality Learning
http://www.solidqualitylearning.com
"TCorp" <tcorpus@.hotmail.com> wrote in message
news:OtxxSZMEGHA.2300@.TK2MSFTNGP15.phx.gbl...
>I am playing around with the new Replication Monitor in 2005. In the old
>Replication Monitor (SQL Sever2k), you could right click on a subscription
>and Start or Stop Synchronizing. So far I have not been able to find this
>feature in the new Replication Monitor and I've had to SQL Server
>Management Studio to be able to control the subscription. Our
>subscriptions frequently go off-line (off-site) and sometimes require a
>manual start when they return, so access to this feature for all
>subscriptions in one place is handy.
> Thanks for any help.
> Ted.
>
|||Connect to your Publisher in WorkBench, expand the Replication node, expand
Local Publications, right click on your publication and select Launch
Replication Monitor (I think you are already here). Expand the Replication
Monitor Node, My Publishers node, and your Publisher node, and locate your
publication. Click on it and then in the Right Hand pane, select Warnings
and Agents tab. In the lower portion of the pane locate your snapshot agent
and right click on it to start it or stop it.
You can also access it through the SQL Server Agent node in SQL WorkBench
for your SQL Server, and expand the Jobs folder. Right click on your Agent
(if you can locate it by its name) and select Start Job or Stop Job.
I think at this point it is important to point out that the Replication
Wizards and interfaces were completely redesigned to make them more
intuitive and less confusing.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"TCorp" <tcorpus@.hotmail.com> wrote in message
news:OtxxSZMEGHA.2300@.TK2MSFTNGP15.phx.gbl...
>I am playing around with the new Replication Monitor in 2005. In the old
>Replication Monitor (SQL Sever2k), you could right click on a subscription
>and Start or Stop Synchronizing. So far I have not been able to find this
>feature in the new Replication Monitor and I've had to SQL Server
>Management Studio to be able to control the subscription. Our
>subscriptions frequently go off-line (off-site) and sometimes require a
>manual start when they return, so access to this feature for all
>subscriptions in one place is handy.
> Thanks for any help.
> Ted.
>
|||Translated, it will take you a while to figure out where they put
everything.
Mike
Mentor
Solid Quality Learning
http://www.solidqualitylearning.com
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:OwvBUtMEGHA.344@.TK2MSFTNGP11.phx.gbl...
> Connect to your Publisher in WorkBench, expand the Replication node,
> expand Local Publications, right click on your publication and select
> Launch Replication Monitor (I think you are already here). Expand the
> Replication Monitor Node, My Publishers node, and your Publisher node, and
> locate your publication. Click on it and then in the Right Hand pane,
> select Warnings and Agents tab. In the lower portion of the pane locate
> your snapshot agent and right click on it to start it or stop it.
> You can also access it through the SQL Server Agent node in SQL WorkBench
> for your SQL Server, and expand the Jobs folder. Right click on your Agent
> (if you can locate it by its name) and select Start Job or Stop Job.
> I think at this point it is important to point out that the Replication
> Wizards and interfaces were completely redesigned to make them more
> intuitive and less confusing.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
> "TCorp" <tcorpus@.hotmail.com> wrote in message
> news:OtxxSZMEGHA.2300@.TK2MSFTNGP15.phx.gbl...
>
|||This article should help clarify things a bit:
http://www.replicationanswers.com/GUIArticle.asp
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
|||Thanks everyone for your help and prompt replies.
But what I am looking for is to stop and start my (pull) Merge Agents.
Looking at Paul Ibison's helpful article, I realize that the option to Start
and Stop the merge agents is not there (in the All Subscriptions Tab of my
publication). The only options when I right-click the subscription are:
- View Details
- Reinitialize Subscription
- Validate Subscription
- Agent Profile
- Properties
- Refresh
Currently, the only way I can Start/Stop the merge agents is to connect to
the [subscription] server in Management Studio, open the
"Replication-->Local Subscriptions" folder, right-click the subscription and
select "View Synchronization Status". That dialog box give me buttons to
Start and Stop the agent.
Strangely, I thought I created a publication last week (in my testing) that
had that option there, and that's part of the reason I am so confused right
now, as it seems to have disappeared.
My publisher/distributor is SQL Server 2005 and my pull merge subscriptions
are running on MSDE.
Thanks again.
------
"TCorp" <tcorpus@.hotmail.com> wrote in message
news:OtxxSZMEGHA.2300@.TK2MSFTNGP15.phx.gbl...
>I am playing around with the new Replication Monitor in 2005. In the old
>Replication Monitor (SQL Sever2k), you could right click on a subscription
>and Start or Stop Synchronizing. So far I have not been able to find this
>feature in the new Replication Monitor and I've had to SQL Server
>Management Studio to be able to control the subscription. Our
>subscriptions frequently go off-line (off-site) and sometimes require a
>manual start when they return, so access to this feature for all
>subscriptions in one place is handy.
> Thanks for any help.
> Ted.
>
|||Now that I know where the option to synchronize really was (Thanks Paul) and
that it was missing, I was able to look further into it.
It seems that it is a difference between push and pull merge agents. The
option to Start/Stop synchronizing the Merge agents seems to only be
available for PUSH subscriptions in the Replication monitor. These articles
implicate such:
http://msdn2.microsoft.com/en-us/library/ms152749.aspx
http://msdn2.microsoft.com/en-us/library/ms151261.aspx
We've historically used Pull subscriptions because our MSDE subscribers were
often off-line and we were experiencing a lot of error messages in the
replication monitor. But now I must reconsider using push again.
My only recourse now to to ask if anyone knows why the 2005 Replication
Monitor does not allow us to Start/Stop pull subscriptions.
Thanks, Ted.
"TCorp" <tcorpus@.hotmail.com> wrote in message
news:OxOc%23ZVEGHA.1120@.TK2MSFTNGP11.phx.gbl...
> Thanks everyone for your help and prompt replies.
> But what I am looking for is to stop and start my (pull) Merge Agents.
> Looking at Paul Ibison's helpful article, I realize that the option to
> Start and Stop the merge agents is not there (in the All Subscriptions Tab
> of my publication). The only options when I right-click the subscription
> are:
> - View Details
> - Reinitialize Subscription
> - Validate Subscription
> - Agent Profile
> - Properties
> - Refresh
> Currently, the only way I can Start/Stop the merge agents is to connect to
> the [subscription] server in Management Studio, open the
> "Replication-->Local Subscriptions" folder, right-click the subscription
> and select "View Synchronization Status". That dialog box give me buttons
> to Start and Stop the agent.
> Strangely, I thought I created a publication last week (in my testing)
> that had that option there, and that's part of the reason I am so confused
> right now, as it seems to have disappeared.
> My publisher/distributor is SQL Server 2005 and my pull merge
> subscriptions are running on MSDE.
> Thanks again.
> ------
> "TCorp" <tcorpus@.hotmail.com> wrote in message
> news:OtxxSZMEGHA.2300@.TK2MSFTNGP15.phx.gbl...
>

Monday, February 13, 2012

2005 encryption - symmetric keys

Hi There

We have been playing around with encryption in 2005. I cannot find a BOL topic that discusses dropping encryption objects such as keys.

We do the followign steps:

Create master key with password, then we create a certificate using the master key, we then create a symmetric key using this certificate and encrypt data columns.

But what i find worrying is that you can then drop the symmetric key , there are no warnings that you have objects dependant on this key for decryption.

Once you have dropped the key you cannot decrypt the data anymore?

Also the key defults the expiration date to 1 year.

WHat happens after 1 year when you have encrypted data and an expired key, or someone drops the key ? How can you ever decrypt the data after that ?

You can backup master keys nd certificates but not symmetric keys?

It seems to be that youc an very easily orphan encrypted data by the loss of the symmetric key for whatever reason, is this correct ?

Thanx

In SQL Server 2005 we have support to explicitly encrypt/decrypt data using builtins, but there is no way to mark a column as being used to store encrypted data, therefore there is no way to bound any key to the data encrypted by it. Unfortunately this means that the system doesn’t know if any given symmetric key is being used or not, and they can be accidentally dropped.

As you mentioned, you can create backups for master key and certificates, but in SQL Server 2005 there is no support for backing up individual symmetric keys. To prevent symmetric key loss you can create a database backup or alternatively create your symmetric keys using the KEY_SOURCE and IDENTITY_VALUE syntax. This syntax will allow you to recreate the keys in case they are dropped by mistake, if you don’t want to permanently store the key in the database or if you need to create the same symmetric key in a different database. Example:

CREATE SYMMETRIC KEY key_demo2 WITH ALGORITHM = TRIPLE_DES ENCRYPTION BY CERTIFICATE cert_demo2

go

-- Create a symmetric key with KEY_SOURCE and IDENTITY_VALUE so it can be recreated

CREATE SYMMETRIC KEY key_demo_recreate WITH ALGORITHM = TRIPLE_DES,

KEY_SOURCE = 'Key source - keep this source secret protected!',

IDENTITY_VALUE = 'My Key identity'

ENCRYPTION BY CERTIFICATE cert_demo

go

-- Create a table to store some encrypted data

CREATE TABLE t_secret_data( mySecret varbinary( 100 ) )

go

OPEN SYMMETRIC KEY key_demo_recreate DECRYPTION BY CERTIFICATE cert_demo

go

INSERT INTO t_secret_data values( encryptbykey( key_guid( 'key_demo_recreate' ), 'Secret data 1' ))

INSERT INTO t_secret_data values( encryptbykey( key_guid( 'key_demo_recreate' ), 'Secret data 2' ))

INSERT INTO t_secret_data values( encryptbykey( key_guid( 'key_demo_recreate' ), 'Secret data 3' ))

go

SELECT convert( varchar(100), decryptbykey( mySecret)) FROM t_secret_data

go

CLOSE SYMMETRIC KEY key_demo_recreate

go

-- We can drop the key, either by mistake or on purpose

DROP SYMMETRIC KEY key_demo_recreate

go

-- At this point we cannnot recover the encrypted data.

-- We need to recreate the symmetric key to recover it.

-- notice that the key name is not necessarily the same

CREATE SYMMETRIC KEY key_demo_recreate2 WITH ALGORITHM = TRIPLE_DES,

KEY_SOURCE = 'Key source - keep this source secret protected!',

IDENTITY_VALUE = 'My Key identity'

ENCRYPTION BY CERTIFICATE cert_demo

go

-- Notice that we use the new key name

OPEN SYMMETRIC KEY key_demo_recreate2 DECRYPTION BY CERTIFICATE cert_demo

go

-- Same select statement

-- As the key ring uses the key identifier (key_guid),

-- and not the key name we don't need to change the decryption statement

SELECT convert( varchar(100), decryptbykey( mySecret)) FROM t_secret_data

go

CLOSE SYMMETRIC KEY key_demo_recreate2

go

The certificate expiration date is stored in metadata so it can be used/enforced by any application, but it won’t be used by SQL Server for any of the encryption features. You will be able to encrypt/decrypt data and keys using an expired certificate, but be aware that other SQL Server features such as Service Broker will enforce this expiration date.

I hope this information was able to answer your questions, please feel free to send us follow up questions and additional feedback.

-Raul Garcia

SDE/T

SQL Server Engine

|||

Hi Raul

That does help alot, exactly what i wanted to know did you get this from BOL, i had trouble searching for a BOL topic with this information, if so do youhave the name of the topic for me ?

Thanx

|||

I am part of the test team for this particular feature and I am quite familiar with it; I really didn’t look for this information on BOL; but I think you are right, we don’t have an article describing symmetric keys and potential data loss in case of an accidental DROP SYMMETRIC KEY in detail. I will open a bug for BOL.

In the meantime, I recommend the following resources:

* CREATE SYMMETRIC KEY (Transact-SQL): http://msdn2.microsoft.com/en-us/library/ms188357.aspx

* DROP SYMMETRIC KEY (Transact-SQL) : http://msdn2.microsoft.com/en-us/library/ms182698.aspx

* How to: Create Identical Symmetric Keys on Two Servers: http://msdn2.microsoft.com/en-us/library/ms366281.aspx

* How to: Encrypt a Column of Data : http://msdn2.microsoft.com/en-us/library/ms179331.aspx

* Laurentiu Cristofor's blog : http://blogs.msdn.com/lcris/

* Raul Garcia’s blog: http://blogs.msdn.com/raulga/

Thanks a lot for the feedback, and feel free to send us more questions and feedback. We really appreciate it.

-Raul Garcia

SDE/T

SQL Server Engine

|||

Excellent, thanx a million Raul.

Yes a BOL topic that discussed dependancies of encryption objects, as well as considerations when dropping Keys etc would definately be valuable, thanx for the feedback.

Cheers