473,698 Members | 1,901 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 1583
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
14844
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
5737
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
2811
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
8600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8892
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
7712
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
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
5860
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
4361
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...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2323
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1998
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.