473,722 Members | 2,459 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compatibilité SQL Server 7 - SQL Server 2000 ?

Bonjour,

J'ai developpé une application sous VB.Net qui utilise un datagrid .

Ce datagrid utilise un dataTable d'un DataSet comme datasource. ce dataset
est rempli de la sorte :

'Debut du code

requete = "SELECT ln_nomencdtl_ar ticleentree as 'Article', CASE WHEN
e.en_item_key IS NULL THEN po_nstk_desc ELSE en_item_desc END as
'Désignation', CASE WHEN e.en_item_key IS NULL THEN 'UN' ELSE uom_key END as
'Unité', CASE WHEN en_type_key IN(2, 10) THEN CASE " & poidsun & " WHEN 0
THEN ln_nomencdtl_qu antite ELSE ln_nomencdtl_qu antite * " & poidsun & " END
ELSE CASE " & poidsun & " WHEN 0 THEN ln_nomencdtl_qu antite ELSE
ln_nomencdtl_qu antite * " & poidsun & " END END as 'Qté Unités', CASE WHEN
en_type_key IN(2, 10) THEN (ln_nomencdtl_q uantite * 100) ELSE 0 END as
'Qté', en_type_key FROM ln_nomencdtl_tb l d LEFT JOIN en_item_tbl e ON
d.ln_nomencdtl_ articleentree = e.en_item_key LEFT JOIN po_nstk_tbl ns ON
d.ln_nomencdtl_ articleentree = ns.po_nstk_key AND d.gl_cmp_key =
ns.gl_cmp_key WHERE d.gl_cmp_key='" & pGL_CMP_KEY & "' AND sf_plant_key='" &
pUsine & "' AND ln_nomenchdr_ar ticlesortie='" & tArticlePF.Text & "' AND
ln_nomenchdr_ve r='" & NumVer & "' AND ln_machine_idma chine = " & idmachine

da = New SqlDataAdapter( New SqlCommand(requ ete, sqlcn))

ds.Tables.Clear ()

da.Fill(ds)

'Fin du code

Avec les déclarations qui vont bien...

Tout ce code fonctionne à merveille sur un Serveur SQL Server 7 sous Windows
NT4.

Par contre, lorsque je lance mon appli en me connectant à un Serveur Windows
Server 2003 avec SQL Server 2000, rien ne va plus: ca fonctionne -presque-
bien, sauf qu'il y a un moment, ou ma requete me remplit mon dataTable avec
0 (zero) ligne, alors qu'en executant ma requete dans un analyseur de
requete, elle me renvoie 7 lignes.

La base de données installée sur le serveur SQL Server 2000 est la copie
conforme de la base installée sur le SQL Server 7, et j'ai essayé les
différents niveaux de compatibilité disponibles (de 6.5 à 8.0), sans
resultat...

Quelqu'un a-t-il déjà vécu ce probleme? et si oui, avez vous une solution ?

Merci.
Nov 20 '05 #1
4 1585
Cor
Hello Ludocic,

This is an International, by agreement we use only the English language in
this newsgroup.

I do not see an error in the VB.language code, I would try it with a more
simpler Select if it has to do with the SQL7 - SQL2000 or NT - Server 2003

But you can better ask this question in English in the international
newsgroup

Microsoft.publi c.dotnet.framew ork.adonet

I hope this helps?

Cor

C'est un international, par accord que nous employons seulement l'anglais
dans ce newsgroup.

Je ne vois pas une erreur dans le code VB.language, je l'essayerais avec un
plus simple Select s'il doit faire avec le SQL7 - SQL2000 ou le NT - le
Server2003

Mais vous pouvez mieux poser cette question en anglais dans le newsgroup
international

Microsoft.publi c.dotnet.framew ork.adonet

J'espère que ceci aide?

Cor
Bonjour,

J'ai developpé une application sous VB.Net qui utilise un datagrid .

Ce datagrid utilise un dataTable d'un DataSet comme datasource. ce dataset
est rempli de la sorte :

'Debut du code

requete = "SELECT ln_nomencdtl_ar ticleentree as 'Article', CASE WHEN
e.en_item_key IS NULL THEN po_nstk_desc ELSE en_item_desc END as
'Désignation', CASE WHEN e.en_item_key IS NULL THEN 'UN' ELSE uom_key END as 'Unité', CASE WHEN en_type_key IN(2, 10) THEN CASE " & poidsun & " WHEN 0
THEN ln_nomencdtl_qu antite ELSE ln_nomencdtl_qu antite * " & poidsun & " END ELSE CASE " & poidsun & " WHEN 0 THEN ln_nomencdtl_qu antite ELSE
ln_nomencdtl_qu antite * " & poidsun & " END END as 'Qté Unités', CASE WHEN
en_type_key IN(2, 10) THEN (ln_nomencdtl_q uantite * 100) ELSE 0 END as
'Qté', en_type_key FROM ln_nomencdtl_tb l d LEFT JOIN en_item_tbl e ON
d.ln_nomencdtl_ articleentree = e.en_item_key LEFT JOIN po_nstk_tbl ns ON
d.ln_nomencdtl_ articleentree = ns.po_nstk_key AND d.gl_cmp_key =
ns.gl_cmp_key WHERE d.gl_cmp_key='" & pGL_CMP_KEY & "' AND sf_plant_key='" & pUsine & "' AND ln_nomenchdr_ar ticlesortie='" & tArticlePF.Text & "' AND
ln_nomenchdr_ve r='" & NumVer & "' AND ln_machine_idma chine = " & idmachine

da = New SqlDataAdapter( New SqlCommand(requ ete, sqlcn))

ds.Tables.Clear ()

da.Fill(ds)

'Fin du code

Avec les déclarations qui vont bien...

Tout ce code fonctionne à merveille sur un Serveur SQL Server 7 sous Windows NT4.

Par contre, lorsque je lance mon appli en me connectant à un Serveur Windows Server 2003 avec SQL Server 2000, rien ne va plus: ca fonctionne -presque-
bien, sauf qu'il y a un moment, ou ma requete me remplit mon dataTable avec 0 (zero) ligne, alors qu'en executant ma requete dans un analyseur de
requete, elle me renvoie 7 lignes.

La base de données installée sur le serveur SQL Server 2000 est la copie
conforme de la base installée sur le SQL Server 7, et j'ai essayé les
différents niveaux de compatibilité disponibles (de 6.5 à 8.0), sans
resultat...

Quelqu'un a-t-il déjà vécu ce probleme? et si oui, avez vous une solution ?
Merci.

Nov 20 '05 #2
* "Ludovic Lemarinel" <lu************ **********@hotm ail.com> scripsit:
Bonjour,


Sorry, I don't understand anyhing. Nevertheless, I think this group is
the better place for your question:

ADO.NET group:

<news://msnews.microsof t.com/microsoft.publi c.dotnet.framew ork.adonet>

Web interface:

<http://msdn.microsoft. com/newsgroups/default.asp?url =/newsgroups/loadframes.asp? icp=msdn&slcid= us&newsgroup=mi crosoft.public. dotnet.framewor k.adonet>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
Sorry, I made a mistake while selecting the newsgroup ;)

About my query, the problem does not appear all the time, but just from time
to time, with the same query:
Sometimes, it fills the dataTable with the needed records, and sometimes, it
doesn't fill, but the query always give results in Query Analyser (don't
know if it's his name in english !).

Any ideas ?

"Cor" <no*@non.com> a écrit dans le message de
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Hello Ludocic,

This is an International, by agreement we use only the English language in
this newsgroup.

I do not see an error in the VB.language code, I would try it with a more
simpler Select if it has to do with the SQL7 - SQL2000 or NT - Server 2003

But you can better ask this question in English in the international
newsgroup

Microsoft.publi c.dotnet.framew ork.adonet

I hope this helps?

Cor

C'est un international, par accord que nous employons seulement l'anglais
dans ce newsgroup.

Je ne vois pas une erreur dans le code VB.language, je l'essayerais avec un plus simple Select s'il doit faire avec le SQL7 - SQL2000 ou le NT - le
Server2003

Mais vous pouvez mieux poser cette question en anglais dans le newsgroup
international

Microsoft.publi c.dotnet.framew ork.adonet

J'espère que ceci aide?

Cor
Bonjour,

J'ai developpé une application sous VB.Net qui utilise un datagrid .

Ce datagrid utilise un dataTable d'un DataSet comme datasource. ce dataset est rempli de la sorte :

'Debut du code

requete = "SELECT ln_nomencdtl_ar ticleentree as 'Article', CASE WHEN
e.en_item_key IS NULL THEN po_nstk_desc ELSE en_item_desc END as
'Désignation', CASE WHEN e.en_item_key IS NULL THEN 'UN' ELSE uom_key END
as
'Unité', CASE WHEN en_type_key IN(2, 10) THEN CASE " & poidsun & " WHEN
0 THEN ln_nomencdtl_qu antite ELSE ln_nomencdtl_qu antite * " & poidsun & "

