Showing posts with label transfer. Show all posts
Showing posts with label transfer. Show all posts

Tuesday, March 27, 2012

Accessing Initiating Event + Data From Existing External DB

Hello,
I have been exploring NS and I would like to use it as a rudimentary transfer tool. I have an existing database table from where I would to transfer a record to subscribers and then possibly move the records out of that table.

1. How do I set up the ..\SubscriptionClasses\SubscriptionClass\EventRules\EventRule so that it reads from another database? The TSQL Statement should probably work accross databases?

2. As I scroll through the sample ADFs I would think that ..\Providers\HostedProvider should also change too to another type.

Thank you very much,

Lubomir

Hi Lubomir -

Using the SQL Server Event Provider, you can collect events from tables in other databases or even other instances of SQL Server.

Configure the HostedProvider node to use the SQL Server Event Provider. Use the EventsQuery element to enter the T-SQL code that you will use to recognize new rows (or events of interest) in the table. Here's a sample.

<HostedProvider>
<ProviderName>SqlPrEP</ProviderName>
<ClassName>SQLProvider</ClassName>
<SystemName>%_NSSystem_%</SystemName>
<Schedule>
<Interval>P0DT00H00M60S</Interval>
</Schedule>
<Arguments>
<Argument>
<Name>EventsQuery</Name>
<Value>SELECT rowId, col1, col2, col3 FROM AnotherDb.dbo.vwCurrentRows WHERE rowId NOT IN (SELECT rowId FROM MyChron)</Value>
</Argument>
<Argument>
<Name>EventClassName</Name>
<Value>PressRelease</Value>
</Argument>
</Arguments>
</HostedProvider>

Next you can use the EventRule node of the SubscriptionClass to define your match rule; that is to write the T-SQL code that matches the events that you've collected to those subscribers who are interested in your events.

You EventRule would look something like this.

<EventRule>
<EventClassName>PressRelease</EventClassName>
<RuleName>PrEventRule</RuleName>
<Action>
INSERT INTO PrNotifications(
SubscriberId,
DeviceName,
SubscriberLocale,
col1,
col2)
SELECT
s.SubscriberId,
s.SubscriberDeviceName,
s.SubscriberLocale,
e.col1,
e.col2
FROM
PressRelease e,
PrSubscription s
WHERE
e.col3 = s.col3
</Action>
<ActionTimeout>P0DT00H00M45S</ActionTimeout>
</EventRule>

HTH...

Joe

Sunday, March 11, 2012

Access to SQL2000

What is the best way to import or transfer a Access database
to sql2000, I tried that wizard and for the life of me I cannot get
it to work correctly.

TIA

Michael

Please answer in the newsgroups so that others may see thie
information also.On Sat, 29 Nov 2003 07:05:35 -0500, "Michael, "
<ptbarnum@.nycap.rr.com> wrote:

>What is the best way to import or transfer a Access database
>to sql2000, I tried that wizard and for the life of me I cannot get
>it to work correctly.
>TIA
>Michael
>Please answer in the newsgroups so that others may see thie
>information also.|||"Michael, " <ptbarnum@.nycap.rr.com> wrote in message
news:5o2hsv84fvtgb11ifl5smh3fqr28qkbu7f@.4ax.com...
> What is the best way to import or transfer a Access database
> to sql2000, I tried that wizard and for the life of me I cannot get
> it to work correctly.
> TIA
> Michael
> Please answer in the newsgroups so that others may see thie
> information also.

Your best bet would be to use DTS. Is that what you mean by wizard? If so,
what is the failure specifically?

--
BV.
WebPorgmaster - www.IHeartMyPond.com
Work at Home, Save the Environment - www.amothersdream.com

Thursday, March 8, 2012

Access to SQL Server Express

