ty genomon for responding...
i cannot link to the access files because they are dynamic - how many there are and the names change....hence using the file system object to find these files on-the-fly
i have it retrieving and inserting into an access database as so:
pseudo code -
For each file...
...trying to insert data from one Access database from another...I can get the following query to work on a remote Access database...
sSQL = "SELECT * FROM Activity IN """ & sRtdPath & """"
however, I need to include an inner join like so:
sSQL = "SELECT DISTINCT Machine.DisplayField...
assuming you have permissions to do so...(creating/modifying objects in AD)...then is there any reason why you cannot use the Active Directory Users and Computers tool in adminpak.msi?
you could do a replace and split all by -...however, splitting may be a moot point if you cannot guarantee 'needed' dashes or commas in the string...therefore a regular expression may help
<%
s = Replace("Example130-Your Analysis Bus-0.00-W-20032,Help130-My Analysis...
update:
splitting DETAILS not needed because it has passed the pattern match - delimited with commas
If IsValidRegEx(DETAILSPATTERN,DETAILS) Then
VMS_Convert_HOSTS.WriteLine ReportName & "," & EntryDate & "," & DETAILS
Else
' ...
End If'
...shyed away from them. but,
i have a couple questions in regards to the following snippet (the test script to validate the pattern you gave me)...
* IP:, MAC:, Host Name: were replaced with delimited commas to eventually be imported into a SQL database - hence the slight change
Function...
...expression.
The pattern is (pseudo):
(The characters IP:) (a space) (An ip address) (a space)
(The characters MAC:) (a space) (a mac address *** either a mac address OR the word 'unspecified') (a space)
(The characters Host Name:) (a space) (computer name *** follows active dir rules IE...
Thanks bborissov!
I was 'googling' while you posted and came up with something very similar...i was surprised to see a fast reply!
a star for what ultimately would have been the answer
Thanks
I ended up with a 'pivoting' solution:
SELECT HOST,
COUNT(CASE WHEN Severity = 'Category I' THEN 1 END) AS
[Cat I],
COUNT(CASE WHEN Severity = 'Category II' THEN 1 END) AS
[Cat II],
COUNT(CASE WHEN Severity = 'Category III' THEN 1 END) AS [Category III]
FROM table
GROUP BY [HOST];
Thanks
...FROM table
GROUP BY HOST
but returns:
HOST Cat I Cat II Cat III
comp1 73622 260071 270901
comp2 73622 260071 270901
comp3 73622 260071 270901
* host field is correct, however counts are not by host but database overall...
should return something like:
HOST Cat I Cat II Cat III
comp1 3...
you may want to consider using a .hta...it's a GUI representation of your vbs code...
i intentionally left out move to ou and remove functions...hopefully the way it's written...you can follow the logic...if not...let us know...good luck
save as FindUser.hta
<html>
<head>
<title>User...
again....speed
i understand the loop is used against the getstring ...i also understand as i mentioned i may as well use get rows...a 2d array....the loop is FAR slower in generating the recordset reslts....the code works as is if on server side...no loops...just getstring.....it's lightning...
tsuji,
i truely appreciate the response...unfortunately...using the for loop pretty much defeats the purpose of me using getstring...i may as well use getrows
i therefore used fso to generate a comma delimited getstring and this satisfies the speed i need vs looping
yes...i close the...
hey all...
i'm retrieving a recordset via javascript and ado. the ado method i am using is getstring. i am used to server side code...and i was wondering why i cannot get a string returned by getstring to work correctly in the following:
<script>
var sDatabasePath = "tree.mdb";
var cn =...
also...the * was the wrong one posted ...all demos used %...it just happened to be the last one i was experimenting with on a copy/paste/post...good eye dm4ever
unfortunately yes...i can't for the life of me understand why it doesn't work....if someone has successfully ran the like in this situation...please let me know....it would be appreciated....
btw....i can obviously grab all mailboxes (2000+) in this case and loop with an instr but i'd rather...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.