Please help, I'm desperate!

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Please help, I'm desperate!

    I've been trying for exactly a month now to create databases from ColdFusion
    with no success and I've used up all resources I could possibly found. Now I'm
    changing my gear by creating the databases from the SQL side using a simple sql
    script. I'm using microsoft SQL and I know this is a forum for CF, not SQL but
    what I'm about to do is the back end of my cf application. I appreciate all the
    help I can get at this point. I just need to loop over a create database
    statement in SQL analyzer. My script generate error, I'm not sure my sntax is
    correct and I need Help!!!!!! Thank you!!!!!!!!!!!!!!!!! declare @loopnumber
    int select @loopnumber = 101 declare @dbname varchar While @loopnumber < 102
    BEGIN select @dbname = 'DP_' + CAST(@loopnumber as varchar) /* SQL Script
    start here */ CREATE DATABASE @dbname GO /* SQL Script end here */ select
    @loopnumber = @loopnumber + 1 END

    alecken Guest

  2. Similar Questions and Discussions

    1. Desperate !
      Using demo version of Contribute4 on a Mac10.4.8, .Mac server and demo of Sandvox authoring for website. Everything was working fine, cleaned out...
    2. Also Desperate
      Thank you so much David for all your assitance, but I am still having problems; now different ones. I went through your tutorial and tried again to...
    3. help me please i'm desperate
      This is a script tha i can drag a sprite and release is somewhere and check if it is correct how can i force it to be unmoveable the next time i'll...
    4. I'm DESPERATE...
      I need a hit counter for Dreamweaver version 4. Where do I go to GET a hit counter. Is there a free one from Macromedia that I can download for...
    5. Please help, am desperate
      Hi All. I'm looking for a file, ActiveSM.ocx. I've been spending all day combing the internet for it and can't find it. Can anyone please email...
  3. #2

    Default Re: Please help, I'm desperate!

    declare @loopnumber int ,@string_to_execute varchar(255) select @loopnumber =
    101 While @loopnumber < 102 BEGIN select @string_to_execute = 'CREATE
    DATABASE DP_' + CAST(@loopnumber as varchar) exec (@string_to_execute) select
    @loopnumber = @loopnumber + 1 END

    nmconsulting Guest

  4. #3

    Default Re: Please help, I'm desperate!

    Thank you so much!!!!
    alecken Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139