END
ELSE CASE " & poidsun & " WHEN 0 THEN ln_nomencdtl_qu antite ELSE
ln_nomencdtl_qu antite * " & poidsun & " END END as 'Qté Unités', CASE WHEN en_type_key IN(2, 10) THEN (ln_nomencdtl_q uantite * 100) ELSE 0 END as
'Qté', en_type_key FROM ln_nomencdtl_tb l d LEFT JOIN en_item_tbl e ON
d.ln_nomencdtl_ articleentree = e.en_item_key LEFT JOIN po_nstk_tbl ns ON
d.ln_nomencdtl_ articleentree = ns.po_nstk_key AND d.gl_cmp_key =
ns.gl_cmp_key WHERE d.gl_cmp_key='" & pGL_CMP_KEY & "' AND sf_plant_key='" &
pUsine & "' AND ln_nomenchdr_ar ticlesortie='" & tArticlePF.Text & "' AND
ln_nomenchdr_ve r='" & NumVer & "' AND ln_machine_idma chine = " &
idmachine
da = New SqlDataAdapter( New SqlCommand(requ ete, sqlcn))

ds.Tables.Clear ()

da.Fill(ds)

'Fin du code

Avec les déclarations qui vont bien...

Tout ce code fonctionne à merveille sur un Serveur SQL Server 7 sous

Windows
NT4.

Par contre, lorsque je lance mon appli en me connectant à un Serveur

Windows
Server 2003 avec SQL Server 2000, rien ne va plus: ca fonctionne -presque- bien, sauf qu'il y a un moment, ou ma requete me remplit mon dataTable

avec
0 (zero) ligne, alors qu'en executant ma requete dans un analyseur de
requete, elle me renvoie 7 lignes.

La base de données installée sur le serveur SQL Server 2000 est la copie
conforme de la base installée sur le SQL Server 7, et j'ai essayé les
différents niveaux de compatibilité disponibles (de 6.5 à 8.0), sans
resultat...

Quelqu'un a-t-il déjà vécu ce probleme? et si oui, avez vous une

solution ?

Merci.


Nov 20 '05 #4
Cor
Hi Ludovic,

Real weird, but try it in the adonet group, I see a lot of messages and also
in the adonet group, but not yours problem, but you never know.

(Although do not have to much hope, your Select is very difficult to expect
an answer in a newsgroup)

I know one of the answers you will get:
use the dataadapter paramaters instead of the connection in the selects
string with &
And that advice I can give you here in advance.
(It makes it more readable I think)

Cor
Sorry, I made a mistake while selecting the newsgroup ;)

About my query, the problem does not appear all the time, but just from time to time, with the same query:
Sometimes, it fills the dataTable with the needed records, and sometimes, it doesn't fill, but the query always give results in Query Analyser (don't
know if it's his name in english !).

Nov 20 '05 #5

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

Similar topics

19
14847
by: Thue Tuxen Sørensen | last post by:
Hi everybody ! I´m maintaining a large intranet (approx 10000 concurrent users) running on one IIS box and one DB box with sqlserver 2000. Currently there is 2,5 GB Ram, 1 1400 mhz cpu and 2 scsi disks installed on the db box. Sqlserver is set to use max 1,4 GB RAM, and the sqlserver does not seem to be using it all.
2
2133
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an issue with Active Directory. Our network consists of Windows-2000 Servers (SP 4) and Windows-2000 workstations and Windows-XP workstations. We also have SQL Server 2000 (SP2) in three Windows-2000 servers. All work fine. Recently, we get a...
2
5739
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an issue with Active Directory. Our network consists of Windows-2000 Servers (SP 4) and Windows-2000 workstations and Windows-XP workstations. We also have SQL Server 2000 (SP2) in three Windows-2000 servers. All work fine. Recently, we get a...
0
2815
by: Chris Halcrow | last post by:
Hi I've spent ALL DAY trying to re-install SQL Server 2000 on Windows XP. I continually get the error 'cannot configure server' just at the end of the installation. I've tried the following: - Removing SQL server from 'Program Files' folder following an unsuccessful attempt to re-install, and entirely removing the registry entry 'HKEY_CURRENT_USER > SOFTWARE > Microsoft > MSSQLServer', as well as the corresponding entry under...
0
8867
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9386
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9158
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9090
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6685
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5996
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2606
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2148
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.