Showing posts with label contains. Show all posts
Showing posts with label contains. Show all posts

Tuesday, March 20, 2012

"Warning: Document contains one or more extremely long lines ..."

Hi,

i created a large Integration Services Package. When I start now the Project an open the Package, I get a Message

"Document contains one or more long lines of text. These lines will cause the editor to respond slowly when you open the file. Do you still want to open the file?"

What does this Message mean for me? Which mistake did I?

Thanks a lot

What was a bug prior to SP1. It is just a warning, so for the time being you can just ignore it. That should disappear from new created packages after you apply the latest SP

Here is another discussion about it:

http://forums.microsoft.com/MSDN/Search/Search.aspx?words=Warning%3A+Document+contains++extremely+&searchKey=&lcid=1033&searchscope=forumscope&siteid=1&ForumID=80&ForumGroupID=-1

sql

"Views"(Edited)

Hai,
I have a table named "Student" which contains four columns and three rows.I want to see just the first row only from the "Student" table and the marks should be calculated.
Here is my table
sno smark1 smark2 smark3
1 60 60 60
2 70 70 70
3 90 90 90

The Ouput Should be:
sno smarks(smark1+ smark2+smark3)
1 180
2 210
3 270

I can't get ur question!!

What is the result u expecting from this table?

If you need only the first row,

Select Top 1 * from Student

|||

This would give you the first row based on just the sno. Depending on if you would want to see row 1 or 3 would be dependent on the order by. So to get sno[1] use "order by sno" alternately for the last sno[3] "order by sno desc".

Code Snippet

Select top 1 sno from student order by sno

or

Select top 1 sno from student order by sno desc

|||

You can do this by simply:

select sno, coalesce(smark1,0) + coalesce(smark2,0) + coalesce(smark3,0) as smarks

from yourTable

The coalesces are done to remove NULLS from the math.

In reality, it would be better if you build your table as:

studentMarks

============

studentNumber

sequenceNumber

dateOfScore

mark

Then you can sum any number of marks like this:

select studentNumber, sum(mark)

from studentMarks

group by studentNumber

sql

"Views"(Edited)

Hai,
I have a table named "Student" which contains four columns and three rows.I want to see just the first row only from the "Student" table and the marks should be calculated.
Here is my table
sno smark1 smark2 smark3
1 60 60 60
2 70 70 70
3 90 90 90

The Ouput Should be:
sno smarks(smark1+ smark2+smark3)
1 180
2 210
3 270

I can't get ur question!!

What is the result u expecting from this table?

If you need only the first row,

Select Top 1 * from Student

|||

This would give you the first row based on just the sno. Depending on if you would want to see row 1 or 3 would be dependent on the order by. So to get sno[1] use "order by sno" alternately for the last sno[3] "order by sno desc".

Code Snippet

Select top 1 sno from student order by sno

or

Select top 1 sno from student order by sno desc

|||

You can do this by simply:

select sno, coalesce(smark1,0) + coalesce(smark2,0) + coalesce(smark3,0) as smarks

from yourTable

The coalesces are done to remove NULLS from the math.

In reality, it would be better if you build your table as:

studentMarks

============

studentNumber

sequenceNumber

dateOfScore

mark

Then you can sum any number of marks like this:

select studentNumber, sum(mark)

from studentMarks

group by studentNumber

"Views"

Hai,
I have a table named "Student" which contains four columns and three rows.I want to see just the first row only from the "Student" table and the marks should be calculated.
Here is my table
sno smark1 smark2 smark3
1 60 60 60
2 70 70 70
3 90 90 90

The Ouput Should be:
sno smarks(smark1+ smark2+smark3)
1 180
2 210
3 270

I can't get ur question!!

What is the result u expecting from this table?

If you need only the first row,

Select Top 1 * from Student

|||

This would give you the first row based on just the sno. Depending on if you would want to see row 1 or 3 would be dependent on the order by. So to get sno[1] use "order by sno" alternately for the last sno[3] "order by sno desc".

Code Snippet

Select top 1 sno from student order by sno

or

Select top 1 sno from student order by sno desc

|||

You can do this by simply:

select sno, coalesce(smark1,0) + coalesce(smark2,0) + coalesce(smark3,0) as smarks

from yourTable

The coalesces are done to remove NULLS from the math.

In reality, it would be better if you build your table as:

studentMarks

============

studentNumber

sequenceNumber

