Viewing 9 posts - 16 through 24 (of 24 total)
If you have unique patient ID's and Visit ID's try something like this:
SELECT *
FROM tblPatient,
tblVisit,
(SELECT DISTINCT
PatientID,
MAX(VisitDate) AS LatestVisit
FROM tblVisit
GROUP BY PatientID) AS TEST
WHERE tblPatient.PatientID = TEST.PatientID
AND tblVisit.VisitDate...
August 23, 2006 at 6:53 am
We have been using a simple e-mail program called "Blat" that uses SMTP. You can create scripts via the dts package to select the data into a file for the...
August 23, 2006 at 6:19 am
Verify the transaction log is not still growing. Manually execute 'checkpoint' in the database.
August 21, 2006 at 6:09 am
Can you create a new database and then create views to the linked server tables and grant access to the views to the AD accounts?
August 15, 2006 at 8:06 am
Are you looking for something like this?
CREATE TABLE Files (id INT, filename VARCHAR(255))
CREATE TABLE Email_Lookup (id INT, emailaddress VARCHAR(255))
CREATE TABLE Mapping (Files_id INT, Email_Lookup_id INT)
INSERT INTO Files VALUES(1, 'test 1')
INSERT...
August 15, 2006 at 7:46 am
You can create a .bat file to copy the date stamped file name to a generic file name:
for /f "tokens=2,3,4 delims=/ " %%i in ('date /t') do (
set my_day=%%j
set my_month=%%i
set my_year=%%k
)
set...
August 15, 2006 at 7:36 am
You should be able to add a linked server and then use that servername in your query: [LINKED SERVER NAME].[DATABASE NAME].[owner].
. Here is a link to MSDN http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_1_server_4uuq.asp
July 19, 2006 at 6:03 am
I have had numerous problems importing data from Excel files in the past. Most the issues have been caused by data and formatting issues with...
July 19, 2006 at 5:56 am
RS parameters have two options: allow blank, allow null. If these are checked it will add the default ("<Select a Value>"). Make sure you set...
June 26, 2006 at 6:20 am
Viewing 9 posts - 16 through 24 (of 24 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy