Showing posts with label application. Show all posts
Showing posts with label application. Show all posts

Friday, March 30, 2012

MS SQL vs free Databases

Hello

I need to write an application which must use a database system as a backend, but i have not choosed which one to use. MySQL and PostgreSQL has all the features i want. the most important is database performance. anyone has an idea which database performs faster?

thanks in advance

Well, since you're on the MSDN forums, I'll go ahead and recommend the obvious: try SQL Express or MSDE :-)...|||

Hi,

well SQL Server Express is very powerful, fast, and has rich features. There are normally other conditions that have to be kept in mind while decideing, but if you ask people in a MSDN group, I would say go the Express Way :-)

-Jens Suessmeyer.

http://www.sqlserver2005.de

|||

If you are writing an app from scratch, I'd say you are by far best of using .NET development on a SQL Express platform. You are dealing with the latest and most efficient development platform, the most supported platform, and one that is expandable down the road. And it is cheap to get in at entry level

If you hit a home run, you want to at least have the option of scaling up and up all the way to SQL Enterprise with failover clustered servers.

I don't dream too big, do I? ;-)

|||

A major consideration for your choice of database should include not only features and performance, but the development environment. You really need to consider the OS, programming languages, and tools that you want to use. If you have developers who are proficient with Microsoft technologies (i.e., .Net) then SQL Server is an obvious choice. SQL Server and .Net provide everything you need and there is a ton of documentation, sites, books, webcasts, etc. ad nauseam.

PostgreSQL is powerful and interesting. It supports many languages (C, PL/Python, PL/Perl, PL/pgSQL), but development in the open-source environment is a radical shift from the widespread commercial support of MS or Oracle. You will need to be very proficient at coding many things from scratch, finding open-source tools and support sites, etc. Also, while learning PostgreSQL, I found that it's backup and recovery features were years behind Oracle. So, if your application will be enterprise class, you need to closely examine backup and recovery and high availability features. If your production database goes down, "who you gonna call"? (BTW, there are lists you can subscribe to to get email support from the PostgreSQL developers, but it's not "official" support like you get with MS or Oracle.) Check out www.postgresql.org as a starting point. I cannot recommend highly enough the PostgreSQL Bootcamp at www.bignerdranch.com.

I don't know Jack about MySQL.

Good luck and choose wisely!

|||

i can study u plen.

Wednesday, March 28, 2012

MS SQL sever 2000 string connection problem

Hi, i'm very new to Web Matrix. I've been following the C# end-end application tutorial exactly but i can't seem to run my application.
The code given in the link below is for MS Access but I'm using MS SQL 2000, so i'm not sure of the syntax for the code provided below (string connectionString...)
Please help..thank u!!

http://www.asp.net/webmatrix/guidedtour/section91/bookrequestcontrol.aspx

string connectionString = @."Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\TempProjects\LibraryDatabase.mdb";

public void LoadRequestedBooks(){

try

{

string mySelectQuery = string.Format("SELECT books.* from books, requests where books.bid = requests.bid and requests.mid = {0}", Session["userid"]);

System.Data.OleDb.OleDbConnection myConnection = new System.Data.OleDb.OleDbConnection(connectionString);

System.Data.DataSet myDataSet = new System.Data.DataSet();

System.Data.OleDb.OleDbDataAdapter myOleDbDataAdapter = new System.Data.OleDb.OleDbDataAdapter(mySelectQuery, myConnection);

myOleDbDataAdapter.Fill(myDataSet);

DataGrid1.DataSource = myDataSet.Tables[0];

DataGrid1.DataBind();

myConnection.Close();

}

catch(Exception exp)

{

Label2.Text = "<br>Error: " + exp.Message + "<br>";

}

}Hi,

You may take a look at another section of the Web Matrix tutorial,
which is primarily focus on data access with SQL/MSDE Server:
http://asp.net/webmatrix/tour/section2/newconn.aspx

Colt|||hi again. thanks for the site, but my problem is the database is not storred locally. it's on the server. How should i change the syntax in the following code to suit MS Sql Server2000? Your help will be very much appreciated. Thank you.

string connectionString = @."Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\TempProjects\LibraryDatabase.mdb";
public void LoadRequestedBooks(){

try
{

string mySelectQuery = string.Format("SELECT books.* from books, requests where books.bid = requests.bid and requests.mid = {0}", Session["userid"]);
System.Data.OleDb.OleDbConnection myConnection = new System.Data.OleDb.OleDbConnection(connectionString);
System.Data.DataSet myDataSet = new System.Data.DataSet();
System.Data.OleDb.OleDbDataAdapter myOleDbDataAdapter = new System.Data.OleDb.OleDbDataAdapter(mySelectQuery, myConnection);

myOleDbDataAdapter.Fill(myDataSet);
DataGrid1.DataSource = myDataSet.Tables[0];
DataGrid1.DataBind();
myConnection.Close();

}
catch(Exception exp)
{
Label2.Text = "<br>Error: " + exp.Message + "<br>";

}

}|||Hi,

I see.. You can connect to a remote DB server by using its IP address,
E.g. "Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;"
FYI:http://www.connectionstrings.com

Colt

MS SQL Server Run time Error

