473,398 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 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 1875
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.