Showing posts with label advantage. Show all posts
Showing posts with label advantage. Show all posts

Monday, March 19, 2012

Advantage of using Catalog views

Hi,

Can anyone tell the advantage of using the new catalog views over the traditional system tables which were given as compatiblity views in sql server 2005

The compatibility views will not be upgraded to support newer metadata information (post-2000), also because some of the limits such as user numbers have increased the old views will error or return NULLs if the value ranges for the old system tables are exceeded (see - http://msdn2.microsoft.com/en-us/library/ms187376.aspx).

Basically you are locked into a view of the database that does not allow for all the features in SQL Server 2005 if you use the compatibility views.

|||

for all new feature SQL Server 2005 , you have use Catalog views or DMVs. Compatibility views are only for backward compatibility , which will be removed in the next version. All the new development work should not use Compatibility views.

Madhu

Advantage of using a Data Source in a project

I am new to SSIS.

I came across the following article:

http://technet.microsoft.com/en-us/library/ms139848(SQL.90).aspx

It states that:

"A data source can be defined one time and then referenced by connection managers in multiple packages. You use a data source object in a package by adding a connection manager that references the data source object to the package. There is no dependency between a data source and the connection managers that reference it."

I have created a data source (DS1) and set it to point to a database say DB1. In the connection managers area, I create a connection manager CM1 using the datasource DS1.Now I edit DS1 to point to a different database DB2. When I open CM1 however it’s still pointing to DS1.

I guess this is because it’s said that there is no dependency between the connection manager and data source. My question is what exactly is the advantage of using a data source?


Priya





AFAIK, it is used only as a template of sorts for a data source connection. Other than that, I don't really know why one would use it. I have never used them.

Maybe someone else can shed some light onto why you should use it.|||

Hi Priya,

I went through the article and what i understood is:

"A datasource is created outside the reference of a package" , means you can share it across many packages by pointing your connection manger to the datasource you just created.Consider this scenario where you have 10 packages pointing to same source then you may use a Datasource so that all connection managers point ot same datasource.Hence at later point of time if you want to change the source you just need to update you datasource rather than updating each connection manager independently.

Note: Please correct me if I am wrong.

|||

When I started with SSIS , I also wanted to use Data source, since it seemd reasonable to reuse the Data source in various packages. Until you want to use package configuration files to store your connectionstrings. Then it is no longer possible to use datasources. From now on I do not use Data sources any longer. I am using package configuration files that contain the connctions strings of my connections, and in my packages I use the appropriate configuration file. I also use environment variables to proint to my package configuration files. This allows for a somewhat easier deployment of packages on developer and production servers.

|||This is the correct way of handling environment differences with SSIS.
As said, data sources are for design time.

A nice little "feature" of data sources: Delete it and it deletes all your connections which are derived from it.|||Hi all,

Thanks for ur replies.
I'v used configuration file to configure connection manager before and you can't configure data source with it.

Unni, as you'v said that:
"Hence at later point of time if you want to change the source you just need to update you datasource rather than updating each connection manager independently."

Did you try out updating the datasource to point to a different source? Does it get reflected in the connection managers? As i've mentioned in the 1st post the connection manager was still pointing to the older db in my case.
Priya

|||

Let me clarify why I am using configuration files and not datas sources:

- datasources are fine if you always edit your package with visual studio as a developer, no matter where your packages are deployed.

- I have to design a package on a development server where I have full access. but my package will be deployed in a production environment where I will have very little access. The sysadmin will now how to make the enviroment variable en how to edit the configuration file with notepad, those are all the tools he will need. The ssis packages will be restored on the production server via backup restore.

So as far I am concerned this way of working is SOX compliant, and therefore I do not use datasources.

|||In general, I think the consensus among most of the regular posters on the forums is that using data sources is more trouble than it is worth. If updating a data source actually updated all the connection managers derived from it, there might be a benefit to using them. But each connection manager maintains its own copy of the connection string, so there is not much value added by using the data source. Plus, the messages to Synchronize Connection Strings are really annoying Smile|||

Hi,

"Hence at later point of time if you want to change the source you just need to update you datasource rather than updating each connection manager independently."

I have not tried this, I am using configuration files in my package.

|||Yes, if you open each and every package in the project, it will prompt you to change the connect string. It doesn't automatically propagate the change. Configurations are a much easier way of getting the same result.

Advantage of Temp Table

When I import data I first import it from a text file into a table of
it's own, then using some logic insert some of the records into a
permanent table.

I am considering having the table that the data from the text file is
placed in being there all the time and just clearing it out after I do
the import, or creating it and after using it then drop it, or using a
temporary table.

What are the advantages of a temporary table as opposed to creating a
regular table and dropping it after use?Not much difference between a temp table and permenant table. Security,
automatic distruction, and one or the other may faster depending on the
disk/file layout. I would ask why not just push it directly into the
destination? Also if the text is coming from another SQL available source,
why not skip both the text file and the temporary table?

It also may be faster depending on need for availability, space, and
indexing to create a new table and do select into based on a union all of
the two tables. Then rename the table.

<shumaker@.cs.fsu.edu> wrote in message
news:1114111315.338927.231880@.g14g2000cwa.googlegr oups.com...
> When I import data I first import it from a text file into a table of
> it's own, then using some logic insert some of the records into a
> permanent table.
> I am considering having the table that the data from the text file is
> placed in being there all the time and just clearing it out after I do
> the import, or creating it and after using it then drop it, or using a
> temporary table.
> What are the advantages of a temporary table as opposed to creating a
> regular table and dropping it after use?|||Thanks.

"I would ask why not just push it directly into the
destination?"

Because I have to do some logic based on what is not in the imported
data. If a certain record exists in my table, but not in the data
being imported, then I need to modify some flags in the existing
record. So I import into an empty table, and do updates "if not in"
imported table then update my existing table.|||>> What are the advantages of a temporary table as opposed to creating
a regular table and dropping it after use? <<

A regular table will port, can have constraints, DRI actions, etc. But
do not drop it after use; just clean it out before and after you load
the data for scrubbing.

Advantage of setting isolation level to READ UNCOMMITED

Hi,
I have two questions.
1) What is the advantage of setting isolation level to READ UNCOMMITED if
there are noupdates for the records that we are selecting?
Does it make the select faster when we don't issue any shared lock?
2) I found this statement in books online:
'if an update acquires a large number of row locks and has locked a
significant percentage of a table, the row locks are escalated to a table
lock'
Is this statement true when we have a select instead of update and isolation
level is READ COMMITED?
Thanks,
RosiePerformance is slightly better when using READ UNCOMMITTED for selects, as
SQL Server does not have to do any of the work of issuing shared locks.
And yes, SELECTs can escalate lock granularities.
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--
"Rosie" <Rosie@.discussions.microsoft.com> wrote in message
news:2E0888C6-59F0-4E52-B4C8-2D91645D1FDB@.microsoft.com...
> Hi,
> I have two questions.
> 1) What is the advantage of setting isolation level to READ UNCOMMITED if
> there are noupdates for the records that we are selecting?
> Does it make the select faster when we don't issue any shared lock?
> 2) I found this statement in books online:
> 'if an update acquires a large number of row locks and has locked a
> significant percentage of a table, the row locks are escalated to a table
> lock'
> Is this statement true when we have a select instead of update and
isolation
> level is READ COMMITED?
> Thanks,
> Rosie|||> 1) What is the advantage of setting isolation level to READ UNCOMMITED if
> there are noupdates for the records that we are selecting?
> Does it make the select faster when we don't issue any shared lock?
Sure, since there is less work to do. Will it make it that much faster, not
really unless the statement would have been blocked.