Hi

We are using MS SQL Server 2000 as back end database for our application. It was working fine certainly we are getting Run time error while try to open this application through front end.

The Error number says that the SQL Transaction Log file is file. find belo the error

Thanks in advance.
S KaliyanI think I missed the error in the post. If this is still unresolved can you resend with the appropriate error?

Monday, March 26, 2012

MS SQL Server Database Connection Problems

Hi

I can connect successfully to the Microsoft SQL Server "Beauty" (get also nonzero for successfull connection). If i run the application (see code below). I get following Error Message "Illegal Objectname 'TestTabelle' ". I double checked the SQL statement and it should be correct. Even the spelling of TestTabelle is right. For testing purposes I've also included 5-6 data records in the tabel.

I try to connect via ODBC. I've created the database with MS SQL Enterprise Manager. Right Click -> Create New Database. I called it "Test" and created in "Test" a new Table, which is called "TestTabelle".

I found information how i can connect to a ms sql server "Beauty", i've also found how i can connect to a table, BUT where is the information which Database ?`in my case it should be Test.

how can i setup a default database... Cause in my application i can't access my Test Database.... See code below :(

Why is this code BOLD not working if i try to select a database ?

Thank You
Indian

{
CDBVariant value;
char sql_statement [2048] = "";

//CDatabase object "db" created to connect database
CDatabase db;
db.OpenEx(_T("DSN=Beauty;UID=Administrator"), CDatabase::noOdbcDialog);

//CRecordset object "rs" created to access and manipulate database records.
CRecordset rs(&db);
strcpy(sql_statement,_T("SELECT * FROM TestTabelle")); <- NOT WORKING... GETTING ERROR MESSAGE if i use this sql_statement " USE TEST; SELECT * FROM TestTabelle"
rs.Open(CRecordset::forwardOnly,sql_statement);

//Get quantity from Database
int n = rs.GetODBCFieldCount( );
while(!rs.IsEOF())
{
for( int i = 0; i < n; i++ )
{
rs.GetFieldValue("index",value);
m_Buy_List.InsertItem(i,LPCTSTR(value.m_pstring));

rs.GetFieldValue("product",value);
m_Buy_List.SetItemText(i,2,LPCTSTR(value.m_pstring ));

rs.GetFieldValue("price",value);
m_Buy_List.SetItemText(i,3,LPCTSTR(value.m_pstring ));
}
rs.MoveNext( );
}

//Close records access.
rs.Close( );

//Close database connection.
db.Close();

}double-click on Administrator (login) and select the default database from the drop-down box at the bottom of this dialog box.|||Better yet, use a more explicit query. Try:

strcpy(sql_statement,_T("SELECT * FROM Test.TestTabelle"));|||Better yet, use a more explicit query. Try:

strcpy(sql_statement,_T("SELECT * FROM Test.TestTabelle"));|||Sorry. Just replace the line in your code.

You could also skip ODBC, and specify the database in your connection string by using OLEDB.

Try this line in your code to connect to the server...

//CDatabase object "db" created to connect database
CDatabase db;
db.OpenEx(_T("Provider=SQLOLEDB.1;Data Source=Beauty;Initial Catalog=Test;UID=Administrator"), CDatabase::noOdbcDialog);|||i figured it out

thx

Monday, March 19, 2012

MS SQL server & Sybase interoperability

Dear all,
I have an application build on Sybase database, and we waant to install MS
SQL 2000 on the same machine for a different apppliction, is there any
interoperablity issues or will the sybase application be affected by any
means.
Please advice
Thanks in advanc,
SuadDon't think so but you can use VMWare to separate out the instance.
"s.isa" <s.isa@.lycos.com> wrote in message
news:OFm%23%23$aNEHA.2876@.TK2MSFTNGP09.phx.gbl...
> Dear all,
> I have an application build on Sybase database, and we waant to install MS
> SQL 2000 on the same machine for a different apppliction, is there any
> interoperablity issues or will the sybase application be affected by any
> means.
> Please advice
> Thanks in advanc,
> Suad
>|||s.isa schrieb:
> Dear all,
> I have an application build on Sybase database, and we waant to install MS
> SQL 2000 on the same machine for a different apppliction, is there any
> interoperablity issues or will the sybase application be affected by any
> means.
> Please advice
> Thanks in advanc,
> Suad
>
We are using Sybase ASA and SQL Server 2000 on the same machine.
Installing SQL Server 2000 AFTER installing Sybase (8.0) did not cause
any problems. Both are working fine.
But installing Sybase ASA 8.0 after installation of SQL Server 2000
caused problems with the ODBC dlls. We had to exchange the ODBC32.dll to
get the SQL Server work again. Obviously Sybase overwrites these dlls
but SQL Server needs them.
Olli

MS SQL server & Sybase interoperability

Dear all,
I have an application build on Sybase database, and we waant to install MS
SQL 2000 on the same machine for a different apppliction, is there any
interoperablity issues or will the sybase application be affected by any
means.
Please advice
Thanks in advanc,
SuadDon't think so but you can use VMWare to separate out the instance.
"s.isa" <s.isa@.lycos.com> wrote in message
news:OFm%23%23$aNEHA.2876@.TK2MSFTNGP09.phx.gbl...
> Dear all,
> I have an application build on Sybase database, and we waant to install MS
> SQL 2000 on the same machine for a different apppliction, is there any
> interoperablity issues or will the sybase application be affected by any
> means.
> Please advice
> Thanks in advanc,
> Suad
>|||s.isa schrieb:

