Showing posts with label posible. Show all posts
Showing posts with label posible. Show all posts

Monday, March 12, 2012

is it posible to put more than 4000 bytes into one column? ( sql server mobile )

varchar can only hold 4000 bytes
and there is no text column in sql server mobile

Hi,
try 'ntext'

Pete

|||I'm using SQL CE 3.5 with VS 2008 Beta 2:

I have a table with some coulmns of NTEXT type, but when i want to update my dataset to database with a row which has that field more than 4000 charachters I got this error:

"InvalidOperationException was unhandled
@.p4 : String truncation: max=4000, len=4374
...."

Regards,
Parham.
|||NTEXT should accept 536870911 charachters! But why iam getting that Error?!
|||

It is probably a problem with the DataSet designer. Check the designer generated code, and you may find that it has limited the @.p4 length to 4000. You can probably manually change this.

|||I'm having the same issue. I checked through the designer code and found the max length set to the correct length for ntext (536870911). Just to be sure I recreated the database and the dataset, but got the same result. I think this might be a genuine bug.

is it posible to put more than 4000 bytes into one column? ( sql server mobile )

varchar can only hold 4000 bytes
and there is no text column in sql server mobile

Hi,
try 'ntext'

Pete

|||I'm using SQL CE 3.5 with VS 2008 Beta 2:

I have a table with some coulmns of NTEXT type, but when i want to update my dataset to database with a row which has that field more than 4000 charachters I got this error:

"InvalidOperationException was unhandled
@.p4 : String truncation: max=4000, len=4374
...."

Regards,
Parham.
|||NTEXT should accept 536870911 charachters! But why iam getting that Error?!
|||

It is probably a problem with the DataSet designer. Check the designer generated code, and you may find that it has limited the @.p4 length to 4000. You can probably manually change this.

|||I'm having the same issue. I checked through the designer code and found the max length set to the correct length for ntext (536870911). Just to be sure I recreated the database and the dataset, but got the same result. I think this might be a genuine bug.

is it posible to put more than 4000 bytes into one column? ( sql server mobile )

varchar can only hold 4000 bytes
and there is no text column in sql server mobile

Hi,
try 'ntext'

Pete

|||I'm using SQL CE 3.5 with VS 2008 Beta 2:

I have a table with some coulmns of NTEXT type, but when i want to update my dataset to database with a row which has that field more than 4000 charachters I got this error:

"InvalidOperationException was unhandled
@.p4 : String truncation: max=4000, len=4374
...."

Regards,
Parham.
|||NTEXT should accept 536870911 charachters! But why iam getting that Error?!
|||

It is probably a problem with the DataSet designer. Check the designer generated code, and you may find that it has limited the @.p4 length to 4000. You can probably manually change this.

|||I'm having the same issue. I checked through the designer code and found the max length set to the correct length for ntext (536870911). Just to be sure I recreated the database and the dataset, but got the same result. I think this might be a genuine bug.

is it posible to put more than 4000 bytes into one column? ( sql server mobile )

varchar can only hold 4000 bytes
and there is no text column in sql server mobile

Hi,
try 'ntext'

Pete

Is it posible to have publications with diferent schedules?

I have 1 Publisher Server that uses itself as the distributor for 3
different publications.
The publications are all transactional and all publications use Push
subscriptions to replicate their articles.
I have 2 Subscriber servers. Each subscriber server receives 3 push
subscriptions, 1 from each of publications of the Publisher Server.
My Question is can I have different Distribution Agent Schedules for each of
the different publications?
In other words, can publication_1 can be distributed with a schedule of 1
try every day, publication_2 with a schedule of 2 tries evey day and
publication_3 with a constant (inmediate) distribution shedule?
I have tried tihs, when I create the push subscriptions I specify diffrent
schedules for each subscription but when I look in the Agents folder under
Distribution Agents I can only find an entry that says
'multiple-publications' and only has One Schedule.
In contrast under SnapShot Agents there are one entry for each of the
publications, each with a schedule.
Thanks for any help or info.
You sure can, however you need to use the independent_agent option on your
publication.
sp_changepublication 'publicationName','independent_option','true'
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Adrian320" <Adrian320@.discussions.microsoft.com> wrote in message
news:06C20D17-F2BA-4AE9-BF42-C019A5DBDDEB@.microsoft.com...
> I have 1 Publisher Server that uses itself as the distributor for 3
> different publications.
> The publications are all transactional and all publications use Push
> subscriptions to replicate their articles.
> I have 2 Subscriber servers. Each subscriber server receives 3 push
> subscriptions, 1 from each of publications of the Publisher Server.
> My Question is can I have different Distribution Agent Schedules for each
of
> the different publications?
> In other words, can publication_1 can be distributed with a schedule of 1
> try every day, publication_2 with a schedule of 2 tries evey day and
> publication_3 with a constant (inmediate) distribution shedule?
> I have tried tihs, when I create the push subscriptions I specify diffrent
> schedules for each subscription but when I look in the Agents folder under
> Distribution Agents I can only find an entry that says
> 'multiple-publications' and only has One Schedule.
> In contrast under SnapShot Agents there are one entry for each of the
> publications, each with a schedule.
> Thanks for any help or info.
|||Thanks, I'll try that right away.
Just out of curiosity is that parameter asked in the publication wizard, by
any chance?
"Hilary Cotter" wrote:

> You sure can, however you need to use the independent_agent option on your
> publication.
> sp_changepublication 'publicationName','independent_option','true'
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> "Adrian320" <Adrian320@.discussions.microsoft.com> wrote in message
> news:06C20D17-F2BA-4AE9-BF42-C019A5DBDDEB@.microsoft.com...
> of
>
>
|||I have never tried it, but I assumed you could create different schedules
for each of the subscriptions under the publication.
Does it not work ? Do they all run in continuous mode ?
"Adrian320" <Adrian320@.discussions.microsoft.com> wrote in message
news:06C20D17-F2BA-4AE9-BF42-C019A5DBDDEB@.microsoft.com...
> I have 1 Publisher Server that uses itself as the distributor for 3
> different publications.
> The publications are all transactional and all publications use Push
> subscriptions to replicate their articles.
> I have 2 Subscriber servers. Each subscriber server receives 3 push
> subscriptions, 1 from each of publications of the Publisher Server.
> My Question is can I have different Distribution Agent Schedules for each
of
> the different publications?
> In other words, can publication_1 can be distributed with a schedule of 1
> try every day, publication_2 with a schedule of 2 tries evey day and
> publication_3 with a constant (inmediate) distribution shedule?
> I have tried tihs, when I create the push subscriptions I specify diffrent
> schedules for each subscription but when I look in the Agents folder under
> Distribution Agents I can only find an entry that says
> 'multiple-publications' and only has One Schedule.
> In contrast under SnapShot Agents there are one entry for each of the
> publications, each with a schedule.
> Thanks for any help or info.
|||with the parameter Hilary said, yes it works. Without it you have only one
schecule for each subscriber/publication, helas you can't have without the
parameter activated varios schedules for the same subscriber in differente
publications.
Adrian
"Hassan" wrote:

> I have never tried it, but I assumed you could create different schedules
> for each of the subscriptions under the publication.
> Does it not work ? Do they all run in continuous mode ?
> "Adrian320" <Adrian320@.discussions.microsoft.com> wrote in message
> news:06C20D17-F2BA-4AE9-BF42-C019A5DBDDEB@.microsoft.com...
> of
>
>
|||Now my heads hurting..
Can you give me an example..
Say in your case we have Publisher1 and Subscriber1,Subscriber2 and
Subscriber3
You have 2 publications Pub1 and Pub2
Pub1 has 3 subscriptions to the 3 subscribers
and Pub2 has 3 subscriptions to the 3 subscribers
So if i go to each of the subscriptions for Pub1, can I not create seperate
schedules for the distribution agent ? Or am I not following something
Please use the example and help me understand.
"Adrian320" <Adrian320@.discussions.microsoft.com> wrote in message
news:E90BCEA8-CED8-428E-BF92-9A440E23FD66@.microsoft.com...[vbcol=seagreen]
> with the parameter Hilary said, yes it works. Without it you have only one
> schecule for each subscriber/publication, helas you can't have without the
> parameter activated varios schedules for the same subscriber in differente
> publications.
> Adrian
> "Hassan" wrote:
schedules[vbcol=seagreen]
each[vbcol=seagreen]
of 1[vbcol=seagreen]
diffrent[vbcol=seagreen]
under[vbcol=seagreen]
|||no, but it does show up in your publication properties in the subscription
options tab. Chances are however you will need to use sp_changepublication
to enable it.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Adrian320" <Adrian320@.discussions.microsoft.com> wrote in message
news:8A96C8B2-0FF9-47E6-B4CE-6FB0B12D2273@.microsoft.com...
> Thanks, I'll try that right away.
> Just out of curiosity is that parameter asked in the publication wizard,
by[vbcol=seagreen]
> any chance?
> "Hilary Cotter" wrote:
your[vbcol=seagreen]
each[vbcol=seagreen]
of 1[vbcol=seagreen]
diffrent[vbcol=seagreen]
under[vbcol=seagreen]
|||No, if pubs and pub2 are in the same publication database, there will be a
single distribution agent by default, going to each subscriber. What
replication will do is share an agent for the same type from the same
publication database to the same subscription database.
With the shared agent, there can be no different schedules. With the
independent agent option you can set multiple schedules.
HTH
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Hassan" <fatima_ja@.hotmail.com> wrote in message
news:u23zm$48EHA.2452@.TK2MSFTNGP14.phx.gbl...
> Now my heads hurting..
> Can you give me an example..
> Say in your case we have Publisher1 and Subscriber1,Subscriber2 and
> Subscriber3
> You have 2 publications Pub1 and Pub2
> Pub1 has 3 subscriptions to the 3 subscribers
> and Pub2 has 3 subscriptions to the 3 subscribers
> So if i go to each of the subscriptions for Pub1, can I not create
seperate[vbcol=seagreen]
> schedules for the distribution agent ? Or am I not following something
> Please use the example and help me understand.
> "Adrian320" <Adrian320@.discussions.microsoft.com> wrote in message
> news:E90BCEA8-CED8-428E-BF92-9A440E23FD66@.microsoft.com...
one[vbcol=seagreen]
the[vbcol=seagreen]
differente[vbcol=seagreen]
> schedules
> each
> of 1
> diffrent
> under
the
>

Is it posible to export meta data from SQL into eg. SAP BW using XMI?

Is it posible to export meta data from SQL into eg. SAP BW using XMI?You can probably export SQL Server meta data using for xml and the system tables. I've no idea about using XMI to then publish that info to other data stores though.