Showing posts with label software. Show all posts
Showing posts with label software. Show all posts

Sunday, March 11, 2012

Creating Reports on SQL Server 2005 Mobile Edition


I am looking for a reporting software to create reports (Invoices, Receipts) for PocketPC 2003 using Visual Studio 2005 and SQL Server 2005 Mobile Edition.
Any recommendations will be appreciated.

Thanks, Alla

At present SQL Server 2005 Mobile Edition doesnt have integration with SQL Reporting services or Crystal reports. You may need to author your own report and query SQL Mobile database for data.|||

In our development, we do it "by hands" and send to printer via a third party "PrinterCE".

HTH, Fabien.

Creating Reports on SQL Server 2005 Mobile Edition


I am looking for a reporting software to create reports (Invoices, Receipts) for PocketPC 2003 using Visual Studio 2005 and SQL Server 2005 Mobile Edition.
Any recommendations will be appreciated.

Thanks, Alla

At present SQL Server 2005 Mobile Edition doesnt have integration with SQL Reporting services or Crystal reports. You may need to author your own report and query SQL Mobile database for data.|||

In our development, we do it "by hands" and send to printer via a third party "PrinterCE".

HTH, Fabien.

Creating Reports from a SQL Server Database

What software/application offers the fastest performance when reporting from
a SQL Server database. Currently I am using MS-Access with an odbc
connection to the database. Although the tables are indexed, they are
somewhat large and multiple links are needed in queries. The result is that
in some instances reports take quite a while to run. I am trying to find out
if there is a "native" or faster way to produce these reports.
If you're using SQL Server 2000 then Reporting Services would definitely be
a better option.
Michael Otey
"Jim Pockmire" <jpockmire@.cinci.rr.com> wrote in message
news:ulbJc.54361$W6.54088@.fe2.texas.rr.com...
> What software/application offers the fastest performance when reporting
from
> a SQL Server database. Currently I am using MS-Access with an odbc
> connection to the database. Although the tables are indexed, they are
> somewhat large and multiple links are needed in queries. The result is
that
> in some instances reports take quite a while to run. I am trying to find
out
> if there is a "native" or faster way to produce these reports.
>
|||Michael,
Yes this is a SQL Server 2000 database. But being unfamiliar with it, is
"Reporting Services" a component of SQL Server?
Jim
"Michael Otey" <mikeo@.teca.com> wrote in message
news:%23enJXbjaEHA.3804@.TK2MSFTNGP10.phx.gbl...
> If you're using SQL Server 2000 then Reporting Services would definitely
be
> a better option.
> Michael Otey
>
> "Jim Pockmire" <jpockmire@.cinci.rr.com> wrote in message
> news:ulbJc.54361$W6.54088@.fe2.texas.rr.com...
> from
> that
> out
>
|||I am using SQL Server 2000 via Microsoft Office XP Developer Edition. I
can't seem to find out if Reporting Services is included or not. How can I
get more information?
"Michael Otey" <mikeo@.teca.com> wrote in message
news:%23enJXbjaEHA.3804@.TK2MSFTNGP10.phx.gbl...
> If you're using SQL Server 2000 then Reporting Services would definitely
be
> a better option.
> Michael Otey
>
> "Jim Pockmire" <jpockmire@.cinci.rr.com> wrote in message
> news:ulbJc.54361$W6.54088@.fe2.texas.rr.com...
> from
> that
> out
>
|||If you have SQL Server 2000 you are also licensed to use Reporting Services.
Reporting Services is an excellent reporting authoring and deployments tool.
The place to start to find out more information is:
http://www.microsoft.com/sql/reporting/default.asp
and
http://www.microsoft.com/sql/reporti...uy/default.asp
Michael Otey
"Jim Pockmire" <jpockmire@.cinci.rr.com> wrote in message
news:xxxJc.44357$mY2.4728@.fe1.texas.rr.com...
> I am using SQL Server 2000 via Microsoft Office XP Developer Edition. I
> can't seem to find out if Reporting Services is included or not. How can
I[vbcol=seagreen]
> get more information?
>
> "Michael Otey" <mikeo@.teca.com> wrote in message
> news:%23enJXbjaEHA.3804@.TK2MSFTNGP10.phx.gbl...
> be
reporting[vbcol=seagreen]
find
>