> 2) I found this statement in books online:
> 'if an update acquires a large number of row locks and has locked a
> significant percentage of a table, the row locks are escalated to a table
> lock'
> Is this statement true when we have a select instead of update and
> isolation
> level is READ COMMITED?
If you are in read committed isolation level, then you would not escalate.
Basically, as rows are fetched a lock is taken on that row. Then the row is
placed on the output buffer, the lock is released, a new row is locked and
fetched, etc. So only one row should be locked during the select. The
holdup comes when the single row that need to be locked is already locked.
Then wait city. If you are doing lots of updates, or in READ COMMITTED or
SERIALIZABLE transaction isolation level, then the table lock might come in
to play, but you would likely have to lock a lot of rows.
----
Louis Davidson - drsql@.hotmail.com
SQL Server MVP
Compass Technology Management - www.compass.net
Pro SQL Server 2000 Database Design -
http://www.apress.com/book/bookDisplay.html?bID=266
Note: Please reply to the newsgroups only unless you are interested in
consulting services. All other replies may be ignored :)
"Rosie" <Rosie@.discussions.microsoft.com> wrote in message
news:2E0888C6-59F0-4E52-B4C8-2D91645D1FDB@.microsoft.com...
> Hi,
> I have two questions.
> 1) What is the advantage of setting isolation level to READ UNCOMMITED if
> there are noupdates for the records that we are selecting?
> Does it make the select faster when we don't issue any shared lock?
> 2) I found this statement in books online:
> 'if an update acquires a large number of row locks and has locked a
> significant percentage of a table, the row locks are escalated to a table
> lock'
> Is this statement true when we have a select instead of update and
> isolation
> level is READ COMMITED?
> Thanks,
> Rosie