> Dear all,
> I have an application build on Sybase database, and we waant to install MS
> SQL 2000 on the same machine for a different apppliction, is there any
> interoperablity issues or will the sybase application be affected by any
> means.
> Please advice
> Thanks in advanc,
> Suad
>
We are using Sybase ASA and SQL Server 2000 on the same machine.
Installing SQL Server 2000 AFTER installing Sybase (8.0) did not cause
any problems. Both are working fine.
But installing Sybase ASA 8.0 after installation of SQL Server 2000
caused problems with the ODBC dlls. We had to exchange the ODBC32.dll to
get the SQL Server work again. Obviously Sybase overwrites these dlls
but SQL Server needs them.
Olli

MS SQL server & Sybase interoperability

Dear all,
I have an application build on Sybase database, and we waant to install MS
SQL 2000 on the same machine for a different apppliction, is there any
interoperablity issues or will the sybase application be affected by any
means.
Please advice
Thanks in advanc,
Suad
Don't think so but you can use VMWare to separate out the instance.
"s.isa" <s.isa@.lycos.com> wrote in message
news:OFm%23%23$aNEHA.2876@.TK2MSFTNGP09.phx.gbl...
> Dear all,
> I have an application build on Sybase database, and we waant to install MS
> SQL 2000 on the same machine for a different apppliction, is there any
> interoperablity issues or will the sybase application be affected by any
> means.
> Please advice
> Thanks in advanc,
> Suad
>
|||s.isa schrieb:

> Dear all,
> I have an application build on Sybase database, and we waant to install MS
> SQL 2000 on the same machine for a different apppliction, is there any
> interoperablity issues or will the sybase application be affected by any
> means.
> Please advice
> Thanks in advanc,
> Suad
>
We are using Sybase ASA and SQL Server 2000 on the same machine.
Installing SQL Server 2000 AFTER installing Sybase (8.0) did not cause
any problems. Both are working fine.
But installing Sybase ASA 8.0 after installation of SQL Server 2000
caused problems with the ODBC dlls. We had to exchange the ODBC32.dll to
get the SQL Server work again. Obviously Sybase overwrites these dlls
but SQL Server needs them.
Olli

MS SQL Server - Newbie and have some problems

hi to all,

i'm new at MS SQL Server,
i developed an application with MS SQL Server Developer Edtn. and i want to try it with a real server and clients

i tried to install it to WinXP Pro and it asks a domain and a user account, is theere a way to create a domain with winxp pro, or working with only server windows (2003 server, 2000 server etc.). If it is working with only server, is there a tutorial at internet to create a domain and users at windows (i lost lots of time to setup Ms SQL Server)
pls i need a tutorial, or a way to install MS SQL Server...

i want to install ms sql server to vmware machine,
i wonder how to make configurations to access my server on real machine and other machines that is on the network of real machine
(i think i must user pat, but how to make configurations is a big problem, but the biggest is installing sql server)

it is urgent pls help, i dont want to lose more time because i lost enough...

MeCeXnoone helps ?

MeCeX

MS SQL Server

Hi ,

I have a lot of tables in a database on MS SQl Sever 7.0
if i want to find out if any tables are not being used by any application...
Like, A table is there and it is no longer is used, but how to find out if that is really not used by any front end applications or any BCP/BULKINSERT statements etc.
Is there any way ? will the profiles help?

Thanks for the answer

Subrahmanya BhatAs far as I know, there is no "Last Accessed" property of a table.

If you want to identify all un-used tables, you may consider to catch all tables with changing record counts in the first place. Make a UNION query of counts of all tables like

SELECT count(*), "Table 1" FROM [Table 1] UNION
SELECT count(*), "Table 2" FROM [Table 2] UNION
...

, make an initial count, and repeat this after a while.

All tables with stable record counts may be unused, or just static like domain tables. To distinguish between them, rename all those tables by adding something like XYZ to the name, and test all your applications. If you are lucky, you will get a list of "missing" tables, which are the static ones.

However, this is a difficult path with an unknown result. Maybe your applications do not report the missing table, but just disfunctioning. Or you don't have a complete list of all applications (including import or export functionality with some auxillary tables). So, my advise would be to let the database as it is.|||Use SQL Profiler to monitor the tables in question.
You will have to run it long enough to be confident that all applications have been active. I'd say at least a month in order to cover typical month-end processing.

blindman|||Thanks for the information provided(Both cunt(*) and profile)
hopefully i find out such tables in my database using these suggestions.

Yeah if there was a "Last Accessed" property that would have been great

i am just planning to use DoktirBlue's method to begin with
with a little different approach liek below,

DECLARE tables CURSOR FOR
SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME = 'user table' ( or some 'Tab%')

and open the cursor and from each table get the count(*) and insert in to a temp table

Just thinking in these lines , will see how far i will be successful.

