Showing posts with label property. Show all posts
Showing posts with label property. Show all posts

Wednesday, March 28, 2012

ROWGUIDCOL

I've read everything BOL says about ROWGUIDCOL and it's still not clear to me why it is necessary. It appears to be similar to an IDENTITY property, except that it does not have a seed or an increment. Because of that, it appears to have no practical purpose other than annotating a CREATE TABLE script to let people know it is used to identify a row.

ROWGUIDCOL as described seems to fit the case of where a guid is the primary key (I do realize it does not enforce uniqueness).

IDENTITY can generate unique values for a key for a single table on a single machine. If you want to automatically generate UNIQUE values accross multiple tables or machines, use a uniqueidentifier column that defaults to NEWID() or is always given a new guid value by your application when your application creates a row. ROWGUIDCOL is just a convenient designator for a GUID-based unique ID column. It also gives you the ability to reference it using $ROWGUID. GUID-based identifiers are used extensively in replication scenarios.

|||Thanks for that clarification. $ROWGUID could be useful. What if the guid is only the leading edge of the primary key, not the entire primary key? In other words, does the guid have to uniquely identify the row for $ROWGUID to work?

NEWSEQUENTIALID() is an alternative to NEWID(). As I posted in http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=52136, Newid in C# caused reduced performance because of index page splits. Using NEWID() in T-SQL has the same problem. Using NEWSEQUENTIALID() instead of NEWID() greatly improved insert performance without any adverse effects on select performance. NEWSEQUENTIALID() provides an ascending sort order to the guids, which makes it more similar to IDENTITY than NEWID() is.sql

Wednesday, March 21, 2012

Row Number Tranformation

I have looked to no avail...

Anybody see a dynamic way to set the seed in the Row Number Transformation? I do not see any expressions property and the only property that takes a variable is the FINAL number...

I would have though that a very common use would be to get the maximum IDENTITY from a table and use that value (after adding one) as the starting number for the rows being imported...

See if this help

http://www.sqlis.com/default.aspx?93

|||That was it. Missed it the first (and second and third) time I read it. The expression gets set at the Control Flow level instead of the individual component level.

Thanks.
|||To be clear, the Seed is a property and that property accepts expressions. For Data Flow components, expressions are set on the parent Data Flow, not the transformation. In otherwords tasks can have expressions, and the Data Flow is a task. Transformations or components do not support expressions directly, but they can mark their properties as supporting expresssions, but available through the task. The component author can choose to expose a property via an expression, and indeed this has been done for the Row Number Transformation, but as with all components you need to go up to the (Data Flow) task to see this.|||

Hi

I've read the previous steps and trying to initialise the seed property.

I retrieve the latest id from a table in the database which needs to be the starting seed. This is set to a variable of type Int32, there is no decimal option. When I try to use this variable to set to the seed I get a 'cannot convert 'System.Int32' to 'System.Decimal', that's ok, understand that but when I do cast it using (DT_DECIMAL,2) it then complains it cannot convert 'System.Single to 'System.Decimal'

Please help!!

|||

Sorry about that, there is a strange problem with the current release. Sometimes SSIS decides that a literal 1 is decimal, and sets the property type to System.Decimal. A quick fix is to close the package, right-click View Code, and search for the component name, this should get you to the <component> element. Then below that look at the <property> for seed/increment and fix the type, changing it to System.Int32.

A refresh will be out soon that fixes this. Unfortunately it is still possible to get stuck in this problem as component properties are not really strongly typed, they infer the type from the value, and it can even change in some circumstances. Not very nice behaviour, but ultimately beyond my control.

Row Number Tranformation

I have looked to no avail...

Anybody see a dynamic way to set the seed in the Row Number Transformation? I do not see any expressions property and the only property that takes a variable is the FINAL number...

I would have though that a very common use would be to get the maximum IDENTITY from a table and use that value (after adding one) as the starting number for the rows being imported...

See if this help

http://www.sqlis.com/default.aspx?93

|||That was it. Missed it the first (and second and third) time I read it. The expression gets set at the Control Flow level instead of the individual component level.