Advantage Database Server

I have to pass some data from Advantage Database Server (a database wich is
used generally with Delphy) to SQL-Server.
In order to create a Linked Server from SQL-Server to the above mentioned da
tabase- what should I do?
If there is an ODBC for the database- should it be installed on the server o
f the SQL-Server or on my terminal?Yeah...if I remember right from using it before, you need to
install the drivers and ole db provider on SQL Server. Then
you can create the linked server to the Advantage server.
They should have information in the help files on this or
else on the web site.
-Sue
On Wed, 23 Feb 2005 19:41:08 +0200, "Geri Reshef"
<gershon_reshef@.recanati-alum.tau.ac.il> wrote:

>I have to pass some data from Advantage Database Server (a database wich is
used generally with Delphy) to SQL-Server.
>In order to create a Linked Server from SQL-Server to the above mentioned d
atabase- what should I do?
>If there is an ODBC for the database- should it be installed on the server of the S
QL-Server or on my terminal?

Advantage Database Server

I have to pass some data from Advantage Database Server (a database wich is used generally with Delphy) to SQL-Server.
In order to create a Linked Server from SQL-Server to the above mentioned database- what should I do?
If there is an ODBC for the database- should it be installed on the server of the SQL-Server or on my terminal?
Yeah...if I remember right from using it before, you need to
install the drivers and ole db provider on SQL Server. Then
you can create the linked server to the Advantage server.
They should have information in the help files on this or
else on the web site.
-Sue
On Wed, 23 Feb 2005 19:41:08 +0200, "Geri Reshef"
<gershon_reshef@.recanati-alum.tau.ac.il> wrote:

>I have to pass some data from Advantage Database Server (a database wich is used generally with Delphy) to SQL-Server.
>In order to create a Linked Server from SQL-Server to the above mentioned database- what should I do?
>If there is an ODBC for the database- should it be installed on the server of the SQL-Server or on my terminal?

Advantage comparison on Attach & Restore database

