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 SkipVought 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: *

  1. JRtoad

    shrinkfile in sql 7

    got ya... ok i will give it a try. thanks
  2. JRtoad

    shrinkfile in sql 7

    Right, but I unable to decrease the physical size of the file. When the DB was created it was created without a limit on the size of the trans log, as a result it kept growing to a size of 17gb. Generally, there only needs to be about 1gb of log space required for this db. I have truncated...
  3. JRtoad

    Query help

    i had a mistake in my code... try this --======================================= SELECT * INTO ai_clien_prev FROM ai_clien WHERE tc_id IN ( SELECT DISTINCT a1.tc_id FROM ai_clien a1 INNER JOIN ai_enc_prev a2 ON a1.tc_id = a2.tc_id) --========================================
  4. JRtoad

    Query help

    in your original query you were joining on "urs"."dbo"."ai_enc_prev" . I removed all of the qualifiers in the example that i responded with. try putting them back in to the example i gave you and remove the quotes. the message you are getting indicates it is not seeing the table. it does...
  5. JRtoad

    Converting a number to a percentage

    try this... SELECT Count(Q1)/COUNT(*) as Q1, Count(Q2)/COUNT(*) as Q2, Count(Q3)/COUNT(*) as Q3, FROM questionaire you may have to convert each into a float data type to be used in a percentage. ex. convert(float,count(q1))
  6. JRtoad

    Query help

    you could try this... SELECT * INTO ai_clien_prev FROM ai_clien WHERE tc_id IN ( SELECT DISTINCT a1.tc_id FROM ai_clien a1 INNER JOIN ai_enc_prev a2 ON ai_clien.tc_id = ai_enc_prev.tc_id)
  7. JRtoad

    shrinkfile in sql 7

    trying to decrease the size of the trans log for a sql7 db. In sql 2000 the dbcc shrinkfile seems to actually descrease the size of the file when run after using the truncate log, but in sql7 running that same command does not seem to descrease the physical size of the file on the hard drive...
  8. JRtoad

    Class not registered?

    I have seen this happen when there are different versions of SQL running on different machines. V7 vs. V2000
  9. JRtoad

    DTS task available?

    I would like to be able to branch from a 'task' based on a result from the database. Is there such a task where i can query the DB and return a result such as 1 or 0 and be able to branch one way or the other based on the result? thanks
  10. JRtoad

    Excel macro removal

    I created a macro then deleted it. Now everytime the excel document is opened it propmts the message to Enable or Disable macros as if it detected one. Even though i deleted the macro and I can not see any macros available to run it still reacts as if there is one. How can one completely...
  11. JRtoad

    umlaut /codepage/ OEM

    thanks for the leads on this. I was actually able to resolve this issue straight from the BOL info for "bcp utlity". I was able to set the argument "-C 437" to indicate that the file being used has international characters.
  12. JRtoad

    umlaut /codepage/ OEM

    If my codepage is set to 1252 and i was able to DTS data into the column with an umlaut, shouldnt that indicate that the DB be set correctly? I was going to try and change the collation on that column, but codepage 1252 should be able to accept umlauts. So are there any ideas of what is...
  13. JRtoad

    umlaut /codepage/ OEM

    your first question "what is the datatype of the field you are importing into?" clued me to try changing the datatype of the column from varchar to nvarchar. I tried that and it did not seem to solve the issue. On a side note, I tried using DTS to perform the data import and was...
  14. JRtoad

    umlaut /codepage/ OEM

    I am trying to bcp ascii data into sql from a .txt file that has characters such as umlaut. running the bcp statement from cmd line using the argument "-c", the characters change from an "ä" to ',,' (double comma). other characters experience similar changes. the code_page...

Part and Inventory Search

Back
Top