Hi,
I am converting my data storage from access to sql server 2000 and am having a number of difficulties.
While access' upsizing wizard converted my tables well, most of my queries were left untouched. I am trying to rewrite them manually and have hit a block. Many of my queries reference a global variable in the where statement like Where PatientID = getgblPatientID(). The "getgblPatientID" is simply a function which returns the global variable gblPatientID (assigned from forms).
How can I accomplish this in SQL server? Will this variable be stored locally (i.e not viewable/modifiable from other client applications)?
Thanks in advance,
Chris
I am converting my data storage from access to sql server 2000 and am having a number of difficulties.
While access' upsizing wizard converted my tables well, most of my queries were left untouched. I am trying to rewrite them manually and have hit a block. Many of my queries reference a global variable in the where statement like Where PatientID = getgblPatientID(). The "getgblPatientID" is simply a function which returns the global variable gblPatientID (assigned from forms).
How can I accomplish this in SQL server? Will this variable be stored locally (i.e not viewable/modifiable from other client applications)?
Thanks in advance,
Chris