Creating Reports from a SQL Server Database

What software/application offers the fastest performance when reporting from
a SQL Server database. Currently I am using MS-Access with an odbc
connection to the database. Although the tables are indexed, they are
somewhat large and multiple links are needed in queries. The result is that
in some instances reports take quite a while to run. I am trying to find out
if there is a "native" or faster way to produce these reports.If you're using SQL Server 2000 then Reporting Services would definitely be
a better option.
Michael Otey
"Jim Pockmire" <jpockmire@.cinci.rr.com> wrote in message
news:ulbJc.54361$W6.54088@.fe2.texas.rr.com...
> What software/application offers the fastest performance when reporting
from
> a SQL Server database. Currently I am using MS-Access with an odbc
> connection to the database. Although the tables are indexed, they are
> somewhat large and multiple links are needed in queries. The result is
that
> in some instances reports take quite a while to run. I am trying to find
out
> if there is a "native" or faster way to produce these reports.
>|||Michael,
Yes this is a SQL Server 2000 database. But being unfamiliar with it, is
"Reporting Services" a component of SQL Server?
Jim
"Michael Otey" <mikeo@.teca.com> wrote in message
news:%23enJXbjaEHA.3804@.TK2MSFTNGP10.phx.gbl...
> If you're using SQL Server 2000 then Reporting Services would definitely
be
> a better option.
> Michael Otey
>
> "Jim Pockmire" <jpockmire@.cinci.rr.com> wrote in message
> news:ulbJc.54361$W6.54088@.fe2.texas.rr.com...
> from
> that
> out
>|||I am using SQL Server 2000 via Microsoft Office XP Developer Edition. I
can't seem to find out if Reporting Services is included or not. How can I
get more information?
"Michael Otey" <mikeo@.teca.com> wrote in message
news:%23enJXbjaEHA.3804@.TK2MSFTNGP10.phx.gbl...
> If you're using SQL Server 2000 then Reporting Services would definitely
be
> a better option.
> Michael Otey
>
> "Jim Pockmire" <jpockmire@.cinci.rr.com> wrote in message
> news:ulbJc.54361$W6.54088@.fe2.texas.rr.com...
> from
> that
> out
>|||If you have SQL Server 2000 you are also licensed to use Reporting Services.
Reporting Services is an excellent reporting authoring and deployments tool.
The place to start to find out more information is:
http://www.microsoft.com/sql/reporting/default.asp
and
http://www.microsoft.com/sql/report...buy/default.asp
Michael Otey
"Jim Pockmire" <jpockmire@.cinci.rr.com> wrote in message
news:xxxJc.44357$mY2.4728@.fe1.texas.rr.com...
> I am using SQL Server 2000 via Microsoft Office XP Developer Edition. I
> can't seem to find out if Reporting Services is included or not. How can
I
> get more information?
>
> "Michael Otey" <mikeo@.teca.com> wrote in message
> news:%23enJXbjaEHA.3804@.TK2MSFTNGP10.phx.gbl...
> be
reporting[vbcol=seagreen]
find[vbcol=seagreen]
>

Thursday, March 8, 2012

Creating RDL Files - Software Requirements