Thanks for the help again
Sub rahmanya Bhat

Originally posted by DoktorBlue
As far as I know, there is no "Last Accessed" property of a table.

If you want to identify all un-used tables, you may consider to catch all tables with changing record counts in the first place. Make a UNION query of counts of all tables like

SELECT count(*), "Table 1" FROM [Table 1] UNION
SELECT count(*), "Table 2" FROM [Table 2] UNION
...

, make an initial count, and repeat this after a while.

All tables with stable record counts may be unused, or just static like domain tables. To distinguish between them, rename all those tables by adding something like XYZ to the name, and test all your applications. If you are lucky, you will get a list of "missing" tables, which are the static ones.

However, this is a difficult path with an unknown result. Maybe your applications do not report the missing table, but just disfunctioning. Or you don't have a complete list of all applications (including import or export functionality with some auxillary tables). So, my advise would be to let the database as it is.|||Its not necessary to use a cursor. For example, this query of the system tables could be used to insert data directly into a rowcount history table:

select sysobjects.name, sysindexes.rows
from sysobjects
inner join sysindexes on sysobjects.id = sysindexes.id and sysindexes.indid < 2
where sysobjects.type <> 'S'

You can expand on this to get a lot more functionality.

blindman|||bm, isn't your profiler option powerful enough? Anyway, thanks for your showing an easy way to get the row count. But, is this count always accurate. Isn't it saver to run a statistics update before like

dbcc updateusage
go

? Also, you should exclude this 'dtproperties' from your query.|||Yes, the Profiler option would be more thorough, but for a quick check against active tables (not lookup or reference tables!) the rowcount should be sufficient.

Update stats does need to be run in order to make 100% sure that the rowcount is accurate, though it should be accurate anyway. I do not use the SCHEMA objects much, since I normally query system tables directly, but I would guess that they reference the system tables too, and are therefor equally subject to rowcount errors if the statistics are out of date.|||along with dtproperties, we can also filter out everything else that comes with the server install by changing the bm's code to look like this:

select sysobjects.name, sysindexes.rows
from sysobjects
inner join sysindexes on sysobjects.id = sysindexes.id and sysindexes.indid < 2
where objectproperty(sysobjects.id, 'IsMSShipped') = 0

MS SQL performance from 10" to 3 minutes

Hello all !

I am runing from .NET application an SQL Query
it normally return the rows in 10 seconds
but time to time the application turn 2 or 3 minutes and nearlly crash (or crash)

with exactly the same datas in database

what can be the reasons ?

thank youcheck whether the session is getting expired or not if not kill it.|||other reason could be lock put on the table during the transaction which may keep the DB server busy.
Also check if some other query seeks a large resultset from DB.|||ppavan21 if I kill the session and a user is logged-in he will be thrown, I cannot do it , or do you see a solution ?

wash : is there a way to unlock ? ot what can I do ?

on 5 rows it takes normally less than one second, sometimes it can turn a few minutes and crash with exactly the sames datas

thank you|||the reasons for this can vary widely.

things to check...

1. open up the task manager to see if it is the sqlserver process consuming resources. Are you running anything on the machine? IIS? exchange?

2. run sp_who\sp_who2\sp_lock to look for blocking\resource intensive operations or excessive locking.

3. Open up the performance monitor and make sure you disk que length is under 3.

4. Have you looked at the execution plan of the query that varies in execution time? Are there any table\index scan as opposed to index seeks in the plan? If the query can return vastly varying amounts of data, have you tried adding WITH RECOMPILE to the query? Have you recompiled the stored procedure lately? Are the indexes that the query is using heavily fragmented?

That should keep you busy.|||RECOMPILE ? i didn't know it was even possible
how do yo do it ?|||recompiling is sometimes beneficial if there has been a large amount of data added to your database recently which can have the effect of making your execution plan out of date.

see sp_recompile in Books Online.|||Sean,

I believe you assume That this is a sproc

I got Money that it's not|||oh probably not. dude can probably use a little BOL reading anyways.

Monday, March 12, 2012

MS SQL hiding behind Access

Hi guys

We have a helpdesk application which is based on an MS SQL database, and which runs with a rather large and complicated C# based interface. We don't have the code for this, so we can't customise it. Long story short, what we want is to create an interface in Access (or similar) which accesses the same database as the helpdesk suite, and allows reading AND writing, and some rather complex operations (which SHOULD be fairly simple to do in SQL).

Unfortunately, I have been given this project, and I know about as much about Access and SQL as I do about Ghengis Khan's fashion sense.

I will follow with more information as required, but I'm going to need a lot of help with this one. First things first, is Access the way to do this? Is it going to be easier to create a new Access DB and synchronise it with the SQL, instead of both applications using the same database?

The only way I can get Access to interrogate the SQL database is to create a Data Access Page - is this the correct starting point? The only problem is that this seems to only offer HTML, and is far from being a friendly interface, at least not to me.

I know that I currently have no grounding in physics and I'm trying to build a space station, but any advice that you could give me would be much appreciated.

Thanks guys!Access is the tool if you want it done fast and you do not have a firm grounding in another programming language.

Read about Access Data Projects (.adp files).|||Hi

Agree with Thrasy thingy me bob.
You don't need to use adp but it is rather well suited for use against a SQL Server BE.
You don't need to use DAP unless you specifically want an html based interface. If you do use this you will find the forum resources at your disposal drastically reduced because they don't get used that much.

You do not want to create an Access db and synchronise with SQL Server. Either link to the server (simple) or use ADO code to create a disconnected interface (a bit complex if you are new to this but a more ideal set up).

Is this a third party product? If so then check your agreement with the supplier. You might be invalidating your agreement and they may, for example, be able to withdraw support. Also be aware that there may be some (a lot??) of business knowledge embedded in the C# FE which you will have to infer. Similarly, there are probably sprocs that enforce some validations etc for inserts and updates - you could probably do with looking at these and using them where you can.

I must say - I would be nervous about writing my own FE to an application I haven't built\ don't have access to the source code. Can you not use the C# app for inputting and limit yourself to procuding a bespoke reporting front end instead?

There is an Access forum for questions of a more access orientated nature. I think you need to prepare yourself for a very steep learning curve if you aren't familiar with Mr Kahn's clothing predelictions.|||Steep learning curves are generally the way things are done around here. My biggest problem is having to forget everything I know about Lotus Notes in order to start learning about REAL databases!!

The data access project seemed to be what I wanted - I now have an SQL database which is apparently pretending to be an Access database, so assumedly I can just forget all about SQL and work with Access forms and VB code as though this was an Access DB, is that correct?

Also, just to stop me destroying the world, is it easy to create a copy of the MS SQL DB and work with that instead, just until I know what I'm doing. If I break this database there are several peole that will be after my blood!!

In case you're wondering, the reason for this project is that the C# interface provided is fine for support staff, and works well, but unfortunately has all the customizability of a brick, and doesn't support the sales/invoicing staff very well. So we want to keep the C# interface for the support staff, but make a different one for the sales staff. Is there going to be any problem with both parties accessing the data at the same time? It is VERY unlikely that we will ever overlap on editing entities, due to the (quite) seperate nature of the two sides to the system.|||The data access project seemed to be what I wanted - I now have an SQL database which is apparently pretending to be an Access database, so assumedly I can just forget all about SQL and work with Access forms and VB code as though this was an Access DB, is that correct?Nope. I'm not too familiar with adpsbut they are really more the other way around as I understand them - they bring much of the SQL Server functionality into Access - Access becomes a sort of rudimentary SQL Server tool (as well as a UI designer).

Also, just to stop me destroying the world, is it easy to create a copy of the MS SQL DB and work with that instead, just until I know what I'm doing. If I break this database there are several peole that will be after my blood!! Oh dear lord yes do that. At the minimum have a test database where you fine tune any of your work before using it on the production database. I would suggest that using this test database indicates that you have some idea of what you are doing rather than something to dump once you can write a few lines of code. I'm not sure if it is possible to destroy the world with SQL Server though that might be one of the new features in 2005.
Gist is - you want to backup your database and then restore it (ideally on a different, dedicated server). I am afraid I use enterprise manager to create and restore backups - a bad habit I will probably be chastised for. Check out BACKUP in BoL and Google to avoid learning bad habits.

MS SQL Express Advanced vs MS SQL full version vs MySQL

I'm planning to transport a desktop application to the web. A spin-off of
this application has already been put on the web by another programmer. He
used ColdFusion with MS SQL, Access, VC, and Java. It is faster than the
desktop application (written in VFP).
1. Can I get the same results using MS SQL Express Advanced and Access for
the internet version if used with .net?
2. Are the select statements limited in power, accuracy, size, etc. for MS
SQL Express Advanced when compared to SQL?
3. If Access will perform poorly, can VFP be used instead with .net? I
already know it can't be used with ColdFusion. 4. If MS Express Advanced
will not sufficiently replace SQL, will MySQL do the job better?

Thanks(wipeout64@.hotmail.com) writes:

Quote:

Originally Posted by

I'm planning to transport a desktop application to the web. A spin-off of
this application has already been put on the web by another programmer. He
used ColdFusion with MS SQL, Access, VC, and Java. It is faster than the
desktop application (written in VFP).
1. Can I get the same results using MS SQL Express Advanced and Access for
the internet version if used with .net?


Probably. But you could also get worse performance. It's difficult to
answer, because it depends on how you do the implementation. DB engines
are extremely powerful tools to make things to really slow if you don't
do things right.

Quote:

Originally Posted by

2. Are the select statements limited in power, accuracy, size, etc. for MS
SQL Express Advanced when compared to SQL?


Compared to what? If you mean if there are limitations in SQL Express
vs. the paid-for editions of SQL Server, the answer is, yes, there are
some limitations, but it is not all likely that you will suffer from
them.

First of all, the language is the same, so the SELECT statements that
runs in Enterprise Edition runs in SQL Express too. And there is no
difference in accuracy, and hardly in size of the statements either.
There is a difference in database size: with SQL Express, you cannot
have databases over 4GB in size.

The difference in performance lies in some special optimizer tweaks, like
considering using indexed view. But for the major bulk of queries,
query plans and performance are the same.

Quote:

Originally Posted by

3. If Access will perform poorly, can VFP be used instead with .net? I
already know it can't be used with ColdFusion. 4. If MS Express Advanced
will not sufficiently replace SQL, will MySQL do the job better?


Those questions are completely beyond the scope for this newsgroup,
and also beyond my knowledge.

--
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|||Your answers are very helpful! Now a rather niave question: If I pay for a
site to host my application, does that mean I don't have to purchase the
server software and I only need the developer software?

"Erland Sommarskog" <esquel@.sommarskog.sewrote in message
news:Xns997668DB16155Yazorman@.127.0.0.1...

Quote:

Originally Posted by

(wipeout64@.hotmail.com) writes:

Quote:

Originally Posted by

>I'm planning to transport a desktop application to the web. A spin-off of
>this application has already been put on the web by another programmer.
>He
>used ColdFusion with MS SQL, Access, VC, and Java. It is faster than the
>desktop application (written in VFP).
>1. Can I get the same results using MS SQL Express Advanced and Access
>for
>the internet version if used with .net?


>
Probably. But you could also get worse performance. It's difficult to
answer, because it depends on how you do the implementation. DB engines
are extremely powerful tools to make things to really slow if you don't
do things right.
>

Quote:

Originally Posted by

>2. Are the select statements limited in power, accuracy, size, etc. for
>MS
>SQL Express Advanced when compared to SQL?


>
Compared to what? If you mean if there are limitations in SQL Express
vs. the paid-for editions of SQL Server, the answer is, yes, there are
some limitations, but it is not all likely that you will suffer from
them.
>
First of all, the language is the same, so the SELECT statements that
runs in Enterprise Edition runs in SQL Express too. And there is no
difference in accuracy, and hardly in size of the statements either.
There is a difference in database size: with SQL Express, you cannot
have databases over 4GB in size.
>
The difference in performance lies in some special optimizer tweaks, like
considering using indexed view. But for the major bulk of queries,
query plans and performance are the same.
>

Quote:

Originally Posted by

>3. If Access will perform poorly, can VFP be used instead with .net? I
>already know it can't be used with ColdFusion. 4. If MS Express Advanced
>will not sufficiently replace SQL, will MySQL do the job better?


>
Those questions are completely beyond the scope for this newsgroup,
and also beyond my knowledge.
>
>
--
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

|||(wipeout64@.hotmail.com) writes:

Quote:

Originally Posted by

Your answers are very helpful! Now a rather niave question: If I pay for a
site to host my application, does that mean I don't have to purchase the
server software and I only need the developer software?


Right. If you only use MS SQL Server to develop your application, but rely
on a web host to run it for you, you can get by with Developer Edition,
which is 50 USD. And, of course, if you are content with the features of
SQL Express, you can let it suffice with that for an even lower bargain.

--
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

Friday, March 9, 2012

MS SQL and MSDE

I need to develope a c++ application that connects to a MS SQL 2000 server,
soon to be 2005, via OBDC. I want to develope the app on my workstation
which rarely connects to the server. Can I use MSDE as a development engine
and all the ODBC will be the same for the SQL server?
TomHi Tom.
I think yes, of course. I use the same driver for MSDE and SqlExpress. The
only difference is the location of the d.b. and of the server.
"Tom Parke" <TomParke@.discussions.microsoft.com> ha scritto nel messaggio
news:F46F359B-7703-4B97-9731-A2E952D17501@.microsoft.com...
>I need to develope a c++ application that connects to a MS SQL 2000 server,
> soon to be 2005, via OBDC. I want to develope the app on my workstation
> which rarely connects to the server. Can I use MSDE as a development
> engine
> and all the ODBC will be the same for the SQL server?
> Tom

Wednesday, March 7, 2012

MS SQL 2005: Performance – normal CPU vs CPU DUO/4 CORE

Hello,Is performance of web application (ASP.NET + SQL Server 2005 Wrg edition + Win Server 2003 Web edition) running on server with one core duo/4 CPU generally comparable to the performance of the same application running on the same server with 2/4 physical CPU's?Thank you for your ideas!Jan

Hi Jan,

Of cource on a multiple core CPU, the ASP.NET and SQL Server performance will be better than a single core CPU.

Because the IIS and SQL Server will optimize the performance according to the core units. In this case, better performance is gain.

ms sql 2005 developer edition bugs

Hi everyone ,
I am doing application testing using MSSQL 2005 Developer Edition. So ,
I would like to know if there is any site or forums that discuss the
errors in Developer edition that has been fixed so that i can list it
down.
Thanks.This forum is appropriate to discuss SQL Server 2005 issues. You can also
search/submit bugs and enhancement requests at the Product Feedback center
at http://lab.msdn.microsoft.com/productfeedback/.
It's often best to discuss first in case someone has additional input.
Hope this helps.
Dan Guzman
SQL Server MVP
"rynox" <marvin.koh@.orisoft.com.my> wrote in message
news:1147136964.707525.9580@.v46g2000cwv.googlegroups.com...
> Hi everyone ,
> I am doing application testing using MSSQL 2005 Developer Edition. So ,
> I would like to know if there is any site or forums that discuss the
> errors in Developer edition that has been fixed so that i can list it
> down.
> Thanks.
>|||Check the following site:
http://lab.msdn.microsoft.com/ProductFeedback/
-Sue
On 8 May 2006 18:09:24 -0700, "rynox"
<marvin.koh@.orisoft.com.my> wrote:

