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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: stiej
  • Order by date
  1. stiej

    Updateing a text column

    Hello, i cant seem to find a previous post that covers my particular issue. Here's the problem. I have a table, it contains a column (MyText) of text datatype. Using a stored procedure, I want to update the value in MyText (for a given id) to a value stored in a variable. how would you do...
  2. stiej

    getting all tables with primary but no foreign keys

    FANTASTIC! Thanks ever so much, that's a great help.
  3. stiej

    getting all tables with primary but no foreign keys

    Hi, i'm wanting to write a script to output all my user tables that have a primary key field(s), BUT also NO foreign keys in the same table. Would any one point me in the right direction as to which tables would hold all this data for me, or any SPs that already do this? Any help would be...
  4. stiej

    determining DB status from status column

    FANTASTIC! Thanks very much.
  5. stiej

    determining DB status from status column

    Hi, From viewing the status column in sysdatabases i can determine the status value. However, the DB in question is a DB that is being restored (marked as IN LOADING) should have 32 in the status column, 32 being the value attributed to a DB in loading. I have 48 in there though, i guess that's...
  6. stiej

    XML Import via ActiveX/VB

    Hi, This may not be the correct forum but if you could point me in the right direction it would be much appreciated. I am trying to import a number of rather complicated XML file into SQL Server 2000 using VB in an ActiveX script executed through a DTS pack, but my knowlede of xml is limited...
  7. stiej

    How to get TaskPad as default view for DBs and Servers

    Hi, How can I get the taskpad view as the default view for whenever I click on a servername, or database name??? without having to go through each db/server and manaually set the view to taskpad? thanks in advance...
  8. stiej

    DTS works by itself, but not when run from job

    Hi, I have a dts that contains just one step and that's an ActiveX script. the script reads a text file into a variable, writes a new text file and executes the sql stored in variable that got populated from the file read. When i run the DTS from the Designer it all works great, though when...
  9. stiej

    Linked Servers - what security issues should be considered?

    Hi, When adding linked servers to any SQL Server, which security issues should be considered? Any? What settings are best for adding linked servers to SQL servers, all of which are local/in-house and not live? Thanks for any help...
  10. stiej

    dns/dhcp/ad at home

    cheers guys! that's amazin help. will find some time this week to put it together. thanks again
  11. stiej

    dns/dhcp/ad at home

    hi, wonder if someone can help me please. firstly i hope im posting in the right forum, i think so, cos my situation relies heavily on dns and dhcp. I have a 4port wireless router with builtin modem for my adsl connection. it's currently set up using nat, and it is currently my dhcp server and...
  12. stiej

    Help translating bitwise values into their individual values

    Hi, in the sysjobschedules table, should freq_type = 8 (weekly), then freq_interval is a bitwise value and 1 = sunday, 2 = monday, 4 = tuesday, 8 = wednesday, 16 = thursday, 32 = friday and 64 = saturday. How from the single bitwise value, do I extract which of the above day(s) the bitwise...
  13. stiej

    Can you iterate through fields in a table?

    Then, since the database as a whole will have good data in it before deployment to live and all keys are correctly scripted before any inserts, then all is okay. I already have the script i want, except that I had to manually create a bunch of Insert Intos for each record in each table and it...
  14. stiej

    Can you iterate through fields in a table?

    Thanks for the reply. Number of records will be less than 100, probably less than 10, per table. Data coming in will stop when we're ready to go live, and so my resolution here is to run this SP that I'm trying to write to go get what's in the database at that time and that would be good...
  15. stiej

    Can you iterate through fields in a table?

    Well...what we have here, is a company policy if you like, that any new database schema is entirely scripted (tables, keys, indexes, constraints, SPs etc) including initial "start-up" data. This script will then get executed in the QA environment, then when everyone's happy, in the Live...
  16. stiej

    Can you iterate through fields in a table?

    Hi, How, in T-SQL, can I get my cursor to iterate throught the fields in a given table outputing the values in each field? I'm trying to build a sp to automatically go through all my tables, then all my fields, then build a bunch of INSERT INTO mytable (myfields) VALUES (myvalues) statements...
  17. stiej

    Cant see the 'inserted' table from within a trigger

    Cheers. Thanks for your replies.Im keeping the code generic so i can pop this trigger on other tables, and let it think for itself as to what the primary keys are in each table and fetch their vlaues out from the inserted/deleted tables and stitch them together into a string. I might try...
  18. stiej

    Cant see the 'inserted' table from within a trigger

    well, due to our auditing method, i require to caoncateneate all the primary keys in the trigger table. in an attempt to generalise the trigger, to limit any hardcoding of field names, i've used sp_pkeys within the trigger to put the primary key fieldnames into a temp table then a cursor to loop...
  19. stiej

    Cant see the 'inserted' table from within a trigger

    hi, I have this inside my trigger EXEC ('DECLARE @PKValue varchar(255) SELECT @PKValue = ' + @PKField + ' from inserted') Though the trigger does not execute despite that it parses okay. Is it not possible to view the inserted or deleted tables inside a trigger when the SQL to do so is...

Part and Inventory Search

Back
Top