Hi - is it possible to transfer an access database to SQL Server 2005
Express, while maintaining the primary/auto increment field numbers?
I've tried the upsizing wizard, and this didn't maintain indexes/keys,
I've also tried the new SQL Server Migration Assistant for Access CTP2 -
while this kept the column integrity intact, it appears to have
recreated the primary key, so where my autoincrement field in access may
have had:
1 toyota
2 citroen
3 vw
6 ford
8 audi
..after migration, the table is recreated as...
1 toyota
2 citroen
3 vw
4 ford
5 audi
..meaning the relationships between the tables are not maintained.
I have perhaps misunderstood what the migration tool is supposed to do,
but if anyone can help advise what tool will do what I'm looking for,
I'd appreciate it.
Thanks, Mark
*** Sent via Developersdex http://www.developersdex.com ***I haven't tried the ctp Migration Assistant, but there 'should' be an option
that allows the import of IDENTITY values.
--
Arnie Rowland*
"To be successful, your heart must accompany your knowledge."
"Mark" <anonymous@.devdex.com> wrote in message
news:u7YVVnOpGHA.2360@.TK2MSFTNGP05.phx.gbl...
> Hi - is it possible to transfer an access database to SQL Server 2005
> Express, while maintaining the primary/auto increment field numbers?
> I've tried the upsizing wizard, and this didn't maintain indexes/keys,
> I've also tried the new SQL Server Migration Assistant for Access CTP2 -
> while this kept the column integrity intact, it appears to have
> recreated the primary key, so where my autoincrement field in access may
> have had:
> 1 toyota
> 2 citroen
> 3 vw
> 6 ford
> 8 audi
> ..after migration, the table is recreated as...
> 1 toyota
> 2 citroen
> 3 vw
> 4 ford
> 5 audi
> ..meaning the relationships between the tables are not maintained.
> I have perhaps misunderstood what the migration tool is supposed to do,
> but if anyone can help advise what tool will do what I'm looking for,
> I'd appreciate it.
> Thanks, Mark
>
> *** Sent via Developersdex http://www.developersdex.com ***

Access to SQL Server Express

Hi - is it possible to transfer an access database to SQL Server 2005
Express, while maintaining the primary/auto increment field numbers?
I've tried the upsizing wizard, and this didn't maintain indexes/keys,
I've also tried the new SQL Server Migration Assistant for Access CTP2 -
while this kept the column integrity intact, it appears to have
recreated the primary key, so where my autoincrement field in access may
have had:
1 toyota
2 citroen
3 vw
6 ford
8 audi
..after migration, the table is recreated as...
1 toyota
2 citroen
3 vw
4 ford
5 audi
..meaning the relationships between the tables are not maintained.
I have perhaps misunderstood what the migration tool is supposed to do,
but if anyone can help advise what tool will do what I'm looking for,
I'd appreciate it.
Thanks, Mark
*** Sent via Developersdex http://www.codecomments.com ***I haven't tried the ctp Migration Assistant, but there 'should' be an option
that allows the import of IDENTITY values.
Arnie Rowland*
"To be successful, your heart must accompany your knowledge."
"Mark" <anonymous@.devdex.com> wrote in message
news:u7YVVnOpGHA.2360@.TK2MSFTNGP05.phx.gbl...
> Hi - is it possible to transfer an access database to SQL Server 2005
> Express, while maintaining the primary/auto increment field numbers?
> I've tried the upsizing wizard, and this didn't maintain indexes/keys,
> I've also tried the new SQL Server Migration Assistant for Access CTP2 -
> while this kept the column integrity intact, it appears to have
> recreated the primary key, so where my autoincrement field in access may
> have had:
> 1 toyota
> 2 citroen
> 3 vw
> 6 ford
> 8 audi
> ..after migration, the table is recreated as...
> 1 toyota
> 2 citroen
> 3 vw
> 4 ford
> 5 audi
> ..meaning the relationships between the tables are not maintained.
> I have perhaps misunderstood what the migration tool is supposed to do,
> but if anyone can help advise what tool will do what I'm looking for,
> I'd appreciate it.
> Thanks, Mark
>
> *** Sent via Developersdex http://www.codecomments.com ***