Showing posts with label project. Show all posts
Showing posts with label project. Show all posts

Wednesday, March 28, 2012

Multi-user environment

Hi,
I’m working on a project that has MSDE installed on a Server (Windows Small
Business Server 2003 Standard with Veritas Backup V.9.1) for the back-end
database and for the front-end an Access Project (.adp) which I plan to have
on each user's computer.
The Server Administrator is pushing for an update to SBS 2003 Premium with 5
licenses as the only solution. Personally I think MSDE would do the job…
There are few things I’m not so sure:
- How many users can access the server at the same time with MSDE?
- Is there a way to let the user know if a record is being used? Like
displaying a message before any changes are made?
- I’ve created a table for users with username, password and group they
belong to. Is there a way to integrate this with the MSDE Groups and
Permissions or Transact-SQL? So Users, passwords and Groups can be setup from
a form in the front-end.
I’m doing some research on Veritas and see if it would backup the Instance
of MSDE.
Any help on this matter would be greatly appreciated
gaba
hi,
gaba wrote:
> - How many users can access the server at the same time with MSDE?
it's not a matter of users but concurrent batches... a study by Microsoft
indicates a magic number of 25, but it really depends on the application
type/design, database type/design...
of course bad ADO serverside cursors design will be worse then excellent
clientside disconnected design code...
but actually there's no limit, just the buuilt-in Workloads Gevernor that
kicks in when more then 8 concurrent batches are in progress... you can have
a look at
http://msdn.microsoft.com/library/?u...asp?frame=true
fro further info about that governor...

> - Is there a way to let the user know if a record is being used? Like
> displaying a message before any changes are made?
actually not... you have to test saving and trap the relative exception...

> - I've created a table for users with username, password and group
> they belong to. Is there a way to integrate this with the MSDE Groups
> and Permissions or Transact-SQL? So Users, passwords and Groups can
> be setup from a form in the front-end.
I think you've better drop your user tables and rely on the standard SQL
Server users and roles...you are duplicating all and incurring in troubles..
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.14.0 - DbaMgr ver 0.59.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply
|||Andrea,
Thanks so much for your answer. I see I need to change directions in few
settings but I'm on the right track. A lot of information to catch up...
gaba
"gaba" wrote:

> Hi,
> I’m working on a project that has MSDE installed on a Server (Windows Small
> Business Server 2003 Standard with Veritas Backup V.9.1) for the back-end
> database and for the front-end an Access Project (.adp) which I plan to have
> on each user's computer.
> The Server Administrator is pushing for an update to SBS 2003 Premium with 5
> licenses as the only solution. Personally I think MSDE would do the job…
> There are few things I’m not so sure:
> - How many users can access the server at the same time with MSDE?
> - Is there a way to let the user know if a record is being used? Like
> displaying a message before any changes are made?
> - I’ve created a table for users with username, password and group they
> belong to. Is there a way to integrate this with the MSDE Groups and
> Permissions or Transact-SQL? So Users, passwords and Groups can be setup from
> a form in the front-end.
> I’m doing some research on Veritas and see if it would backup the Instance
> of MSDE.
> Any help on this matter would be greatly appreciated
> --
> gaba
sql

MULTI-Table Update Queries

I'm new to adp w/ sql server but I have to use it on a project i'm
doing...
One of the MUSTS for this project is the ability to update a 00 - 09
text value with the appropriate text description from another table...
Easy as pie in .mdb. Of course In the stored procedure it barks at me
and tells me that an update query can only have one table.. ouch that
hurts...

I'm currently reading on the subject but this group has been very
helpful in the past....

I found this link...
http://www.sqlservercentral.com/col...stheeasyway.asp

Unfortunetly I'm using MSDE not Enterprise so I don't think I can use
the query analyser.. But I tryed it in my Access ADP anyway
it barked at me..

I tried to go from this...

SELECT dbo.LU_SEX.SEX_CODE, dbo.TEST.DEFECTS_DP1
FROM dbo.TEST INNER JOIN
dbo.LU_SEX ON dbo.TEST.SEX_DP1 =
dbo.LU_SEX.SEX_DEC

To this...

UPDATE dbo.TEST.SEX_DP1
SET dbo.TEST.SEX_DP1 = dbo.LU_SEX.SEX_CODE
FROM dbo.LU_SEX INNER JOIN
dbo.TEST ON dbo.LU_SEX.SEX_DEC =
dbo.TEST.SEX_DP1

