472,958 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

Some issues regarding using MS SQL

Ted
I managed to get it installed OK, along side MS Visual Studio 2005
(with which I received it). During the install, I made sure I
installed everything.

I have developed a number of applications using MySQL v 5 and
PostgreSQL, but I have not worked with MS SQL. Playing with it after
installing it, and running through several tutorials, I generally like
what I see, but there are a few issues (so far - I am sure others will
crop up as time progresses).

The first issue is that I have yet to connect to the server from a
remote client. I have a couple machines I use for testing distributed
applications, in my own, really tiny LAN. With clients on one machine,
and the server on another, how can get the client apps on the client
machine to talk to the server on my test server machine. Related to
this, my client's MIS has acquired a dedicated machine, along with MS
SQL Server, on which at least some of our applications will be
deployed. Can this instance of MS SQL Server be managed from another
machine (likely the notebook I use for development) without me being in
the same room as the new server? The client runs a Windows only
network, so I'll ignore connectivity issues from Linux clients. I
assume the specific question of managing an instance of a server on one
machine from another machine on the same network is just a special case
of getting any of the client applications to talk to the server.
Right?

The second issue involves a question I was asked to investigate is that
of porting a MySQL database to MS SQL. I found one article on this,
and none of the methods suggested seems to be practical. My
inclination is to leave it and connect the MS SQL modules of the larger
application to MySQL modules in the client application. The impression
I have is that there are too many differences between the MySQL dialect
and the MS SQL dialect. For example, MS SQL did not like either of the
following options for creating a table:

CREATE TABLE IF NOT EXISTS my_table (...)

DROP TABLE IF EXISTS my_table;
CREATE TABLE my_table (...)

In both cases, it seems that the "IF NOT EXISTS" and "IF EXISTS" is
what MS SQL is complaining about. It stops complaining if the
statement is made unconditional. When I ask MS SQL to analyze my SQL
scripts (hundreds of SQL statements), it seems there are countless
things it doesn't like. I shudder to think about how it will respond
to the more meaty SQL statements in some of my other scripts, including
stored procedures, triggers, subqueries, &c.

Last, for now, a key part of our application so far involves running
perl scripts that ultimately submit SQL scripts to the RDBMS back end.
We get a data feed that we automatically load into the database, and
then immediately analyse.

We construct, and use Perl to construct and then execute (using
qz/$cmdline/) use a statement like:

mysql -u $uid -p $pwd --database=$the_db < my_sql_script.sql

I did find the MS SQL equivalent of 'mysql', but I am not sure how this
will change if my MS SQL client is on one machine and the server is on
another in our client's LAN. And in the script is a sequence of LOAD
INFILE statements. I expect this will be a big problem given how
different MySQL and PostgreSQL are in how they load data from a file.

There are business reasons for using MS SQL for some parts of the suite
of applications we're working on, but I have my doubts about the
viability of porting our existing code to MS SQL. Is there a good
resource that compares the SQL dialects used by MySQL and MS SQL, in
case my first impression is too negative?

Any guidance, or information, or pointers to useful information would
be appreciated. Yes, I have been pouring over the documentation I have
with MS Visual Studio andMS SQL Server, but there is so much it is like
finding a needle in a hay stack.

Thanks

Ted

Jul 28 '06 #1
1 1851
Stu
Wow; a lot of meat here. Let me try to address some of the more
obvious ones.
Ted wrote:
I managed to get it installed OK, along side MS Visual Studio 2005
(with which I received it). During the install, I made sure I
installed everything.

I have developed a number of applications using MySQL v 5 and
PostgreSQL, but I have not worked with MS SQL. Playing with it after
installing it, and running through several tutorials, I generally like
what I see, but there are a few issues (so far - I am sure others will
crop up as time progresses).

The first issue is that I have yet to connect to the server from a
remote client. I have a couple machines I use for testing distributed
applications, in my own, really tiny LAN. With clients on one machine,
and the server on another, how can get the client apps on the client
machine to talk to the server on my test server machine. Related to
this, my client's MIS has acquired a dedicated machine, along with MS
SQL Server, on which at least some of our applications will be
deployed. Can this instance of MS SQL Server be managed from another
machine (likely the notebook I use for development) without me being in
the same room as the new server? The client runs a Windows only
network, so I'll ignore connectivity issues from Linux clients. I
assume the specific question of managing an instance of a server on one
machine from another machine on the same network is just a special case
of getting any of the client applications to talk to the server.
Right?
By default, SQL Server 2005 Express, Evaluation, and Developer editions
allow local client connections only. You can change this setting by
using the SQL Server 2005 Surface Area Configuration tool. Once you
launch the tool, look under Database Engine and select Remote
Connections.
The second issue involves a question I was asked to investigate is that
of porting a MySQL database to MS SQL. I found one article on this,
and none of the methods suggested seems to be practical. My
inclination is to leave it and connect the MS SQL modules of the larger
application to MySQL modules in the client application. The impression
I have is that there are too many differences between the MySQL dialect
and the MS SQL dialect. For example, MS SQL did not like either of the
following options for creating a table:

CREATE TABLE IF NOT EXISTS my_table (...)

DROP TABLE IF EXISTS my_table;
CREATE TABLE my_table (...)

In both cases, it seems that the "IF NOT EXISTS" and "IF EXISTS" is
what MS SQL is complaining about. It stops complaining if the
statement is made unconditional. When I ask MS SQL to analyze my SQL
scripts (hundreds of SQL statements), it seems there are countless
things it doesn't like. I shudder to think about how it will respond
to the more meaty SQL statements in some of my other scripts, including
stored procedures, triggers, subqueries, &c.
You've been speaking Canadian French and just went to New Orleans :)
Both MySQL and SQL Server support ANSI SQL, but both also have their
own proprietary extensions which perform better or are legacy
components on their individual platforms. Unless your database is 100%
ANSI compliant, then you're going to have trouble porting it from one
platform to the next.
>
Last, for now, a key part of our application so far involves running
perl scripts that ultimately submit SQL scripts to the RDBMS back end.
We get a data feed that we automatically load into the database, and
then immediately analyse.

We construct, and use Perl to construct and then execute (using
qz/$cmdline/) use a statement like:

mysql -u $uid -p $pwd --database=$the_db < my_sql_script.sql

I did find the MS SQL equivalent of 'mysql', but I am not sure how this
will change if my MS SQL client is on one machine and the server is on
another in our client's LAN. And in the script is a sequence of LOAD
INFILE statements. I expect this will be a big problem given how
different MySQL and PostgreSQL are in how they load data from a file.

There are business reasons for using MS SQL for some parts of the suite
of applications we're working on, but I have my doubts about the
viability of porting our existing code to MS SQL. Is there a good
resource that compares the SQL dialects used by MySQL and MS SQL, in
case my first impression is too negative?
Not that I'm aware of, but there are several resources on the
differences between MySQL and ANSI SQL; if you can get your database to
be ANSI-compliant, then it should run on most database platforms.
>
Any guidance, or information, or pointers to useful information would
be appreciated. Yes, I have been pouring over the documentation I have
with MS Visual Studio andMS SQL Server, but there is so much it is like
finding a needle in a hay stack.

Thanks

Ted
HTH,
Stu

Jul 28 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
7
by: Shelly | last post by:
I am facing issues in Toolbar in VB .NET: 1) There is nothing like disabled image list in toolbar of VB .NET. If I disable button on toolbar then I am not able to show disabled image even by...
0
by: David Kanter | last post by:
Hello, I have a question regarding SendKeys(). I am working on a small VB .Net script that manipulates/automates programs through SendKeys(). Unfortunately, I have run into several problems. ...
1
by: Norman Fritag | last post by:
Hi there I have avoided to use active x controls because I thought they are causing more problems then they are doing any good. I a new application I would want to use the tree and list view...
193
by: Michael B. | last post by:
I was just thinking about this, specifically wondering if there's any features that the C specification currently lacks, and which may be included in some future standardization. Of course, I...
6
by: Peter Hans | last post by:
Hi, I developed two applications to test a flush() method in my application, but I am having some problems when running it at high baud rates (115200) I connected two computers using a...
7
by: Rich Denis | last post by:
Hello, I have been trying to solve a mysterious memory leak problem and was hoping that you could help me out on my stuck point. First a bit of background. We have two app servers in an app...
11
by: Peter Rietkerk | last post by:
I have a few questions regarding the referencing of web services using this toolkit. I am currently trying to reference a specific URL to WSDL that was generated on a local server. Does anyone know...
35
by: Justin Weinberg | last post by:
My thoughts on this.... http://msdn.microsoft.com/vbasic/Future/default.aspx?pull=/library/en-us/dnvs05/html/vb9overview.asp My thoughts: 1. Regarding Implicit types, I don't use type...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.