Thanks.
|||To be clear, the Seed is a property and that property accepts expressions. For Data Flow components, expressions are set on the parent Data Flow, not the transformation. In otherwords tasks can have expressions, and the Data Flow is a task. Transformations or components do not support expressions directly, but they can mark their properties as supporting expresssions, but available through the task. The component author can choose to expose a property via an expression, and indeed this has been done for the Row Number Transformation, but as with all components you need to go up to the (Data Flow) task to see this.|||

Hi

I've read the previous steps and trying to initialise the seed property.

I retrieve the latest id from a table in the database which needs to be the starting seed. This is set to a variable of type Int32, there is no decimal option. When I try to use this variable to set to the seed I get a 'cannot convert 'System.Int32' to 'System.Decimal', that's ok, understand that but when I do cast it using (DT_DECIMAL,2) it then complains it cannot convert 'System.Single to 'System.Decimal'

Please help!!

|||

Sorry about that, there is a strange problem with the current release. Sometimes SSIS decides that a literal 1 is decimal, and sets the property type to System.Decimal. A quick fix is to close the package, right-click View Code, and search for the component name, this should get you to the <component> element. Then below that look at the <property> for seed/increment and fix the type, changing it to System.Int32.

A refresh will be out soon that fixes this. Unfortunately it is still possible to get stuck in this problem as component properties are not really strongly typed, they infer the type from the value, and it can even change in some circumstances. Not very nice behaviour, but ultimately beyond my control.

sql

Monday, March 12, 2012

Row ID

Does SQL maintain it's own Row ID's for records in a table? I was wondering
if there was a row id property that I could query on because the particular
table does not have any columns of type identifier or guid. If there is su
ch a property, what is the
correct syntax to use in the where clause?
Thanks in advanceSQL doesn't expose any physical row identifiers for use in queries. The way
to uniquely identify a row is, of course, by its primary key. If your table
doesn't have a primary key then you should add one.
David Portas
--
Please reply only to the newsgroup
--|||SQL Server does maintain a row id, but in the physical model which cannot be
accessed directly using a t-SQL query.
To access a row in a table using a SQL query you must have an set of column
values in a row which can uniquely identify a row in your table. The correct
approach to do this would be to define a primary key in your table; then
you'll be able to use these key column(s) in your WHERE clause.
- Anith
( Please reply to newsgroups only )|||Good thing Joe Celko doesn't frequent this group
"liz" <anonymous@.discussions.microsoft.com> wrote in message
news:2B33F68F-3091-4162-9A60-60BC2D599260@.microsoft.com...
quote:

> Does SQL maintain it's own Row ID's for records in a table? I was

wondering if there was a row id property that I could query on because the
particular table does not have any columns of type identifier or guid. If
there is such a property, what is the correct syntax to use in the where
clause?
quote:

> Thanks in advance
|||"Andy Williams" <f_u_b_a_r_1_1_1_9@.y_a_h_o_o_._c_o_m> wrote in message
news:#Hzqcz42DHA.536@.tk2msftngp13.phx.gbl...
quote:

> Good thing Joe Celko doesn't frequent this group

Who?

Row ID

Does SQL maintain it's own Row ID's for records in a table? I was wondering if there was a row id property that I could query on because the particular table does not have any columns of type identifier or guid. If there is such a property, what is the correct syntax to use in the where clause
Thanks in advanceSQL doesn't expose any physical row identifiers for use in queries. The way
to uniquely identify a row is, of course, by its primary key. If your table
doesn't have a primary key then you should add one.
--
David Portas
--
Please reply only to the newsgroup
--|||SQL Server does maintain a row id, but in the physical model which cannot be
accessed directly using a t-SQL query.
To access a row in a table using a SQL query you must have an set of column
values in a row which can uniquely identify a row in your table. The correct
approach to do this would be to define a primary key in your table; then
you'll be able to use these key column(s) in your WHERE clause.
--
- Anith
( Please reply to newsgroups only )|||Good thing Joe Celko doesn't frequent this group :)
"liz" <anonymous@.discussions.microsoft.com> wrote in message
news:2B33F68F-3091-4162-9A60-60BC2D599260@.microsoft.com...
> Does SQL maintain it's own Row ID's for records in a table? I was
wondering if there was a row id property that I could query on because the
particular table does not have any columns of type identifier or guid. If
there is such a property, what is the correct syntax to use in the where
clause?
> Thanks in advance|||"Andy Williams" <f_u_b_a_r_1_1_1_9@.y_a_h_o_o_._c_o_m> wrote in message
news:#Hzqcz42DHA.536@.tk2msftngp13.phx.gbl...
> Good thing Joe Celko doesn't frequent this group :)
Who?