>Hi everyone ,
>I am doing application testing using MSSQL 2005 Developer Edition. So ,
>I would like to know if there is any site or forums that discuss the
>errors in Developer edition that has been fixed so that i can list it
>down.
>Thanks.

ms sql 2005 developer edition bugs

Hi everyone ,
I am doing application testing using MSSQL 2005 Developer Edition. So ,
I would like to know if there is any site or forums that discuss the
errors in Developer edition that has been fixed so that i can list it
down.
Thanks.This forum is appropriate to discuss SQL Server 2005 issues. You can also
search/submit bugs and enhancement requests at the Product Feedback center
at http://lab.msdn.microsoft.com/productfeedback/.
It's often best to discuss first in case someone has additional input.
--
Hope this helps.
Dan Guzman
SQL Server MVP
"rynox" <marvin.koh@.orisoft.com.my> wrote in message
news:1147136964.707525.9580@.v46g2000cwv.googlegroups.com...
> Hi everyone ,
> I am doing application testing using MSSQL 2005 Developer Edition. So ,
> I would like to know if there is any site or forums that discuss the
> errors in Developer edition that has been fixed so that i can list it
> down.
> Thanks.
>|||Check the following site:
http://lab.msdn.microsoft.com/ProductFeedback/
-Sue
On 8 May 2006 18:09:24 -0700, "rynox"
<marvin.koh@.orisoft.com.my> wrote:
>Hi everyone ,
>I am doing application testing using MSSQL 2005 Developer Edition. So ,
>I would like to know if there is any site or forums that discuss the
>errors in Developer edition that has been fixed so that i can list it
>down.
>Thanks.

Monday, February 20, 2012

MS SQL 2000 and raid controller

I heard that is said that MSQ SQL 2000 doesn't work correctly with raid (for example raid 5)
I have my application in 2 companies. The first one with not a raid controller (even though the computer has a raid controller) executes a backup when no users are online in more than 8 minuter and the file of the database backup is 3,5 GB. The memory of the computer is 2GB.
In the other company when more than 20 users work in the database with a raid controller the backup is occured in 2,6 minutes and the database backup file is more than 6 GB. The memory of this computer is 4 GB.
What is your opinion?
Is this rumor true?
Do you suggest I should apply raid 5 to the first server?
Regards,
ManolisI am not sure what the problem is you think you have identified. Do you want to explain a little more.

If the rumor is true, which I extremely doubt, thousands and thousands of organizations are in trouble. I think you have been talking to sme stuffed shirt wind bag.|||I've used many versions of Microsoft SQL (even before Microsoft bought it). I've used every version since 4.2 (1994) on RAID controllers of various kinds. The only problems I've ever had with RAID controllers have been outright hardware failures, no RAID / MSSQL software related issues.

I would be astonished if there is any problem using SQL Server (any version) with a RAID controller.

-PatP|||I can add one more to Pat's list, but it is narrowly defined. If your raid controller buffers the writes, on a system with heavy i/o, you might get a stale read error when SQL Server reads from the disk again after a write was issued, but held in buffer.

The resolution to that is to decrease the size of the write buffer.

Besides ... without utilizing RAID configurations, have you seen the size of a
petabyte disk drive? :rolleyes:

MS SQL 05 auto increment

Hello,

Firstly Hello to everyone I'm new the forum and fairly new to .net

I'm working on web datbase application using visual studios 05 and MS SQL05 I've used 2003 (briefly) before but 2005 is very new to me.

To my problem I download the GUI interface from microsoft so I can now setup a local database and do my own testing.

I have created the table and fields with in it however on a particular table i have made a primary Key and left it as an INT but I would like to set it as auto increment ! I dont know how to select that option as i was used to mysql way of doing things or does this have to be done as a stored procedure ?

Any assistance much appreciated.

in the management studio you can right click on the table name and click on "modify table" then in the right pane select the column you want to set autoidenty on to and in the bottom pane check the Identity property.

MS SQL (online) - Access(offline) system

Hi everyone,

I 've built an application which runs on a ms sql Database, now my employer want a offline database system as well. I've already implemented Access, but having difficulties with something.

I was creating a form to transfer all data from the sql database to the access database, when I experienced a problem in my first (access) data accessor. Sql gave a syntax error, when I copied the sql string with some test data to Access it obviously gave the same error but afterwards focussed on the DataTime field of my sql string. So I'm assuming the problem lies with that.

Is there a difference between the DateTime in SQL Server and Access? If so is there a way to convert from one to the other?

My SQL test string:

Code Snippet

INSERT INTO dbo_tblPerson(ID,Name,Surname,Email,Website,Address,Country,Comments,DateTime,Telephone,Mobile,Active)
VALUES (1,To,Vdb,info@.,www.,str,BE,Test,Date.Now(),0474,0474,0)

My Data Accessor:

Code Snippet

public static int addPerson(clsPerson oPerson)