dateOfScore

mark

Then you can sum any number of marks like this:

select studentNumber, sum(mark)

from studentMarks

group by studentNumber

Monday, March 19, 2012

"The package contains two objects with the duplicate name" - Package Created in UI - D

I've begun to get the above error from my package. The error message refers to two output columns.

    Anyone know how this could happen from within the Visual Studio 2005 UI? I've seen the other posts on this subject, and they all seemed to be creating the packages in code.

    Is there any way to see all of the columns in the data flow? Or is there any other way to find out which columns it's referring to?

Thanks!

I just can think about an ugly way; switch to the XML view (right click on the package name in the explorer) and do a 'find' within the code...

Perhaps you created some outpust by hand using the advanced editor of some components

|||

Well, next time it will be the XML editor. The problem went away "by itself".

Sunday, February 19, 2012

<MachineName>\NETSDK installation

I downloaded something that installed an SQL instance of <Machine
Name>NETSDK. It contains Northwind, Pubs, and other sample databases. Does
anyone know how I got this? For the life of me I can't remember.
Marty
If you installed .NET SDK (not just .NET framework), that is when you might
have also installed MSDE. But it would be installed automatically. It is
only when you choose to install .NET tutorial.
"Marty" <Marty@.discussions.microsoft.com> wrote in message
news:ADD3968D-7B7C-4456-9FEE-50A61C040810@.microsoft.com...
> I downloaded something that installed an SQL instance of <Machine
> Name>NETSDK. It contains Northwind, Pubs, and other sample databases. Does
> anyone know how I got this? For the life of me I can't remember.
> Marty
|||Is .NET SDK part of MSDE? If not, where can I get it?
Thanks for your help
"Norman Yuan" wrote:

> If you installed .NET SDK (not just .NET framework), that is when you might
> have also installed MSDE. But it would be installed automatically. It is
> only when you choose to install .NET tutorial.
> "Marty" <Marty@.discussions.microsoft.com> wrote in message
> news:ADD3968D-7B7C-4456-9FEE-50A61C040810@.microsoft.com...
>
>
|||"Marty" <Marty@.discussions.microsoft.com> wrote in message
news:595F40A2-ED7C-4A39-AD93-B6D76B1E111C@.microsoft.com...
> Is .NET SDK part of MSDE? If not, where can I get it?
> Thanks for your help
>
NetSDK is the name of your MSDE instance. That name was used because the
scripts set up to create your sample databases (Pubs, Northwind, etc.) were
written to expect that instance name.
As you say those databases have been created, it looks as if everything is
as it should be.
Peter [MVP Visual Developer]
Jack of all trades, master of none.
|||But where did it come from? The the best of my knowledge, MSDE made an
instance called <MachineName>. Where did <MachineName>\NETSDK come from?
"Peter van der Goes" wrote:

> "Marty" <Marty@.discussions.microsoft.com> wrote in message
> news:595F40A2-ED7C-4A39-AD93-B6D76B1E111C@.microsoft.com...
> NetSDK is the name of your MSDE instance. That name was used because the
> scripts set up to create your sample databases (Pubs, Northwind, etc.) were
> written to expect that instance name.
> As you say those databases have been created, it looks as if everything is
> as it should be.
> --
> Peter [MVP Visual Developer]
> Jack of all trades, master of none.
>
>
|||When installing SQL Server/MSDE, you can choose to use INSTANCE name or not
to. Your "<MachineName\NetSDK" instance on MSDE IS from your installation
with or without your awareness. As I said, in previous reply, it is most
likely installed when you set up .NET tutorial. from .NET document. Of
course you can choose to install it without instance name in the
expenctation that .NET tutorial not working.
"Marty" <Marty@.discussions.microsoft.com> wrote in message
news:394A46D6-F165-4A8C-9F1D-6219828A3205@.microsoft.com...[vbcol=seagreen]
> But where did it come from? The the best of my knowledge, MSDE made an
> instance called <MachineName>. Where did <MachineName>\NETSDK come from?
> "Peter van der Goes" wrote:
were[vbcol=seagreen]
is[vbcol=seagreen]
|||No, I didn't. When I installed MSDE I used the command line: setup SAPWD=
<password> SecurityMode=SQL. That's it. And it's not just an instance. I
contains databases.
"Norman Yuan" wrote:

> When installing SQL Server/MSDE, you can choose to use INSTANCE name or not
> to. Your "<MachineName\NetSDK" instance on MSDE IS from your installation
> with or without your awareness. As I said, in previous reply, it is most
> likely installed when you set up .NET tutorial. from .NET document. Of
> course you can choose to install it without instance name in the
> expenctation that .NET tutorial not working.
> "Marty" <Marty@.discussions.microsoft.com> wrote in message
> news:394A46D6-F165-4A8C-9F1D-6219828A3205@.microsoft.com...
> were
> is
>
>
|||There is another argument for the command line setup:
INSTANCENAME="InstanceName". If you did not specify instance name and you
get <MachineName>\NETSDK, then it can only be explained by that you used the
MSDE coming with .NET SDK or VisualStudio.NET. If your MSDE is directed
downloaded from MS site or from MS Office Pro/Access, the installation would
not add "NetSDK" instance name automatically.
BTW, If you do not like the instance name, you can uninstall and reinstall
the MSDE.
"Marty" <Marty@.discussions.microsoft.com> wrote in message
news:46041F11-611A-4F8D-8B84-67E1D963FB17@.microsoft.com...[vbcol=seagreen]
> No, I didn't. When I installed MSDE I used the command line: setup SAPWD=
> <password> SecurityMode=SQL. That's it. And it's not just an instance. I
> contains databases.
>
> "Norman Yuan" wrote:
not[vbcol=seagreen]
installation[vbcol=seagreen]
from?[vbcol=seagreen]
the[vbcol=seagreen]
etc.)[vbcol=seagreen]
everything[vbcol=seagreen]
|||It was downloaded from MS. But I installed something else and I don't know
what. Add/Remove programs shows MSDE and MSDE (NETSDK). I must have installed
something else because there are two entries but I only installed MSDE once.
"Norman Yuan" wrote:

> There is another argument for the command line setup:
> INSTANCENAME="InstanceName". If you did not specify instance name and you
> get <MachineName>\NETSDK, then it can only be explained by that you used the
> MSDE coming with .NET SDK or VisualStudio.NET. If your MSDE is directed
> downloaded from MS site or from MS Office Pro/Access, the installation would
> not add "NetSDK" instance name automatically.
> BTW, If you do not like the instance name, you can uninstall and reinstall
> the MSDE.
> "Marty" <Marty@.discussions.microsoft.com> wrote in message
> news:46041F11-611A-4F8D-8B84-67E1D963FB17@.microsoft.com...
> not
> installation
> from?
> the
> etc.)
> everything
>
>
|||For the public, although roblem has already been solved via IM: Those
databases can be downloaded at Microsoft under the folling link:
http://www.microsoft.com/downloads/d...displaylang=en
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
"Marty" <Marty@.discussions.microsoft.com> schrieb im Newsbeitrag
news:ADD3968D-7B7C-4456-9FEE-50A61C040810@.microsoft.com...
>I downloaded something that installed an SQL instance of <Machine
> Name>NETSDK. It contains Northwind, Pubs, and other sample databases. Does
> anyone know how I got this? For the life of me I can't remember.
> Marty

Thursday, February 9, 2012

# of distribution server for a publishing server

Hi,
Does anybody know if I can have more than one distribution server for a
publishing server ?
explanation:
I have a publishing server which contains 2 databases. I want to publish the
first database to Distribution server 1, and database 2 to distribution
server 2. Is this possible ?
I can't see any reason why not, though I've never personally tried it.
There is a limit of one distributor per published database, since there can
only be one log reader reading any one transaction log at a time.
Gail Shaw (MCSD)
http://gail.rucus.net/
"Remon Bekker" wrote:

> Hi,
> Does anybody know if I can have more than one distribution server for a
> publishing server ?
> explanation:
> I have a publishing server which contains 2 databases. I want to publish the
> first database to Distribution server 1, and database 2 to distribution
> server 2. Is this possible ?
|||can't be done.
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
"Remon Bekker" <Remon Bekker@.discussions.microsoft.com> wrote in message
news:D30D226D-3065-403C-9543-97BAA4EA7654@.microsoft.com...
> Hi,
> Does anybody know if I can have more than one distribution server for a
> publishing server ?
> explanation:
> I have a publishing server which contains 2 databases. I want to publish
the
> first database to Distribution server 1, and database 2 to distribution
> server 2. Is this possible ?
|||You can have more than one publisher per distribution database but not
vice-versa.
Rgds,
Paul Ibison