Friday, March 9, 2012

row count

I opened a database in Entreprise Manager, selected a table, double clicked
on it, and the property window poped up. I read the Rows of the table. Then,
I righ clicked the table->Open Table->Query, and run a query to count the r
ows (based on the primary k
ey column). It came up with a different number. I'm sure the table wasn't up
dated during the process. So which number is the right number? Thanks.
Ed.select count(*) gives the correct number.
the number shown in enterprise manager is not always current.
read up on sp_spaceused and dbcc updateusage in bol.
Ed wrote:
quote:

> I opened a database in Entreprise Manager, selected a table, double clicked on it, and the
property window poped up. I read the Rows of the table. Then, I righ clicked the table->Ope
n Table->Query, and run a query to count the rows (based on the primary

key column). It came up with a different number. I'm sure the table wasn't updated during the proc
ess. So which number is the right number? Thanks.
quote:

> Ed.

Tuesday, February 21, 2012

Rotate Text

Hai

Iam in need to rotate text in reporting services.i can able to find only two options in writingmode property for a textbox namely lr-tb (left right-top bottom) and tb-rl(top bottom-right left)..

i need full text rotation (bottom top-right left) is there any way..

let please give your precious suggestions

thnx

-

Senthil

I have the same problem... Please let me know if you have found a solution. Thanks|||Sorry - The chart control is the only control that rotates text (it does this automatically). Text rotation is not supported anywhere else.|||

I also have the same problem. I need to have the text in a textbox on a report go bt-rl. I wish there were an option for this. We are using this for addresses on a form that will show through windowed envelopes.

Rotate Text

Hai

Iam in need to rotate text in reporting services.i can able to find only two options in writingmode property for a textbox namely lr-tb (left right-top bottom) and tb-rl(top bottom-right left)..

i need full text rotation (bottom top-right left) is there any way..

let please give your precious suggestions

thnx

-

Senthil

I have the same problem... Please let me know if you have found a solution. Thanks|||Sorry - The chart control is the only control that rotates text (it does this automatically). Text rotation is not supported anywhere else.|||

I also have the same problem. I need to have the text in a textbox on a report go bt-rl. I wish there were an option for this. We are using this for addresses on a form that will show through windowed envelopes.

Rotate Text

Hai

Iam in need to rotate text in reporting services.i can able to find only two options in writingmode property for a textbox namely lr-tb (left right-top bottom) and tb-rl(top bottom-right left)..

i need full text rotation (bottom top-right left) is there any way..

let please give your precious suggestions

thnx

-

Senthil

I have the same problem... Please let me know if you have found a solution. Thanks|||Sorry - The chart control is the only control that rotates text (it does this automatically). Text rotation is not supported anywhere else.|||

I also have the same problem. I need to have the text in a textbox on a report go bt-rl. I wish there were an option for this. We are using this for addresses on a form that will show through windowed envelopes.

rotate a text box 270 deg

I use Text WritingMode property is tb-rl, to display text in verticle
direction (i.e 90 degrees). now I wanted to make 270 degrees
is it possible to rotate text in 270 degrees.
Please reply.
Thanks,
--
RaoIt does not appear to be so. From a quick search through BOL, looks
like horizontal or vertical (i.e. 90 degrees rotation) only.|||Thank you, i am hoping by editing Style Tag in xml code file.
--
Rao
"toolman" wrote:
> It does not appear to be so. From a quick search through BOL, looks
> like horizontal or vertical (i.e. 90 degrees rotation) only.
>