If I were to copy a database from one machine to another machine, I can
use:
- Backup & restore
- Detach & attach
Not to mention on those daily backup or availability of the database.
Just consider copy one database to another machine.
Does anyone know what's the advantage of each method mention above?
I used to Detach & Attach cause it's fast. Backup & restore database
would takes long time.
Other than that, anyone know is there any side effect or drawback of
the methods mentiond above?
Peter CCHHi,
Detach and attach must be faster but it require downtime; where as Backup
and restore do not need any downtime.
Thanks
Hari
SQL Server MVP
"Peter CCH" <petercch.wodoy@.gmail.com> wrote in message
news:1156564154.830161.207440@.i3g2000cwc.googlegroups.com...
> If I were to copy a database from one machine to another machine, I can
> use:
> - Backup & restore
> - Detach & attach
> Not to mention on those daily backup or availability of the database.
> Just consider copy one database to another machine.
> Does anyone know what's the advantage of each method mention above?
> I used to Detach & Attach cause it's fast. Backup & restore database
> would takes long time.
> Other than that, anyone know is there any side effect or drawback of
> the methods mentiond above?
>
> Peter CCH
>|||Other than that, nothing else?
Then it would be fine for me cause it's a developer machine, not
production server.
We always need to copy database from machine to machine.
Thanks.
Hari Prasad wrote:
> Hi,
> Detach and attach must be faster but it require downtime; where as Backup
> and restore do not need any downtime.
> Thanks
> Hari
> SQL Server MVP
> "Peter CCH" <petercch.wodoy@.gmail.com> wrote in message
> news:1156564154.830161.207440@.i3g2000cwc.googlegroups.com...
> > If I were to copy a database from one machine to another machine, I can
> > use:
> > - Backup & restore
> > - Detach & attach
> >
> > Not to mention on those daily backup or availability of the database.
> > Just consider copy one database to another machine.
> >
> > Does anyone know what's the advantage of each method mention above?
> > I used to Detach & Attach cause it's fast. Backup & restore database
> > would takes long time.
> >
> > Other than that, anyone know is there any side effect or drawback of
> > the methods mentiond above?
> >
> >
> >
> > Peter CCH
> >|||Backup and Restore may also 'defrag' the tables and indexes.
--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
"Peter CCH" <petercch.wodoy@.gmail.com> wrote in message
news:1156564154.830161.207440@.i3g2000cwc.googlegroups.com...
> If I were to copy a database from one machine to another machine, I can
> use:
> - Backup & restore
> - Detach & attach
> Not to mention on those daily backup or availability of the database.
> Just consider copy one database to another machine.
> Does anyone know what's the advantage of each method mention above?
> I used to Detach & Attach cause it's fast. Backup & restore database
> would takes long time.
> Other than that, anyone know is there any side effect or drawback of
> the methods mentiond above?
>
> Peter CCH
>|||> Backup and Restore may also 'defrag' the tables and indexes.
No table/index defragmentation takes place during the restore; the restored
database is exactly like the original. However, a restore can effectively
defrag database files at the file system level when the files are recreated.
Such fragmentation usually occurs only when one relies on automatic growth.
With the exception of a version upgrade, few changes are made during the
restore. The only changes that come to mind are to the file paths and
database owner.
--
Hope this helps.
Dan Guzman
SQL Server MVP
"Arnie Rowland" <arnie@.1568.com> wrote in message
news:%23gDCwVMyGHA.4336@.TK2MSFTNGP06.phx.gbl...
> Backup and Restore may also 'defrag' the tables and indexes.
> --
> Arnie Rowland, Ph.D.
> Westwood Consulting, Inc
> Most good judgment comes from experience.
> Most experience comes from bad judgment.
> - Anonymous
>
> "Peter CCH" <petercch.wodoy@.gmail.com> wrote in message
> news:1156564154.830161.207440@.i3g2000cwc.googlegroups.com...
>> If I were to copy a database from one machine to another machine, I can
>> use:
>> - Backup & restore
>> - Detach & attach
>> Not to mention on those daily backup or availability of the database.
>> Just consider copy one database to another machine.
>> Does anyone know what's the advantage of each method mention above?
>> I used to Detach & Attach cause it's fast. Backup & restore database
>> would takes long time.
>> Other than that, anyone know is there any side effect or drawback of
>> the methods mentiond above?
>>
>> Peter CCH
>|||Thanks Dan,
I meant to say 'File' defrag, and my evil twin wrote in the other thought...
--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
"Dan Guzman" <guzmanda@.nospam-online.sbcglobal.net> wrote in message
news:OhkIAJPyGHA.4912@.TK2MSFTNGP03.phx.gbl...
>> Backup and Restore may also 'defrag' the tables and indexes.
> No table/index defragmentation takes place during the restore; the
> restored database is exactly like the original. However, a restore can
> effectively defrag database files at the file system level when the files
> are recreated. Such fragmentation usually occurs only when one relies on
> automatic growth.
> With the exception of a version upgrade, few changes are made during the
> restore. The only changes that come to mind are to the file paths and
> database owner.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "Arnie Rowland" <arnie@.1568.com> wrote in message
> news:%23gDCwVMyGHA.4336@.TK2MSFTNGP06.phx.gbl...
>> Backup and Restore may also 'defrag' the tables and indexes.
>> --
>> Arnie Rowland, Ph.D.
>> Westwood Consulting, Inc
>> Most good judgment comes from experience.
>> Most experience comes from bad judgment.
>> - Anonymous
>>
>> "Peter CCH" <petercch.wodoy@.gmail.com> wrote in message
>> news:1156564154.830161.207440@.i3g2000cwc.googlegroups.com...
>> If I were to copy a database from one machine to another machine, I can
>> use:
>> - Backup & restore
>> - Detach & attach
>> Not to mention on those daily backup or availability of the database.
>> Just consider copy one database to another machine.
>> Does anyone know what's the advantage of each method mention above?
>> I used to Detach & Attach cause it's fast. Backup & restore database
>> would takes long time.
>> Other than that, anyone know is there any side effect or drawback of
>> the methods mentiond above?
>>
>> Peter CCH
>>
>

Advantage comparison on Attach & Restore database