Maybe I need a good book on this?

Thanks,
CharlesIt looks like you wanted:

UPDATE dbo.TEST
SET dbo.TEST.SEX_DP1 = dbo.LU_SEX.SEX_CODE
FROM dbo.LU_SEX
JOIN dbo.TEST
ON dbo.LU_SEX.SEX_DEC = dbo.TEST.SEX_DP1

The table name follows the UPDATE keyword, not the column name.

This is the MS proprietary syntax for an UPDATE statement. There is a
potential problem with that method if you try to update using a join
that doesn't return a unique value for each row. No error is returned
but the result is undefined and may be unreliable. This is one reason I
prefer the ANSI Standard UPDATE syntax, which SQL Server also supports:

UPDATE Test
SET sex_dp1 =
(SELECT sex_code
FROM LU_Sex
WHERE sex_dec = Test.sex_dp1)

I'm guessing this will be the equivalent of what you posted. It will be
so long as sex_dec is unique in LU_Sex and all the values of sex_dp1
also exist in that table.

Presumably you ultimately intend to use one set of codes througout the
database. There is in fact an International standard for gender codes
(0=not known 1=male 2=female 9=not specified). You could also use views
to convert the codes if you need to do so for display for example.

--
David Portas
SQL Server MVP
--|||(meyvn77@.yahoo.com) writes:
> I tried to go from this...
> SELECT dbo.LU_SEX.SEX_CODE, dbo.TEST.DEFECTS_DP1
> FROM dbo.TEST INNER JOIN
> dbo.LU_SEX ON dbo.TEST.SEX_DP1 =
> dbo.LU_SEX.SEX_DEC
> To this...
> UPDATE dbo.TEST.SEX_DP1

You have a database dbo with a schmea TEST and table SEX_DP1?
Drop SEX_DP1 to start with.

> SET dbo.TEST.SEX_DP1 = dbo.LU_SEX.SEX_CODE

And here drop dbo.TEST on the left-hand side. You can uses prefixes on
the left-hand side, but I don't recall under which circumstances. In any
case, since you can only update one table at a time, it's redundant.

> FROM dbo.LU_SEX INNER JOIN
> dbo.TEST ON dbo.LU_SEX.SEX_DEC =
> dbo.TEST.SEX_DP1

This should be fine, although I recommend you to use aliases to make
your queries less verbose.

> Maybe I need a good book on this?

Books Online, see signature.

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp

Wednesday, March 21, 2012

Multiple Values for single row

hi iam totally new to databases , as a project i have to design a database of users...they have to register first like any site..so i used stored procs and made entries to database using insert command...its working for now..

now every user will search and add other users in the database..so every user will have a contact list...i have no idea how to implement this...

so far i created a table 'UserAccount' with column names as
UserName as varchar(50)
Password as varchar(50)
EmailID as varchar(100)
DateOfJoining as datetime
UserID as int --> this is unique for user..i enabled automatic increment..and this is primary key..

so now every user must have a list of other userid's.. as contact list..

Any help any ideas will be great since i have no clue how to put multiple values for each row..i didnt even know how to search for this problems solution..iam sorry if this posted somewhere else..
THANK YOU !

if it helps..iam using sql server express edition..and iam accessing using asp.net/C#Hi,

Create a contact list table which includes columns,

UserId,
ContactId

Eralper

Monday, March 19, 2012

Multiple Threads and Licensing