I have a copy of SQL Server Express running, but am not sure how to create
reports. Does this require a full/regular copy of Visual Studio or is there
an 'express' (read:free) solution to create reports.
Thanks,
MatthewThere is another version called SQL Server 2005 Express Edition with
Advanced Services SP1 which comes with everything you need to develop
reports. Note that the data for your reports need to be local (in your SQL
Server Express database is what I believe that means).
Download here: http://msdn.microsoft.com/vstudio/express/sql/download/
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"matthew gibson" <matthewgibson@.discussions.microsoft.com> wrote in message
news:9D74D31A-EFB3-492F-8D23-C2D9B51CEADD@.microsoft.com...
>I have a copy of SQL Server Express running, but am not sure how to create
> reports. Does this require a full/regular copy of Visual Studio or is
> there
> an 'express' (read:free) solution to create reports.
> Thanks,
> Matthew|||yes, I think. I have that. Here is a select @.@.version to clarify...
Microsoft SQL Server 2005 - 9.00.2047.00 (Intel X86)
Apr 14 2006 01:12:25
Copyright (c) 1988-2005 Microsoft Corporation
Express Edition with Advanced Services on Windows NT 5.2 (Build 3790:
Service Pack 1)
I have seen references to Business Intelligence Designer. I have the
virtual directory for reports. I can go out to it and there is an option to
upload RDL files; however, I am not sure what tool is necessary to create RDL
files. I know Visual Studio (for pay ones) can do it, but I don't know if
there is a free version. I don't see anything in the SQL MGMT tool or in the
Start Menu which allow me to create reports. I do see the Report SErver
configuration tool... and it shows it to be setup correctly.
Thanks!
Matthew
"Bruce L-C [MVP]" wrote:
> There is another version called SQL Server 2005 Express Edition with
> Advanced Services SP1 which comes with everything you need to develop
> reports. Note that the data for your reports need to be local (in your SQL
> Server Express database is what I believe that means).
> Download here: http://msdn.microsoft.com/vstudio/express/sql/download/
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "matthew gibson" <matthewgibson@.discussions.microsoft.com> wrote in message
> news:9D74D31A-EFB3-492F-8D23-C2D9B51CEADD@.microsoft.com...
> >I have a copy of SQL Server Express running, but am not sure how to create
> > reports. Does this require a full/regular copy of Visual Studio or is
> > there
> > an 'express' (read:free) solution to create reports.
> > Thanks,
> > Matthew
>
>|||I don't know about the setup but it shouldn't be any difference. You need to
install the Business Intelligence tools. It will install a version of VS to
host the report designer. Run setup and see about a choice to install. Once
installed you should be have something in your program files called SQL
Server Business Intelligence Development Studio.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"matthew gibson" <matthewgibson@.discussions.microsoft.com> wrote in message
news:81305E18-ABEF-449E-AA63-76CEF9583387@.microsoft.com...
> yes, I think. I have that. Here is a select @.@.version to clarify...
> Microsoft SQL Server 2005 - 9.00.2047.00 (Intel X86)
> Apr 14 2006 01:12:25
> Copyright (c) 1988-2005 Microsoft Corporation
> Express Edition with Advanced Services on Windows NT 5.2 (Build 3790:
> Service Pack 1)
> I have seen references to Business Intelligence Designer. I have the
> virtual directory for reports. I can go out to it and there is an option
> to
> upload RDL files; however, I am not sure what tool is necessary to create
> RDL
> files. I know Visual Studio (for pay ones) can do it, but I don't know if
> there is a free version. I don't see anything in the SQL MGMT tool or in
> the
> Start Menu which allow me to create reports. I do see the Report SErver
> configuration tool... and it shows it to be setup correctly.
> Thanks!
> Matthew
>
> "Bruce L-C [MVP]" wrote:
>> There is another version called SQL Server 2005 Express Edition with
>> Advanced Services SP1 which comes with everything you need to develop
>> reports. Note that the data for your reports need to be local (in your
>> SQL
>> Server Express database is what I believe that means).
>> Download here: http://msdn.microsoft.com/vstudio/express/sql/download/
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>> "matthew gibson" <matthewgibson@.discussions.microsoft.com> wrote in
>> message
>> news:9D74D31A-EFB3-492F-8D23-C2D9B51CEADD@.microsoft.com...
>> >I have a copy of SQL Server Express running, but am not sure how to
>> >create
>> > reports. Does this require a full/regular copy of Visual Studio or is
>> > there
>> > an 'express' (read:free) solution to create reports.
>> > Thanks,
>> > Matthew
>>

Friday, February 24, 2012

Creating Log file & Attaching db?

Bit of a SQL newbie, having taken over a support role for a piece of software that my firm sells. It is basically a DB that runs on MSDE or SQL Server in either desktop or enterprise scenarios.

We do sell our software to clients who may or may not already have SQL on their machines. During installation, it searches for sqlservr.exe for existing SQL installations and if it finds nothing, will then install MSDE 1.0 to house the db files.

My question is this -

I can manually create a db or manually attach an existing db through sql query analyser where there is a full-blown SQL installation. Is there any way I can do the same where there is only MSDE installed? The simple solution, I guess, would be to download one of the freeware or shareware MSDE "Enterprise Managers", but this won't always be suitable for a client installation.

Many thanks for your assistance all.

:cool:you could use sp_attach_db to attach a sqlserver database to sqlserver. Don't know about msde though.|||you could use sp_attach_db to attach a sqlserver database to sqlserver. Don't know about msde though.

Thanks

Yep, this is what I would use if I was doing it through the SQL. Still wondering about MSDE tho.
:confused:|||You can look into SQL-DMO and write up a quick routine that would do the attaching.

Friday, February 17, 2012

Creating different instances for each customer

Hello,
We want to manage customers over a VPN, such that a customer logs into the
software, the accounting software (smart client), and checks his/her info.
We at the server want to manage the accounts with the software.
Is creating different instances for each customer a good way, or we should
create one instance and add their databases in the same instance? What are
the pros and cons?
I appreciate your comments in advance.
--
MikeCreating one instance per customer is almost always a bad idea. First of all,
a server can only support that many instances (the maximum number of SQL2000
instances supported on a computer is 16). Secondly, there is significant
overhead in maintaining an instance that would be a total waste repeated for
each customer. You would be much better off with one database per customer
within an instance. In most cases, you would be even better off with a single
database for multiple customers, and that's what a DBMS is designed for.
Thirdly, forget about the scalability and feasibility for now. The cost
factor would be prohibitive if you have many customers since you would have
to keep adding more servers.
All that said, one instance per customer can be easily justified if we are
talking about each customer being sufficient large in its data volume,
resource consumption, importance in isolation, and so on. Say if you only
have a few cusotmer accounts and each is a Fortune 500 company and each is
generating a lot of revenue for you. Heck, you may even need to dedicate a
cluster for each customer.
So we need more detail to be specific.
Linchi
"Mike9900" wrote:
> Hello,
> We want to manage customers over a VPN, such that a customer logs into the
> software, the accounting software (smart client), and checks his/her info.
> We at the server want to manage the accounts with the software.
> Is creating different instances for each customer a good way, or we should
> create one instance and add their databases in the same instance? What are
> the pros and cons?
> I appreciate your comments in advance.
> --
> Mike|||Hi Linchi,
Thanks for help.
We use SQL Server 2005. It is not possible to keep all customers in one db.
But I think each instance for a customer is a bad idea because the instance
would allocate its own memory.
But we are concerned about customer security. If all customers use the same
instance, we must keep the sa password secret. Also, our software does not
use SQL server user id to connect, instead it has a master user id in SQL
server, and the user connects to the app, then the app uses the master
password to check the user id with the db. So, if we create different user
id for each customer the app connects to SQL server with the same master user
id. So the connection string have the same userid/password, but will have
different computer name. I am wondering if this may decrease the performance.
Our customer are small and do not have huge transactions.
Mike
"Linchi Shea" wrote:
> Creating one instance per customer is almost always a bad idea. First of all,
> a server can only support that many instances (the maximum number of SQL2000
> instances supported on a computer is 16). Secondly, there is significant
> overhead in maintaining an instance that would be a total waste repeated for
> each customer. You would be much better off with one database per customer
> within an instance. In most cases, you would be even better off with a single
> database for multiple customers, and that's what a DBMS is designed for.
> Thirdly, forget about the scalability and feasibility for now. The cost
> factor would be prohibitive if you have many customers since you would have
> to keep adding more servers.
> All that said, one instance per customer can be easily justified if we are
> talking about each customer being sufficient large in its data volume,
> resource consumption, importance in isolation, and so on. Say if you only
> have a few cusotmer accounts and each is a Fortune 500 company and each is
> generating a lot of revenue for you. Heck, you may even need to dedicate a
> cluster for each customer.
> So we need more detail to be specific.
> Linchi
> "Mike9900" wrote:
> > Hello,
> >
> > We want to manage customers over a VPN, such that a customer logs into the
> > software, the accounting software (smart client), and checks his/her info.
> > We at the server want to manage the accounts with the software.
> >
> > Is creating different instances for each customer a good way, or we should
> > create one instance and add their databases in the same instance? What are
> > the pros and cons?
> >
> > I appreciate your comments in advance.
> >
> > --
> > Mike|||I assume you guys are the author of this software. If so, I don't see why it
is NOT possible to use multiple databases instead of multiple instances.
Fixing the overall architecture later on will be much more difficult than
fixing how the logins are handled now.
Linchi
"Mike9900" wrote:
> Hi Linchi,
> Thanks for help.
> We use SQL Server 2005. It is not possible to keep all customers in one db.
> But I think each instance for a customer is a bad idea because the instance
> would allocate its own memory.
> But we are concerned about customer security. If all customers use the same
> instance, we must keep the sa password secret. Also, our software does not
> use SQL server user id to connect, instead it has a master user id in SQL
> server, and the user connects to the app, then the app uses the master
> password to check the user id with the db. So, if we create different user
> id for each customer the app connects to SQL server with the same master user
> id. So the connection string have the same userid/password, but will have
> different computer name. I am wondering if this may decrease the performance.
> Our customer are small and do not have huge transactions.
>
> --
> Mike
>
> "Linchi Shea" wrote:
> > Creating one instance per customer is almost always a bad idea. First of all,
> > a server can only support that many instances (the maximum number of SQL2000
> > instances supported on a computer is 16). Secondly, there is significant
> > overhead in maintaining an instance that would be a total waste repeated for
> > each customer. You would be much better off with one database per customer
> > within an instance. In most cases, you would be even better off with a single
> > database for multiple customers, and that's what a DBMS is designed for.
> > Thirdly, forget about the scalability and feasibility for now. The cost
> > factor would be prohibitive if you have many customers since you would have
> > to keep adding more servers.
> >
> > All that said, one instance per customer can be easily justified if we are
> > talking about each customer being sufficient large in its data volume,
> > resource consumption, importance in isolation, and so on. Say if you only
> > have a few cusotmer accounts and each is a Fortune 500 company and each is
> > generating a lot of revenue for you. Heck, you may even need to dedicate a
> > cluster for each customer.
> >
> > So we need more detail to be specific.
> >
> > Linchi
> >
> > "Mike9900" wrote:
> >
> > > Hello,
> > >
> > > We want to manage customers over a VPN, such that a customer logs into the
> > > software, the accounting software (smart client), and checks his/her info.
> > > We at the server want to manage the accounts with the software.
> > >
> > > Is creating different instances for each customer a good way, or we should
> > > create one instance and add their databases in the same instance? What are
> > > the pros and cons?
> > >
> > > I appreciate your comments in advance.
> > >
> > > --
> > > Mike|||Thanks.
So my question is if the connection string differs by the computer name, in
Workstation ID of conn string, would the sql server think of it as a
different connection string in the pool.
--
Mike
"Linchi Shea" wrote:
> I assume you guys are the author of this software. If so, I don't see why it
> is NOT possible to use multiple databases instead of multiple instances.
> Fixing the overall architecture later on will be much more difficult than
> fixing how the logins are handled now.
> Linchi
> "Mike9900" wrote:
> > Hi Linchi,
> >
> > Thanks for help.
> >
> > We use SQL Server 2005. It is not possible to keep all customers in one db.
> > But I think each instance for a customer is a bad idea because the instance
> > would allocate its own memory.
> >
> > But we are concerned about customer security. If all customers use the same
> > instance, we must keep the sa password secret. Also, our software does not
> > use SQL server user id to connect, instead it has a master user id in SQL
> > server, and the user connects to the app, then the app uses the master
> > password to check the user id with the db. So, if we create different user
> > id for each customer the app connects to SQL server with the same master user
> > id. So the connection string have the same userid/password, but will have
> > different computer name. I am wondering if this may decrease the performance.
> >
> > Our customer are small and do not have huge transactions.
> >
> >
> >
> > --
> > Mike
> >
> >
> > "Linchi Shea" wrote:
> >
> > > Creating one instance per customer is almost always a bad idea. First of all,
> > > a server can only support that many instances (the maximum number of SQL2000
> > > instances supported on a computer is 16). Secondly, there is significant
> > > overhead in maintaining an instance that would be a total waste repeated for
> > > each customer. You would be much better off with one database per customer
> > > within an instance. In most cases, you would be even better off with a single
> > > database for multiple customers, and that's what a DBMS is designed for.
> > > Thirdly, forget about the scalability and feasibility for now. The cost
> > > factor would be prohibitive if you have many customers since you would have
> > > to keep adding more servers.
> > >
> > > All that said, one instance per customer can be easily justified if we are
> > > talking about each customer being sufficient large in its data volume,
> > > resource consumption, importance in isolation, and so on. Say if you only
> > > have a few cusotmer accounts and each is a Fortune 500 company and each is
> > > generating a lot of revenue for you. Heck, you may even need to dedicate a
> > > cluster for each customer.
> > >
> > > So we need more detail to be specific.
> > >
> > > Linchi
> > >
> > > "Mike9900" wrote:
> > >
> > > > Hello,
> > > >
> > > > We want to manage customers over a VPN, such that a customer logs into the
> > > > software, the accounting software (smart client), and checks his/her info.
> > > > We at the server want to manage the accounts with the software.
> > > >
> > > > Is creating different instances for each customer a good way, or we should
> > > > create one instance and add their databases in the same instance? What are
> > > > the pros and cons?
> > > >
> > > > I appreciate your comments in advance.
> > > >
> > > > --
> > > > Mike|||It is never a good idea to give out the sa password regardless of how you
implement. Hopefully your app is not running under sa rights.
--
Andrew J. Kelly SQL MVP
Solid Quality Mentors
"Mike9900" <Mike9900@.discussions.microsoft.com> wrote in message
news:17B8417C-A9BD-44DD-8F10-68BCE2735FFC@.microsoft.com...
> Hi Linchi,
> Thanks for help.
> We use SQL Server 2005. It is not possible to keep all customers in one
> db.
> But I think each instance for a customer is a bad idea because the
> instance
> would allocate its own memory.
> But we are concerned about customer security. If all customers use the
> same
> instance, we must keep the sa password secret. Also, our software does
> not
> use SQL server user id to connect, instead it has a master user id in SQL
> server, and the user connects to the app, then the app uses the master
> password to check the user id with the db. So, if we create different
> user
> id for each customer the app connects to SQL server with the same master
> user
> id. So the connection string have the same userid/password, but will have
> different computer name. I am wondering if this may decrease the
> performance.
> Our customer are small and do not have huge transactions.
>
> --
> Mike
>
> "Linchi Shea" wrote:
>> Creating one instance per customer is almost always a bad idea. First of
>> all,
>> a server can only support that many instances (the maximum number of
>> SQL2000
>> instances supported on a computer is 16). Secondly, there is significant
>> overhead in maintaining an instance that would be a total waste repeated
>> for
>> each customer. You would be much better off with one database per
>> customer
>> within an instance. In most cases, you would be even better off with a
>> single
>> database for multiple customers, and that's what a DBMS is designed for.
>> Thirdly, forget about the scalability and feasibility for now. The cost
>> factor would be prohibitive if you have many customers since you would
>> have
>> to keep adding more servers.
>> All that said, one instance per customer can be easily justified if we
>> are
>> talking about each customer being sufficient large in its data volume,
>> resource consumption, importance in isolation, and so on. Say if you only
>> have a few cusotmer accounts and each is a Fortune 500 company and each
>> is
>> generating a lot of revenue for you. Heck, you may even need to dedicate
>> a
>> cluster for each customer.
>> So we need more detail to be specific.
>> Linchi
>> "Mike9900" wrote:
>> > Hello,
>> >
>> > We want to manage customers over a VPN, such that a customer logs into
>> > the
>> > software, the accounting software (smart client), and checks his/her
>> > info.
>> > We at the server want to manage the accounts with the software.
>> >
>> > Is creating different instances for each customer a good way, or we
>> > should
>> > create one instance and add their databases in the same instance? What
>> > are
>> > the pros and cons?
>> >
>> > I appreciate your comments in advance.
>> >
>> > --
>> > Mike|||No, our app create a different user id which has data reader/Writer rights
only and is not a db admin.
But the security for the app is defined and enforced by the application, and
not the sql server. The reason is that the app does not use stored procs,
and uses many things for the security not just security on table, such as the
right of the user to sell below certain price.
--
Mike
"Andrew J. Kelly" wrote:
> It is never a good idea to give out the sa password regardless of how you
> implement. Hopefully your app is not running under sa rights.
> --
> Andrew J. Kelly SQL MVP
> Solid Quality Mentors
>
> "Mike9900" <Mike9900@.discussions.microsoft.com> wrote in message
> news:17B8417C-A9BD-44DD-8F10-68BCE2735FFC@.microsoft.com...
> > Hi Linchi,
> >
> > Thanks for help.
> >
> > We use SQL Server 2005. It is not possible to keep all customers in one
> > db.
> > But I think each instance for a customer is a bad idea because the
> > instance
> > would allocate its own memory.
> >
> > But we are concerned about customer security. If all customers use the
> > same
> > instance, we must keep the sa password secret. Also, our software does
> > not
> > use SQL server user id to connect, instead it has a master user id in SQL
> > server, and the user connects to the app, then the app uses the master
> > password to check the user id with the db. So, if we create different
> > user
> > id for each customer the app connects to SQL server with the same master
> > user
> > id. So the connection string have the same userid/password, but will have
> > different computer name. I am wondering if this may decrease the
> > performance.
> >
> > Our customer are small and do not have huge transactions.
> >
> >
> >
> > --
> > Mike
> >
> >
> > "Linchi Shea" wrote:
> >
> >> Creating one instance per customer is almost always a bad idea. First of
> >> all,
> >> a server can only support that many instances (the maximum number of
> >> SQL2000
> >> instances supported on a computer is 16). Secondly, there is significant
> >> overhead in maintaining an instance that would be a total waste repeated
> >> for
> >> each customer. You would be much better off with one database per
> >> customer
> >> within an instance. In most cases, you would be even better off with a
> >> single
> >> database for multiple customers, and that's what a DBMS is designed for.
> >> Thirdly, forget about the scalability and feasibility for now. The cost
> >> factor would be prohibitive if you have many customers since you would
> >> have
> >> to keep adding more servers.
> >>
> >> All that said, one instance per customer can be easily justified if we
> >> are
> >> talking about each customer being sufficient large in its data volume,
> >> resource consumption, importance in isolation, and so on. Say if you only
> >> have a few cusotmer accounts and each is a Fortune 500 company and each
> >> is
> >> generating a lot of revenue for you. Heck, you may even need to dedicate
> >> a
> >> cluster for each customer.
> >>
> >> So we need more detail to be specific.
> >>
> >> Linchi
> >>
> >> "Mike9900" wrote:
> >>
> >> > Hello,
> >> >
> >> > We want to manage customers over a VPN, such that a customer logs into
> >> > the
> >> > software, the accounting software (smart client), and checks his/her
> >> > info.
> >> > We at the server want to manage the accounts with the software.
> >> >
> >> > Is creating different instances for each customer a good way, or we
> >> > should
> >> > create one instance and add their databases in the same instance? What
> >> > are
> >> > the pros and cons?
> >> >
> >> > I appreciate your comments in advance.
> >> >
> >> > --
> >> > Mike
>|||To quote MS documentation: "Each connection pool is associated with a
distinct connection string. When a new connection is opened, if the
connection string is not an exact match to an existing pool, a new pool is
created."
Linchi
"Mike9900" wrote:
> Thanks.
> So my question is if the connection string differs by the computer name, in
> Workstation ID of conn string, would the sql server think of it as a
> different connection string in the pool.
> --
> Mike
>
> "Linchi Shea" wrote:
> > I assume you guys are the author of this software. If so, I don't see why it
> > is NOT possible to use multiple databases instead of multiple instances.
> > Fixing the overall architecture later on will be much more difficult than
> > fixing how the logins are handled now.
> >
> > Linchi
> >
> > "Mike9900" wrote:
> >
> > > Hi Linchi,
> > >
> > > Thanks for help.
> > >
> > > We use SQL Server 2005. It is not possible to keep all customers in one db.
> > > But I think each instance for a customer is a bad idea because the instance
> > > would allocate its own memory.
> > >
> > > But we are concerned about customer security. If all customers use the same
> > > instance, we must keep the sa password secret. Also, our software does not
> > > use SQL server user id to connect, instead it has a master user id in SQL
> > > server, and the user connects to the app, then the app uses the master
> > > password to check the user id with the db. So, if we create different user
> > > id for each customer the app connects to SQL server with the same master user
> > > id. So the connection string have the same userid/password, but will have
> > > different computer name. I am wondering if this may decrease the performance.
> > >
> > > Our customer are small and do not have huge transactions.
> > >
> > >
> > >
> > > --
> > > Mike
> > >
> > >
> > > "Linchi Shea" wrote:
> > >
> > > > Creating one instance per customer is almost always a bad idea. First of all,
> > > > a server can only support that many instances (the maximum number of SQL2000
> > > > instances supported on a computer is 16). Secondly, there is significant
> > > > overhead in maintaining an instance that would be a total waste repeated for
> > > > each customer. You would be much better off with one database per customer
> > > > within an instance. In most cases, you would be even better off with a single
> > > > database for multiple customers, and that's what a DBMS is designed for.
> > > > Thirdly, forget about the scalability and feasibility for now. The cost
> > > > factor would be prohibitive if you have many customers since you would have
> > > > to keep adding more servers.
> > > >
> > > > All that said, one instance per customer can be easily justified if we are
> > > > talking about each customer being sufficient large in its data volume,
> > > > resource consumption, importance in isolation, and so on. Say if you only
> > > > have a few cusotmer accounts and each is a Fortune 500 company and each is
> > > > generating a lot of revenue for you. Heck, you may even need to dedicate a
> > > > cluster for each customer.
> > > >
> > > > So we need more detail to be specific.
> > > >
> > > > Linchi
> > > >
> > > > "Mike9900" wrote:
> > > >
> > > > > Hello,
> > > > >
> > > > > We want to manage customers over a VPN, such that a customer logs into the
> > > > > software, the accounting software (smart client), and checks his/her info.
> > > > > We at the server want to manage the accounts with the software.
> > > > >
> > > > > Is creating different instances for each customer a good way, or we should
> > > > > create one instance and add their databases in the same instance? What are
> > > > > the pros and cons?
> > > > >
> > > > > I appreciate your comments in advance.
> > > > >
> > > > > --
> > > > > Mike|||Mike9900 wrote on Sat, 13 Oct 2007 11:12:01 -0700:
> No, our app create a different user id which has data reader/Writer
> rights only and is not a db admin.
> But the security for the app is defined and enforced by the
> application, and not the sql server. The reason is that the app does
> not use stored procs, and uses many things for the security not just
> security on table, such as the right of the user to sell below certain
> price.
> -- Mike
Why not use a combination of SQL security (so clients can only access their
own database), and application level settings.
Dan|||Server app and client app can access their own dbs, but it does not limit the
client app to access certain tables within the db; which means the server app
does not provide any access.
But in the futures we may limit the client app by a server app.
--
Mike
"Daniel Crichton" wrote:
> Mike9900 wrote on Sat, 13 Oct 2007 11:12:01 -0700:
> > No, our app create a different user id which has data reader/Writer
> > rights only and is not a db admin.
> > But the security for the app is defined and enforced by the
> > application, and not the sql server. The reason is that the app does
> > not use stored procs, and uses many things for the security not just
> > security on table, such as the right of the user to sell below certain
> > price.
> > -- Mike
> Why not use a combination of SQL security (so clients can only access their
> own database), and application level settings.
> Dan
>
>