If I were to copy a database from one machine to another machine, I can
use:
- Backup & restore
- Detach & attach
Not to mention on those daily backup or availability of the database.
Just consider copy one database to another machine.
Does anyone know what's the advantage of each method mention above?
I used to Detach & Attach cause it's fast. Backup & restore database
would takes long time.
Other than that, anyone know is there any side effect or drawback of
the methods mentiond above?
Peter CCHHi,
Detach and attach must be faster but it require downtime; where as Backup
and restore do not need any downtime.
Thanks
Hari
SQL Server MVP
"Peter CCH" <petercch.wodoy@.gmail.com> wrote in message
news:1156564154.830161.207440@.i3g2000cwc.googlegroups.com...
> If I were to copy a database from one machine to another machine, I can
> use:
> - Backup & restore
> - Detach & attach
> Not to mention on those daily backup or availability of the database.
> Just consider copy one database to another machine.
> Does anyone know what's the advantage of each method mention above?
> I used to Detach & Attach cause it's fast. Backup & restore database
> would takes long time.
> Other than that, anyone know is there any side effect or drawback of
> the methods mentiond above?
>
> Peter CCH
>|||Other than that, nothing else?
Then it would be fine for me cause it's a developer machine, not
production server.
We always need to copy database from machine to machine.
Thanks.
Hari Prasad wrote:[vbcol=seagreen]
> Hi,
> Detach and attach must be faster but it require downtime; where as Backup
> and restore do not need any downtime.
> Thanks
> Hari
> SQL Server MVP
> "Peter CCH" <petercch.wodoy@.gmail.com> wrote in message
> news:1156564154.830161.207440@.i3g2000cwc.googlegroups.com...|||Backup and Restore may also 'defrag' the tables and indexes.
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
"Peter CCH" <petercch.wodoy@.gmail.com> wrote in message
news:1156564154.830161.207440@.i3g2000cwc.googlegroups.com...
> If I were to copy a database from one machine to another machine, I can
> use:
> - Backup & restore
> - Detach & attach
> Not to mention on those daily backup or availability of the database.
> Just consider copy one database to another machine.
> Does anyone know what's the advantage of each method mention above?
> I used to Detach & Attach cause it's fast. Backup & restore database
> would takes long time.
> Other than that, anyone know is there any side effect or drawback of
> the methods mentiond above?
>
> Peter CCH
>|||> Backup and Restore may also 'defrag' the tables and indexes.
No table/index defragmentation takes place during the restore; the restored
database is exactly like the original. However, a restore can effectively
defrag database files at the file system level when the files are recreated.
Such fragmentation usually occurs only when one relies on automatic growth.
With the exception of a version upgrade, few changes are made during the
restore. The only changes that come to mind are to the file paths and
database owner.
Hope this helps.
Dan Guzman
SQL Server MVP
"Arnie Rowland" <arnie@.1568.com> wrote in message
news:%23gDCwVMyGHA.4336@.TK2MSFTNGP06.phx.gbl...
> Backup and Restore may also 'defrag' the tables and indexes.
> --
> Arnie Rowland, Ph.D.
> Westwood Consulting, Inc
> Most good judgment comes from experience.
> Most experience comes from bad judgment.
> - Anonymous
>
> "Peter CCH" <petercch.wodoy@.gmail.com> wrote in message
> news:1156564154.830161.207440@.i3g2000cwc.googlegroups.com...
>|||Thanks Dan,
I meant to say 'File' defrag, and my evil twin wrote in the other thought...
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
"Dan Guzman" <guzmanda@.nospam-online.sbcglobal.net> wrote in message
news:OhkIAJPyGHA.4912@.TK2MSFTNGP03.phx.gbl...
> No table/index defragmentation takes place during the restore; the
> restored database is exactly like the original. However, a restore can
> effectively defrag database files at the file system level when the files
> are recreated. Such fragmentation usually occurs only when one relies on
> automatic growth.
> With the exception of a version upgrade, few changes are made during the
> restore. The only changes that come to mind are to the file paths and
> database owner.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "Arnie Rowland" <arnie@.1568.com> wrote in message
> news:%23gDCwVMyGHA.4336@.TK2MSFTNGP06.phx.gbl...
>

Tuesday, March 6, 2012

ADOMD and XML/A

Hi,

I got the following from a Microsoft Technet Chat - "The advantage of XML/A over ADOMD is the thin client. ADOMD requires PTS and ADOMD installed on all client machines while XML/A would only require an XML parser."

Now say, I develop an asp.net application which would use adomd.net to get cube data, and will also run mdx queries. I host the asp.net page on my server, and allow it to be accessed by remote users. My server itself contains all the necessary cubes, and other components like adomd.net, etc.

My question is, if you want to run the asp.net page hosted on my server, (via HTTP), will it be necessary for you to install the adomd.net components on your local (remote) machine also?

(Actually I dont like coding with XML/A and find execution of mdx queries via Adomd.Net much easier! Any links showing xml/a coding for MDX in VB.Net from scratch?)

Thanx and Regards!

As in typical ASP.NET apps, you only need data access components on the ASP.NET server - maybe the 2nd figure on this page will help you:

http://msdn2.microsoft.com/en-us/library/ms174518.aspx

>>

SQL Server 2005 Books Online

Client Architecture (SSAS)

...

Analysis Services provides broad middle tier support for Web services. ASP applications are supported by OLE DB for OLAP and ADO MD, ASP.NET applications are supported by ADOMD.NET. The middle tier, illustrated in the following figure..

>>