Hello,
I am working on a project that will require the use of SQL Server 2005
Workgroup Edition. We were planning to use the version that comes with
5 CALs instead of the version that is licensed based on processors due
to the enormous cost difference.
The application I am working on is using c#. This program will spawn
multiple threads to communicate with instruments attached on the network
Each of these threads will have a connection to the db to save data. I
am being told that each thread will require a CAL. Is that correct? I
can not find anything in the licensing information that explicitly
states this. It was my understanding that a CAL is based on user or
device and could make as many connections to the db as needed.
ThanksIf you have only 5 instruments then you should be OK. Each instrument is a
user and can spawn multiple connections although I don't understand why it
would need to.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Patrick Brand" <"pbrand$NOSPAM$"@.ludlums.com> wrote in message
news:uvdvuKjlGHA.4792@.TK2MSFTNGP02.phx.gbl...
> Hello,
> I am working on a project that will require the use of SQL Server 2005
> Workgroup Edition. We were planning to use the version that comes with 5
> CALs instead of the version that is licensed based on processors due to
> the enormous cost difference.
> The application I am working on is using c#. This program will spawn
> multiple threads to communicate with instruments attached on the network
> Each of these threads will have a connection to the db to save data. I am
> being told that each thread will require a CAL. Is that correct? I can
> not find anything in the licensing information that explicitly states
> this. It was my understanding that a CAL is based on user or device and
> could make as many connections to the db as needed.
> Thanks|||If you have only 5 instruments then you should be OK. Each instrument is a
user and can spawn multiple connections although I don't understand why it
would need to.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Patrick Brand" <"pbrand$NOSPAM$"@.ludlums.com> wrote in message
news:uvdvuKjlGHA.4792@.TK2MSFTNGP02.phx.gbl...
> Hello,
> I am working on a project that will require the use of SQL Server 2005
> Workgroup Edition. We were planning to use the version that comes with 5
> CALs instead of the version that is licensed based on processors due to
> the enormous cost difference.
> The application I am working on is using c#. This program will spawn
> multiple threads to communicate with instruments attached on the network
> Each of these threads will have a connection to the db to save data. I am
> being told that each thread will require a CAL. Is that correct? I can
> not find anything in the licensing information that explicitly states
> this. It was my understanding that a CAL is based on user or device and
> could make as many connections to the db as needed.
> Thanks|||Hi Roger,
Thanks for replying.
I want to make sure I understand how this works. My program will be
running on the same computer as the SQL server. It will collect data
from up to 32 instruments in 32 threads. Based on this data, I will
save information to the database, 1 record for each instrument. Is this
considered multiplexing or pooling and that is why I would need 32 CALs?
If I used just 1 connection would 1 CAL be sufficient?
I will also have a couple of other computers that connect to this main
computer and view and edit the data. I know these will require separate
CALs.
I called MS Volume Licensing and was told that for each connection to
the database I needed a CAL period. If I have 1 user that opens up 5
connections (example 5 different programs) to the database that would
use 5 CALs. If I took 1 program that made a connection to the db and
ran it twice on the same computer that would require 2 CALS. Any
program I write needs a CAL for each connection to the database. To me
this seems like the CALs are based on connections and not users or
devices. Is that correct?
So I guess my real question is: Is a user or device CAL is only good
for 1 connection to the database? If the program this user is running
for whatever reason makes 2 connections to the database it requires 2
CALs even though its coming from the same user or device?
I have searched MS's website and have not found any solid information on
how this licensing is really suppose to work.
Thanks again
Roger Wolter[MSFT] wrote:
> If you have only 5 instruments then you should be OK. Each instrument is
a
> user and can spawn multiple connections although I don't understand why it
> would need to.
>|||Hi Roger,
Thanks for replying.
I want to make sure I understand how this works. My program will be
running on the same computer as the SQL server. It will collect data
from up to 32 instruments in 32 threads. Based on this data, I will
save information to the database, 1 record for each instrument. Is this
considered multiplexing or pooling and that is why I would need 32 CALs?
If I used just 1 connection would 1 CAL be sufficient?
I will also have a couple of other computers that connect to this main
computer and view and edit the data. I know these will require separate
CALs.
I called MS Volume Licensing and was told that for each connection to
the database I needed a CAL period. If I have 1 user that opens up 5
connections (example 5 different programs) to the database that would
use 5 CALs. If I took 1 program that made a connection to the db and
ran it twice on the same computer that would require 2 CALS. Any
program I write needs a CAL for each connection to the database. To me
this seems like the CALs are based on connections and not users or
devices. Is that correct?
So I guess my real question is: Is a user or device CAL is only good
for 1 connection to the database? If the program this user is running
for whatever reason makes 2 connections to the database it requires 2
CALs even though its coming from the same user or device?
I have searched MS's website and have not found any solid information on
how this licensing is really suppose to work.
Thanks again
Roger Wolter[MSFT] wrote:
> If you have only 5 instruments then you should be OK. Each instrument is
a
> user and can spawn multiple connections although I don't understand why it
> would need to.
>|||First, (disclaimer) I'm not a licensing expert.
As I understand your problem, you have one client program (where it executes
is immaterial -standalone or server).
That one client application has multiple threads connecting to various
input/output devices -including keyboard, mouse, etc.
That one client application obtains information from those input/output
devices, and then that one client saves data in SQL Server.
I believe you have one client requiring one CAL.
The various input/output devices are not connecting to SQL Server.
Consider other various input/output devices. Should you have a separate CAL
for keyboard, mouse, PLC, barcode reader, digital tablet, etc. I think you
can see where I'm going. If your various 'instruments' directly connected to
SQL Server, (and had the intelligence to use that connection) they would
require CALs -but they do not. You application is not serving as a 'proxy'
for these input/output devices (as a web server serves as proxy to
individual client sessions.)
If I have 10 (or whatever number) of client applications running on a single
computer, each running in its own thread, each connected to SQL Server, I
only need a single CAL (either device or user). Except of course, if by
using terminal services, or Citrix, my computer is serving as a proxy for
other computers -then each proxied connection requires its own CAL.
Let me know if this helps,
Arnie Rowland, YACE*
"To be successful, your heart must accompany your knowledge."
*Yet Another certification Exam
"Patrick Brand" <"pbrand$NOSPAM$"@.ludlums.com> wrote in message
news:uvdvuKjlGHA.4792@.TK2MSFTNGP02.phx.gbl...
> Hello,
> I am working on a project that will require the use of SQL Server 2005
> Workgroup Edition. We were planning to use the version that comes with 5
> CALs instead of the version that is licensed based on processors due to
> the enormous cost difference.
> The application I am working on is using c#. This program will spawn
> multiple threads to communicate with instruments attached on the network
> Each of these threads will have a connection to the db to save data. I am
> being told that each thread will require a CAL. Is that correct? I can
> not find anything in the licensing information that explicitly states
> this. It was my understanding that a CAL is based on user or device and
> could make as many connections to the db as needed.
> Thanks|||My interpretation is that you would need 32 CALs to cover your 32 devices
but I'm not a lawyer so you need to go with what the licensing people say.
To me, your situation is the same as 32 users connecting to a middle tier
application that opens up one or more connections to the database. In that
case you pay for 32 CALs because what counts is users of the database not
connections. Conversely, those same 32 users could each open 2 connections
to the database and still only require 32 CALs. I don't know if there's a
different policy if your users are really inanimate objects (I've had users
that were pretty inanimate but that's a different story) so you need to talk
to the licensing people.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Patrick Brand" <"pbrand$NOSPAM$"@.ludlums.com> wrote in message
news:%231sopWtlGHA.4076@.TK2MSFTNGP03.phx.gbl...[vbcol=seagreen]
> Hi Roger,
> Thanks for replying.
> I want to make sure I understand how this works. My program will be
> running on the same computer as the SQL server. It will collect data from
> up to 32 instruments in 32 threads. Based on this data, I will save
> information to the database, 1 record for each instrument. Is this
> considered multiplexing or pooling and that is why I would need 32 CALs?
> If I used just 1 connection would 1 CAL be sufficient?
> I will also have a couple of other computers that connect to this main
> computer and view and edit the data. I know these will require separate
> CALs.
> I called MS Volume Licensing and was told that for each connection to the
> database I needed a CAL period. If I have 1 user that opens up 5
> connections (example 5 different programs) to the database that would use
> 5 CALs. If I took 1 program that made a connection to the db and ran it
> twice on the same computer that would require 2 CALS. Any program I write
> needs a CAL for each connection to the database. To me this seems like
> the CALs are based on connections and not users or devices. Is that
> correct?
> So I guess my real question is: Is a user or device CAL is only good for
> 1 connection to the database? If the program this user is running for
> whatever reason makes 2 connections to the database it requires 2 CALs
> even though its coming from the same user or device?
> I have searched MS's website and have not found any solid information on
> how this licensing is really suppose to work.
> Thanks again
> Roger Wolter[MSFT] wrote:|||As I said before, I'm not a licensing expert. I have engaged in lengthly
conversations with legal staff at several major manufacturing 'partners'
about my concerns in regards to licensing. I'm relating to what I have been
told and observed to be in actual practice.
There are a number of products in the process control field that serve to
collect input from PLC devices in manfacturing, and then store that input in
database servers such as SQL Server. Those products collect the data,
perhaps 'massage' it in some way, and then save the data in a data server.
Logically, it's really not much different than using a keyboard as an input
device -and often with as little 'intelligence' as a keyboard.
According to your logic, every major manufacturer is out of complicance
since they are not buying a CAL for each and every production line input
device. (Of course, Microsoft would like that, but the very large
manfacturing user base would be extremely uncomfortable with that analysis.)
I think the key is "Can (or) Does the device directly use the connection
with or without the 'middleman' application? If so, as in the case of any
middle tier (COM server, Web server, etc.) application, a CAL is required.
It seems that if the device could never use a connection with/or without the
'middleman' application, it 'may' not require a CAL. (Note the
equivocation -I'm not a licensing specialist. And sometimes when chatting
with VL phone folks, it takes a bit of explaining (sometimes over and over)
to be clearly understood -after all, their job is to sell licenses -not help
the customer avoid unneeded licenses!)
Perhaps Patrict needed assistance in understanding how to more clearly
communicate the issues to the VL folks. If so, I hope I helped. If I muddied
the waters, I offer my regrets.
However, as always, since everything changes so fast and so much, I am open
to my continued education...(And I'm backing out of this conversation
leaving it to more learned hands.)
Arnie Rowland, YACE*
"To be successful, your heart must accompany your knowledge."
*Yet Another certification Exam
"Roger Wolter[MSFT]" <rwolter@.online.microsoft.com> wrote in message
news:OhoxvVxlGHA.4100@.TK2MSFTNGP05.phx.gbl...
> My interpretation is that you would need 32 CALs to cover your 32 devices
> but I'm not a lawyer so you need to go with what the licensing people say.
> To me, your situation is the same as 32 users connecting to a middle tier
> application that opens up one or more connections to the database. In
> that case you pay for 32 CALs because what counts is users of the database
> not connections. Conversely, those same 32 users could each open 2
> connections to the database and still only require 32 CALs. I don't know
> if there's a different policy if your users are really inanimate objects
> (I've had users that were pretty inanimate but that's a different story)
> so you need to talk to the licensing people.
> --
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> "Patrick Brand" <"pbrand$NOSPAM$"@.ludlums.com> wrote in message
> news:%231sopWtlGHA.4076@.TK2MSFTNGP03.phx.gbl...
>|||First, (disclaimer) I'm not a licensing expert.
As I understand your problem, you have one client program (where it executes
is immaterial -standalone or server).
That one client application has multiple threads connecting to various
input/output devices -including keyboard, mouse, etc.
That one client application obtains information from those input/output
devices, and then that one client saves data in SQL Server.
I believe you have one client requiring one CAL.
The various input/output devices are not connecting to SQL Server.
Consider other various input/output devices. Should you have a separate CAL
for keyboard, mouse, PLC, barcode reader, digital tablet, etc. I think you
can see where I'm going. If your various 'instruments' directly connected to
SQL Server, (and had the intelligence to use that connection) they would
require CALs -but they do not. You application is not serving as a 'proxy'
for these input/output devices (as a web server serves as proxy to
individual client sessions.)
If I have 10 (or whatever number) of client applications running on a single
computer, each running in its own thread, each connected to SQL Server, I
only need a single CAL (either device or user). Except of course, if by
using terminal services, or Citrix, my computer is serving as a proxy for
other computers -then each proxied connection requires its own CAL.
Let me know if this helps,
Arnie Rowland, YACE*
"To be successful, your heart must accompany your knowledge."
*Yet Another certification Exam
"Patrick Brand" <"pbrand$NOSPAM$"@.ludlums.com> wrote in message
news:uvdvuKjlGHA.4792@.TK2MSFTNGP02.phx.gbl...
> Hello,
> I am working on a project that will require the use of SQL Server 2005
> Workgroup Edition. We were planning to use the version that comes with 5
> CALs instead of the version that is licensed based on processors due to
> the enormous cost difference.
> The application I am working on is using c#. This program will spawn
> multiple threads to communicate with instruments attached on the network
> Each of these threads will have a connection to the db to save data. I am
> being told that each thread will require a CAL. Is that correct? I can
> not find anything in the licensing information that explicitly states
> this. It was my understanding that a CAL is based on user or device and
> could make as many connections to the db as needed.
> Thanks|||My interpretation is that you would need 32 CALs to cover your 32 devices
but I'm not a lawyer so you need to go with what the licensing people say.
To me, your situation is the same as 32 users connecting to a middle tier
application that opens up one or more connections to the database. In that
case you pay for 32 CALs because what counts is users of the database not
connections. Conversely, those same 32 users could each open 2 connections
to the database and still only require 32 CALs. I don't know if there's a
different policy if your users are really inanimate objects (I've had users
that were pretty inanimate but that's a different story) so you need to talk
to the licensing people.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Patrick Brand" <"pbrand$NOSPAM$"@.ludlums.com> wrote in message
news:%231sopWtlGHA.4076@.TK2MSFTNGP03.phx.gbl...[vbcol=seagreen]
> Hi Roger,
> Thanks for replying.
> I want to make sure I understand how this works. My program will be
> running on the same computer as the SQL server. It will collect data from
> up to 32 instruments in 32 threads. Based on this data, I will save
> information to the database, 1 record for each instrument. Is this
> considered multiplexing or pooling and that is why I would need 32 CALs?
> If I used just 1 connection would 1 CAL be sufficient?
> I will also have a couple of other computers that connect to this main
> computer and view and edit the data. I know these will require separate
> CALs.
> I called MS Volume Licensing and was told that for each connection to the
> database I needed a CAL period. If I have 1 user that opens up 5
> connections (example 5 different programs) to the database that would use
> 5 CALs. If I took 1 program that made a connection to the db and ran it
> twice on the same computer that would require 2 CALS. Any program I write
> needs a CAL for each connection to the database. To me this seems like
> the CALs are based on connections and not users or devices. Is that
> correct?
> So I guess my real question is: Is a user or device CAL is only good for
> 1 connection to the database? If the program this user is running for
> whatever reason makes 2 connections to the database it requires 2 CALs
> even though its coming from the same user or device?
> I have searched MS's website and have not found any solid information on
> how this licensing is really suppose to work.
> Thanks again
> Roger Wolter[MSFT] wrote:

Wednesday, March 7, 2012

Multiple SQL Server - Central Server Problem

Hello,
We had some problems about our project. We have 60 sql server over the
country. We want to collect all data in central server. For collecting data
we developed a project. We get data from local server and transfer them to
central server. We have to transfer huge data. While we transfer data to
central server we are unable to access to defined DB in central database so
we can not query DB. it gives time out error. How can we get over this
problem. is there any idea?
Thanks,Odyssey (saintfi@.gmail.com) writes:
> We had some problems about our project. We have 60 sql server over the
> country. We want to collect all data in central server. For collecting
> data we developed a project. We get data from local server and transfer
> them to central server. We have to transfer huge data. While we transfer
> data to central server we are unable to access to defined DB in central
> database so we can not query DB. it gives time out error. How can we get
> over this problem. is there any idea?
With this scant information, it is very difficult to say that much
intelligent. How to you get the data from the local servers to the
central servers today? Replication? DTS? Linked server? Something else?
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx|||What I do is -
1) Create a temp db (same schema as the intended db) on the
distination, e.g. the intended database is called CUSTOMERS, you create
a temp db called CUSOMERS_IMPORT with the identical schema.
2) Do the data transfer to the temp db, in this case CUSTOMERS_IMPORT
3) After the data is fully loaded, use sp_rename to switch the temp db
to the intended db and verse versa. In this example, rename CUSTOMERS
to CUSTOMERS_IMPORT, then rename CUSTOMERS_IMPORT to CUSTOMERS.
Re-apply indexes if any.
4) Delete from CUSTOMERS_IMPORT, which was the orignal db for the next
round of data loading (if it is a repeatable thing).
This way, the CUSTOEMRS database is still available for query while the
data is loaded in the temp db CUSTOMERS_IMPORT. The rename switch
takes about a second or two.
That how I max my db availablity for long data loading.
Mel

Multiple Sources & Destinations...

Hello,

I am working on a typical data conversion project where we are migrating data from an old data model to a new data model, using SSIS. Both the DBs are in SQL.

Now we have a situation where say there are 25 source tables and 20 odd target tables.

For transporting data, we are using OLEDB Source & OLEDB Destination transforms. However, each transform maps to one view or one table. As a result, the Data Flow is really messed up with 45+ transforms in it. Is there an elegant way of doing this ? With say just one datasource or maybe fewer transforms?

Thanks,

Satya

I would have one Data Flow for each set of source and destination tables. Only cover related tables min each. I assume this means 20 tasks as you have 20 destination tables.