Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by bmacbmac

  1. bmacbmac

    Help searching within this Json file

    Hi Everyone, I have the following test.json file: { "imageRoot": "https://path/", "name": "Test", "documents": [ { "imageUrl": "D0205936.tif", "json": { "indexingRecordId": "281972", "bookType": "OPR", "bookNumber": "14"...
  2. bmacbmac

    How to import plain text from Word doc to SQL

    Hello... I have about 25,000 Word Docs where I would like to import just the text data from each file. Reading other forums, I have tried: create table Documents (DocName nvarchar(40), DocContent Varbinary(max)) INSERT INTO Documents SELECT...
  3. bmacbmac

    SQL 'For json' query for over 100,000 records - truncating results

    Hello! I have over 100,000 records in SQL that I need exported to json. My query is: SELECT documentinfo.irecordid, (select tempparties.* from tempparties WHERE tempparties.irecordid = documentinfo.irecordid and tipartytype = 1 FOR JSON AUTO) AS first, (SELECT tempparties.* from tempparties...
  4. bmacbmac

    Inserting XML data into SQLServer returns only NULL values

    OMG you are a life saver! That worked perfectly!
  5. bmacbmac

    Inserting XML data into SQLServer returns only NULL values

    Hi there, I have the following data in an xml file: <?xml version="1.0" encoding="utf-16"?> <documents> <document ArchivedFileName="40243702\6665414.tif" DocumentId="6665414" FileSize="304790" OriginalFileName="ptmcdfd.tif" DocumentTypeName="8" FileNumber="40243702"...
  6. bmacbmac

    Help with RegEx to find non alphanumeric characters

    Hi. I have a table full of names. I am trying to find all names that contain a non alphanumeric character, but I want to exclude spaces, dashes - , and ampersand &. I am trying this: select * from mytable where name like '%[^a-zA-Z0-9 -&/]%' However, I am getting names returned like...
  7. bmacbmac

    Import 800 access .mdb files to SQLServer

    Andrzejek - Yes each mdb file has just one table, 5 columns. All have the same structure.
  8. bmacbmac

    Import 800 access .mdb files to SQLServer

    Man I have no idea how to do this. I think I may need to hire this out!
  9. bmacbmac

    Import 800 access .mdb files to SQLServer

    Hi! I have 800 little MDB files that I need to import into SQLServer 2008 R2. I'm really hoping I don't have to do the data import wizard 800 times, but I can't find much of a T-SQL solution. I'm hoping there is some sort of insert script I can run for each MDB file. Any ideas? Thanks!
  10. bmacbmac

    Identify The number of occurrences of a given field

    Brilliant! that worked like a charm
  11. bmacbmac

    Identify The number of occurrences of a given field

    Hello... I have the following data: create table #temp (instrumentID varchar(25), saddition varchar(50), block varchar(10), Lot varchar(10), LotLength int) insert into #temp values ('aa11', 'SP1', '5', '9', 1) insert into #temp values ('aa11', 'SP1', '5', '10', 2) insert into #temp values...
  12. bmacbmac

    Fill empty row with 1+ data from row above

    Hello, I have the following table / values: create table #temp (counter int, imageid int, newpage int) insert into #temp values (1,400, 1) insert into #temp values (2,400, NULL) insert into #temp values (3,400, NULL) insert into #temp values (4,400, NULL) insert into #temp values (5,400...
  13. bmacbmac

    Using @variable in a While statement

    Hi Everyone, I have the following table: create table August2018 (counter int identity(1,1), County varchar(25), Locates int, Billed varchar(1), ToBill varchar(1)) Insert into August2018 (county, tobill) values ('Bellingham', 'x') Insert into August2018 (county, tobill) values ('Adams'...
  14. bmacbmac

    Using the same scripts over and over again

    I work with about 75-100 databases. I find myself typing the exact same select statement(s) several times per day in various databases. They are pretty short: select * from table1 t1 join table2 t2 on t1.recordid = t2.recordid join table3 t3 on t2.nameid = t3.nameid Is there some sort of...

Part and Inventory Search

Back
Top