{

try

{

string sSQL = "INSERT INTO dbo_tblPerson(ID,Name,Surname,Email,Website,Address,Country,Comments,DateTime,Telephone,Mobile,Active) ";

sSQL += "VALUES (@.ID,@.Name,@.Surname,@.Email,@.Website,@.Address,@.Country,@.Comments,@.DateTime,@.Telephone,@.Mobile,@.Active)";

int i = 0;

int iHigh = getHighestID();

clsDatabase.ExecuteSQL(

sSQL,

new OleDbParameter("@.Name", oPerson.Name),

createNullableParameter("@.Surname", oPerson.Surname),

createNullableParameter("@.Email", oPerson.Email),

createNullableParameter("@.Website", oPerson.Website),

createNullableParameter("@.Address", oPerson.Address),

createNullableParameter("@.Country", oPerson.Country),

createNullableParameter("@.Comments", oPerson.Comments),

createNullableParameter("@.DateTime", oPerson.DateTime),

createNullableParameter("@.Telephone", oPerson.Telephone),

createNullableParameter("@.Mobile", oPerson.Mobile),

new OleDbParameter("@.Active", i)

);

return iHigh;

}

catch (Exception ex)

{

return 0;

//System.Reflection.MethodBase oExceptie = System.Reflection.MethodInfo.GetCurrentMethod();

//clsLogging.logException(1, "addInput: " + ex.Message, oExceptie);

}

}

private static int getHighestID()

{

int iID;

try

{

string sSQL = "SELECT MAX(ID) from dbo_tblPerson";

try

{

iID = Convert.ToInt32(clsDatabase.ExecuteScalar(sSQL, new OleDbParameter[0]));

}

catch (Exception ex)

{

iID = 0;

}

iID += 1;

}

catch (Exception ex)

{

throw ex;

}

return iID;

}

private static OleDbParameter createNullableParameter(string sName, object oProperty)

{

OleDbParameter oPar = new OleDbParameter() ;

if (oProperty == null)

{

oProperty = System.Convert.DBNull;

}

oPar.Value = oProperty;

oPar.ParameterName = sName;

return oPar;

}

Tobias

Apparently the databasefield name 'DateTime' caused problems, so I changed it to 'dt'.
Getting a whole new problem, being "Data type mismatch in criteria expression." Can it still be the datetime value thing?

Code Snippet

public static int addPerson(clsPerson oPerson)

{

try

{

string sSQL = "INSERT INTO dbo_tblPerson(Name,Surname,Email,Website,Address,Country,Comments,dt,Telephone,Mobile,Active) ";

sSQL += "VALUES (@.Name,@.Surname,@.Email,@.Website,@.Address,@.Country,@.Comments,@.dt,@.Telephone,@.Mobile,@.Active)";

int i = 0;

int iHigh = getHighestID();

clsDatabase.ExecuteSQL(

sSQL,

new OleDbParameter("@.Name", oPerson.Name),

createNullableParameter("@.Surname", oPerson.Surname),

createNullableParameter("@.Email", oPerson.Email),

createNullableParameter("@.Website", oPerson.Website),

createNullableParameter("@.Address", oPerson.Address),

createNullableParameter("@.Country", oPerson.Country),

createNullableParameter("@.Comments", oPerson.Comments),

createNullableParameter("@.dt", oPerson.DateTime),

createNullableParameter("@.Telephone", oPerson.Telephone),

createNullableParameter("@.Mobile", oPerson.Mobile),

new OleDbParameter("@.Active", i)

);

return iHigh;

}

catch (Exception ex)

{

return 0;

//System.Reflection.MethodBase oExceptie = System.Reflection.MethodInfo.GetCurrentMethod();

//clsLogging.logException(1, "addInput: " + ex.Message, oExceptie);

}

}

|||

This helped

oPerson.DateTime.ToString("MM-dd-yyyy hh:mmTongue Tieds")

|||

I'm not sure what the definition is for "offline" system; but what about using SQL Server Express instead of Access?

|||

Then every client still has to run a server on their system .. don't they?

*edit: Anyway I 've succesfully implemented the access system already, just stuck now with how use it once distributed with Click Once. Don't know how to setup my Connectionstring for the local db.

|||

You mean an server operating system?

No, Express runs on XP(SP2) and Win2000 Pro (SP4)

|||But does the express edition act like a file or is it a running service? Because I can't ask for each client to install express on their system.|||

It runs as a service.

Sorry.

|||

That's what I thought, no worries.. glad I used the right way Smile

You don't know a solution for my connectionstring problem? Or how to copy a file with Clickonce to c:\\DB\ ..?

|||

Not much help to you there...haven't worked with Access in a number of years.

|||

It doesn't really have to do with access.. I just need to put the access mdb file to a location I know on the users system using the ClickOnce Deployment, putting it between the application files works but then the location of the file would be something like

Code Snippet

C:\Documents and Settings\Tobias\Local Settings\Apps\2.0\2LQGDKTN.0KN\J3WQXOLX.BGB\netw...exe_75bfb84bc0f378ec_0000.0009_en-gb_fc79dfd558e684a4

So basically not usuable in a connectionstring for a database.